FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InkPresenterRuler

    struct · ferroui-controls-inking · v0.5.0

    struct InkPresenterRuler
    

    A movable straightedge. Its transform uses the local top-left corner.

    View source

    Members

    kind

    fn kind(self: &Self) -> InkPresenterStencilKind
    

    Source

    is_visible

    fn is_visible(self: &Self) -> bool
    

    Source

    set_is_visible

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

    Source

    transform

    fn transform(self: &Self) -> Matrix
    

    Source

    set_transform

    fn set_transform(self: &Self, value: Matrix) -> Result<(), InkError>
    

    Source

    length

    fn length(self: &Self) -> f64
    

    Source

    set_length

    fn set_length(self: &Self, value: f64) -> Result<(), InkError>
    

    Source

    width

    fn width(self: &Self) -> f64
    

    Source

    set_width

    fn set_width(self: &Self, value: f64) -> Result<(), InkError>
    

    Source

    are_tick_marks_visible

    fn are_tick_marks_visible(self: &Self) -> bool
    

    Source

    set_are_tick_marks_visible

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

    Source

    is_compass_visible

    fn is_compass_visible(self: &Self) -> bool
    

    Source

    set_is_compass_visible

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

    Source

    background_color

    fn background_color(self: &Self) -> Color
    

    Source

    set_background_color

    fn set_background_color(self: &Self, value: Color)
    

    Source

    foreground_color

    fn foreground_color(self: &Self) -> Color
    

    Source

    set_foreground_color

    fn set_foreground_color(self: &Self, value: Color)
    

    Source

    angle

    fn angle(self: &Self) -> f64
    

    Clockwise orientation of the ruler's horizontal edge, in degrees.

    Source

    Trait implementations

    Availability

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