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