pub struct PathIcon {
pub data: Arc<Path>,
pub fill_rule: FillRule,
pub foreground: Option<Color>,
pub key: Option<KeyRef>,
}Expand description
XAML PathIcon: a geometry filled with the icon’s foreground. As Shape lays out with
Stretch.None, the icon asks for the space between the origin and the geometry’s far edges,
and the geometry keeps its own coordinates.
Fields§
§data: Arc<Path>Data: the geometry to fill.
fill_rule: FillRuleGeometry.FillRule: which regions of a self-crossing geometry are filled;
XcpFillModeAlternate, the even-odd rule, is the source default.
foreground: Option<Color>IconElement.Foreground, or the enclosing control’s text foreground.
key: Option<KeyRef>Identity retained across parent rebuilds.
Implementations§
Trait Implementations§
Source§impl StatelessWidget for PathIcon
impl StatelessWidget for PathIcon
Source§fn build(&self, app: &mut App, context: BuildContext) -> WidgetRef
fn build(&self, app: &mut App, context: BuildContext) -> WidgetRef
Describes the part of the user interface represented by this widget. Read more
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn debug_check_constructor(&self)
fn debug_check_constructor(&self)
Dart’s constructor asserts that relate two or more arguments. Read more
Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Dart’s
this is PreferredSizeWidget: a widget that implements PreferredSizeWidget
answers with itself, which is what a parent asking an erased child for its preferred
size reads.Auto Trait Implementations§
impl !RefUnwindSafe for PathIcon
impl !Send for PathIcon
impl !Sync for PathIcon
impl !UnwindSafe for PathIcon
impl Forget for PathIcon
impl Freeze for PathIcon
impl Move for PathIcon
impl Unpin for PathIcon
impl UnsafeUnpin for PathIconwhere
*const ArcInner<Path> is !null: UnsafeUnpin,
PhantomData<ArcInner<Path>>: UnsafeUnpin,
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<W> IntoWidget<StatelessKind> for Wwhere
W: StatelessWidget,
impl<W> IntoWidget<StatelessKind> for Wwhere
W: StatelessWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.