FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RenderTargetBitmapBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct RenderTargetBitmapBehavior
    

    Behavior that draws into a RenderTargetBitmap and assigns it to the associated Image.

    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<RenderTargetBitmapBehavior>
    

    Returns a strong reference to this object.

    Source

    pixel_width_property

    fn pixel_width_property() -> &'static StyledProperty<i32>
    

    Identifies the PixelWidth property.

    Source

    pixel_height_property

    fn pixel_height_property() -> &'static StyledProperty<i32>
    

    Identifies the PixelHeight property.

    Source

    dpi_property

    fn dpi_property() -> &'static StyledProperty<Vector>
    

    Identifies the Dpi property.

    Source

    renderer_property

    fn renderer_property() -> &'static StyledProperty<Option<Rc<dyn IRenderTargetBitmapRenderer>>>
    

    Identifies the Renderer property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    pixel_width

    fn pixel_width(self: &Self) -> i32
    

    Gets or sets the pixel width of the bitmap. This is a property of the object model.

    Source

    set_pixel_width

    fn set_pixel_width(self: &Self, value: i32)
    

    Source

    pixel_height

    fn pixel_height(self: &Self) -> i32
    

    Gets or sets the pixel height of the bitmap. This is a property of the object model.

    Source

    set_pixel_height

    fn set_pixel_height(self: &Self, value: i32)
    

    Source

    dpi

    fn dpi(self: &Self) -> Vector
    

    Gets or sets the DPI vector of the bitmap. This is a property of the object model.

    Source

    set_dpi

    fn set_dpi(self: &Self, value: Vector)
    

    Source

    renderer

    fn renderer(self: &Self) -> Option<Rc<dyn IRenderTargetBitmapRenderer>>
    

    Gets or sets the renderer used to draw the bitmap. This is a property of the object model.

    Source

    set_renderer

    fn set_renderer(self: &Self, value: Option<Rc<dyn IRenderTargetBitmapRenderer>>)
    

    Source

    render

    fn render(self: &Self)
    

    Requests that the behavior renders its content to the bitmap (IRenderTargetBitmapRenderHost::render).

    Source

    as_render_target_bitmap_render_host

    fn as_render_target_bitmap_render_host(self: &Self) -> Rc<dyn IRenderTargetBitmapRenderHost>
    

    The behavior as the contract of render hosts.

    Source

    Trait implementations

    Availability

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