FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Drawing

    struct · ferroui-base · v0.5.0

    struct Drawing
    

    Abstract base class of the objects describing drawn content.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Drawing>
    

    Returns a strong reference to this object.

    Source

    draw_core

    fn draw_core(self: &Self, context: &mut DrawingContext<'_>)
    

    Draws the content to a drawing context; see Drawing::draw.

    Source

    get_bounds

    fn get_bounds(self: &Self) -> Rect
    

    The bounds of the drawn content.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    draw

    fn draw(self: &Self, context: &mut DrawingContext<'_>)
    

    Draws this drawing to the given drawing context.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.