BitmapCache
struct · ferroui-base · v0.5.0
struct BitmapCache
Creates and caches a bitmap representation of a visual.
Members
TYPEto_refrender_at_scale_propertysnaps_to_device_pixels_propertyenable_clear_type_propertyconstructnewrender_at_scaleset_render_at_scalesnaps_to_device_pixelsset_snaps_to_device_pixelsenable_clear_typeset_enable_clear_type
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<BitmapCache>
Returns a strong reference to this object.
render_at_scale_property
fn render_at_scale_property() -> &'static StyledProperty<f64>
Defines the RenderAtScale property.
snaps_to_device_pixels_property
fn snaps_to_device_pixels_property() -> &'static StyledProperty<bool>
Defines the SnapsToDevicePixels property.
enable_clear_type_property
fn enable_clear_type_property() -> &'static StyledProperty<bool>
Defines the EnableClearType property.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
render_at_scale
fn render_at_scale(self: &Self) -> f64
The scale that is applied to the bitmap.
set_render_at_scale
fn set_render_at_scale(self: &Self, value: f64)
snaps_to_device_pixels
fn snaps_to_device_pixels(self: &Self) -> bool
Whether the bitmap is rendered with pixel snapping.
set_snaps_to_device_pixels
fn set_snaps_to_device_pixels(self: &Self, value: bool)
enable_clear_type
fn enable_clear_type(self: &Self) -> bool
Whether the bitmap is rendered with ClearType activated.
set_enable_clear_type
fn set_enable_clear_type(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeCacheModeImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<BitmapCache>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplCacheModeImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.