ImageBrush
struct · ferroui-base · v0.5.0
struct ImageBrush
Paints an area with an image.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ImageBrush>
Returns a strong reference to this object.
source_property
fn source_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_source
fn with_source(source: Option<Rc<dyn IImageBrushSource>>) -> Ref<Self>
Creates a brush that draws source.
source
fn source(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
The image to draw.
set_source
fn set_source(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
to_immutable
fn to_immutable(self: &Self) -> Rc<dyn IImmutableBrush>
Creates an immutable clone of the brush.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBrushImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ImageBrush>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplBrushImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.