ImageDrawing
struct · ferroui-base · v0.5.0
struct ImageDrawing
Draws an image within a region defined by a Rect.
Members
TYPEto_refimage_source_propertyrect_propertyconstructnewimage_sourceset_image_sourcerectset_rect
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ImageDrawing>
Returns a strong reference to this object.
image_source_property
fn image_source_property() -> &'static StyledProperty<Option<Rc<dyn IImage>>>
Defines the ImageSource property.
rect_property
fn rect_property() -> &'static StyledProperty<Rect>
Defines the Rect property.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
image_source
fn image_source(self: &Self) -> Option<Rc<dyn IImage>>
The source of the image.
set_image_source
fn set_image_source(self: &Self, value: Option<Rc<dyn IImage>>)
rect
fn rect(self: &Self) -> Rect
The region in which the image is drawn.
set_rect
fn set_rect(self: &Self, value: Rect)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDrawingImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ImageDrawing>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDrawingImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.