StaticRenderTargetBitmapBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct StaticRenderTargetBitmapBehavior
Behavior that draws once into a RenderTargetBitmap and assigns it to the associated
Image. Rendering can be triggered by calling IRenderTargetBitmapRenderHost::render.
Members
TYPEto_refpixel_width_propertypixel_height_propertydpi_propertyrenderer_propertyconstructnewpixel_widthset_pixel_widthpixel_heightset_pixel_heightdpiset_dpirendererset_rendererrenderas_render_target_bitmap_render_host
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<StaticRenderTargetBitmapBehavior>
Returns a strong reference to this object.
pixel_width_property
fn pixel_width_property() -> &'static StyledProperty<i32>
Identifies the PixelWidth property.
pixel_height_property
fn pixel_height_property() -> &'static StyledProperty<i32>
Identifies the PixelHeight property.
dpi_property
fn dpi_property() -> &'static StyledProperty<Vector>
Identifies the Dpi property.
renderer_property
fn renderer_property() -> &'static StyledProperty<Option<Rc<dyn IRenderTargetBitmapSimpleRenderer>>>
Identifies the Renderer property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
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.
set_pixel_width
fn set_pixel_width(self: &Self, value: i32)
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.
set_pixel_height
fn set_pixel_height(self: &Self, value: i32)
dpi
fn dpi(self: &Self) -> Vector
Gets or sets the DPI vector of the bitmap. This is a property of the object model.
set_dpi
fn set_dpi(self: &Self, value: Vector)
renderer
fn renderer(self: &Self) -> Option<Rc<dyn IRenderTargetBitmapSimpleRenderer>>
Gets or sets the renderer used to draw the bitmap. This is a property of the object model.
set_renderer
fn set_renderer(self: &Self, value: Option<Rc<dyn IRenderTargetBitmapSimpleRenderer>>)
render
fn render(self: &Self)
Requests that the behavior renders its content to the bitmap
(IRenderTargetBitmapRenderHost::render).
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<StaticRenderTargetBitmapBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplIRenderTargetBitmapRenderHost
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.