FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InkToolbarPenButton

    struct · ferroui-controls-inking · v0.5.0

    struct InkToolbarPenButton
    

    Base pen tool. Palettes are observable handles owned independently by each pen.

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

    Returns a strong reference to this object.

    Source

    create_ink_drawing_attributes

    fn create_ink_drawing_attributes(self: &Self) -> Result<InkDrawingAttributes, InkError>
    

    Source

    palette_property

    fn palette_property() -> &'static StyledProperty<FerroList<Rc<dyn IBrush>>>
    

    Source

    min_stroke_width_property

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

    Source

    max_stroke_width_property

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

    Source

    selected_brush_property

    fn selected_brush_property() -> &'static DirectProperty<InkToolbarPenButton, Option<Rc<dyn IBrush>>>
    

    Source

    selected_brush_index_property

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

    Source

    selected_stroke_width_property

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

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    palette

    fn palette(self: &Self) -> ferroui_base::collections::FerroList<std::rc::Rc<dyn IBrush>>
    

    Source

    set_palette

    fn set_palette(self: &Self, value: ferroui_base::collections::FerroList<std::rc::Rc<dyn IBrush>>)
    

    Source

    min_stroke_width

    fn min_stroke_width(self: &Self) -> f64
    

    Source

    set_min_stroke_width

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

    Source

    max_stroke_width

    fn max_stroke_width(self: &Self) -> f64
    

    Source

    set_max_stroke_width

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

    Source

    selected_brush

    fn selected_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Source

    selected_brush_index

    fn selected_brush_index(self: &Self) -> i32
    

    Source

    set_selected_brush_index

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

    Source

    selected_stroke_width

    fn selected_stroke_width(self: &Self) -> f64
    

    Source

    set_selected_stroke_width

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

    Source

    determine_stroke_width

    fn determine_stroke_width(self: &Self) -> f64
    

    Source

    selected_color

    fn selected_color(self: &Self) -> Result<Color, InkError>
    

    Source

    Trait implementations

    Availability

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