/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
for (pipeline_id, color, offset) in init_data { let size = DeviceIntSize::new(250, 250); let bounds = DeviceIntRect::from_origin_and_size(offset, size);
impl Example for App { fn render(
&mutself,
api: &mut RenderApi,
_base_builder: &mut DisplayListBuilder,
_txn: &mut Transaction,
_device_size: DeviceIntSize,
_pipeline_id: PipelineId,
_: DocumentId,
) { ifself.documents.is_empty() { // this is the first run, hack around the boilerplate, // which assumes an example only needs one document self.init(api, 1.0);
}
for doc in &self.documents { let space_and_clip = SpaceAndClipInfo::root_scroll(doc.pipeline_id); letmut builder = DisplayListBuilder::new(
doc.pipeline_id,
);
builder.begin(); let local_rect = LayoutRect::from_size(doc.content_rect.size());
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.