/* 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/. */
use api::{BorderRadius, BoxShadowClipMode}; use api::units::*; use api::ColorF; usecrate::pattern::{Pattern, PatternBuilder, PatternBuilderContext, PatternBuilderState, PatternKind, PatternShaderInput, PatternTextureInput}; usecrate::render_task_graph::RenderTaskId; usecrate::renderer::BlendMode;
pubstruct BoxShadowPatternData { pub color: ColorF, pub render_task: RenderTaskId, /// Full blur alloc size in local pixels (= 2*blur_region + src_rect_size per axis). /// Used as the UV denominator so shadow_pos/alloc_size maps 1:1 to texture position. pub shadow_rect_alloc_size: LayoutSize, /// Size of dest_rect in local pixels. For outset this equals shadow_rect_alloc_size /// (prim_rect == dest_rect). For inset the prim is the element rect while dest_rect /// is smaller (the shadow area), so these differ. pub dest_rect_size: LayoutSize, /// Offset of dest_rect.p0 relative to prim_rect.p0 in local pixels. /// Zero for outset. For inset: dest_rect.min - element_rect.min. pub dest_rect_offset: LayoutVector2D, pub clip_mode: BoxShadowClipMode, /// Offset of the element rect's min corner relative to prim_rect.p0. /// Zero for inset (prim_rect IS the element rect). For outset: element_rect.min - dest_rect.min. pub element_offset_rel_prim: LayoutVector2D, pub element_size: LayoutSize, pub element_radius: BorderRadius,
}
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.