Drawing
struct · ferroui-base · v0.5.0
struct Drawing
Abstract base class of the objects describing drawn content.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Drawing>
Returns a strong reference to this object.
draw_core
fn draw_core(self: &Self, context: &mut DrawingContext<'_>)
Draws the content to a drawing context; see Drawing::draw.
get_bounds
fn get_bounds(self: &Self) -> Rect
The bounds of the drawn content.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
draw
fn draw(self: &Self, context: &mut DrawingContext<'_>)
Draws this drawing to the given drawing context.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDrawingImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<Drawing>StaticTypeObjectTypeSubclassable<T>FerroObjectImplDrawingImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.