FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BitmapCache

    struct · ferroui-base · v0.5.0

    struct BitmapCache
    

    Creates and caches a bitmap representation of a visual.

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

    Returns a strong reference to this object.

    Source

    render_at_scale_property

    fn render_at_scale_property() -> &'static StyledProperty<f64>
    

    Defines the RenderAtScale property.

    Source

    snaps_to_device_pixels_property

    fn snaps_to_device_pixels_property() -> &'static StyledProperty<bool>
    

    Defines the SnapsToDevicePixels property.

    Source

    enable_clear_type_property

    fn enable_clear_type_property() -> &'static StyledProperty<bool>
    

    Defines the EnableClearType property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    render_at_scale

    fn render_at_scale(self: &Self) -> f64
    

    The scale that is applied to the bitmap.

    Source

    set_render_at_scale

    fn set_render_at_scale(self: &Self, value: f64)
    

    Source

    snaps_to_device_pixels

    fn snaps_to_device_pixels(self: &Self) -> bool
    

    Whether the bitmap is rendered with pixel snapping.

    Source

    set_snaps_to_device_pixels

    fn set_snaps_to_device_pixels(self: &Self, value: bool)
    

    Source

    enable_clear_type

    fn enable_clear_type(self: &Self) -> bool
    

    Whether the bitmap is rendered with ClearType activated.

    Source

    set_enable_clear_type

    fn set_enable_clear_type(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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