DrawingBrush
struct · ferroui-base · v0.5.0
struct DrawingBrush
Paints an area with a Drawing.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DrawingBrush>
Returns a strong reference to this object.
drawing_property
fn drawing_property() -> &'static StyledProperty<Option<Ref<Drawing>>>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_drawing
fn with_drawing(drawing: impl Into<Nullable<Drawing>>) -> Ref<Self>
Creates a brush that draws drawing.
drawing
fn drawing(self: &Self) -> Option<Ref<Drawing>>
The drawing to draw.
set_drawing
fn set_drawing(self: &Self, value: impl Into<Nullable<Drawing>>)
create_content
fn create_content(self: &Self) -> Option<Rc<dyn ISceneBrushContent>>
Records the current content of the brush: what the drawing draws.
None when there is no drawing or it draws nothing.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBrushImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<DrawingBrush>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplBrushImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.