FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InkToolbar

    struct · ferroui-controls-inking · v0.5.0

    struct InkToolbar
    

    A functional inking toolbar using FerroUI's panel layout, control templates and input routing.

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

    Returns a strong reference to this object.

    Source

    children_property

    fn children_property() -> &'static DirectProperty<InkToolbar, Controls>
    

    Source

    initial_controls_property

    fn initial_controls_property() -> &'static StyledProperty<InkToolbarInitialControls>
    

    Source

    active_tool_property

    fn active_tool_property() -> &'static StyledProperty<Option<Ref<InkToolbarToolButton>>>
    

    Source

    ink_drawing_attributes_property

    fn ink_drawing_attributes_property() -> &'static DirectProperty<InkToolbar, Option<InkDrawingAttributes>>
    

    Source

    is_ruler_button_checked_property

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

    Source

    target_ink_canvas_property

    fn target_ink_canvas_property() -> &'static StyledProperty<Option<Ref<InkCanvas>>>
    

    Source

    is_stencil_button_checked_property

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

    Source

    button_flyout_placement_property

    fn button_flyout_placement_property() -> &'static StyledProperty<InkToolbarButtonFlyoutPlacement>
    

    Source

    orientation_property

    fn orientation_property() -> &'static StyledProperty<Orientation>
    

    Source

    target_ink_presenter_property

    fn target_ink_presenter_property() -> &'static StyledProperty<Option<Rc<InkPresenter>>>
    

    Source

    border_brush_property

    fn border_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Source

    border_thickness_property

    fn border_thickness_property() -> &'static StyledProperty<Thickness>
    

    Source

    corner_radius_property

    fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
    

    Source

    background_sizing_property

    fn background_sizing_property() -> &'static StyledProperty<BackgroundSizing>
    

    Source

    padding_property

    fn padding_property() -> &'static StyledProperty<Thickness>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    children

    fn children(self: &Self) -> Controls
    

    Public content, including entries ignored by toolbar registration. Only supported, nonduplicate registrations enter the visual panel.

    Source

    border_brush

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

    Source

    set_border_brush

    fn set_border_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    border_thickness

    fn border_thickness(self: &Self) -> Thickness
    

    Source

    set_border_thickness

    fn set_border_thickness(self: &Self, value: Thickness)
    

    Source

    corner_radius

    fn corner_radius(self: &Self) -> CornerRadius
    

    Source

    set_corner_radius

    fn set_corner_radius(self: &Self, value: CornerRadius)
    

    Source

    background_sizing

    fn background_sizing(self: &Self) -> BackgroundSizing
    

    Source

    set_background_sizing

    fn set_background_sizing(self: &Self, value: BackgroundSizing)
    

    Source

    padding

    fn padding(self: &Self) -> Thickness
    

    Source

    set_padding

    fn set_padding(self: &Self, value: Thickness)
    

    Source

    initial_controls

    fn initial_controls(self: &Self) -> InkToolbarInitialControls
    

    Source

    set_initial_controls

    fn set_initial_controls(self: &Self, value: InkToolbarInitialControls)
    

    Source

    active_tool

    fn active_tool(self: &Self) -> Option<Ref<InkToolbarToolButton>>
    

    Source

    set_active_tool

    fn set_active_tool(self: &Self, value: Option<Ref<InkToolbarToolButton>>)
    

    Source

    ink_drawing_attributes

    fn ink_drawing_attributes(self: &Self) -> Option<InkDrawingAttributes>
    

    Source

    is_ruler_button_checked

    fn is_ruler_button_checked(self: &Self) -> bool
    

    Source

    set_is_ruler_button_checked

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

    Source

    target_ink_canvas

    fn target_ink_canvas(self: &Self) -> Option<Ref<InkCanvas>>
    

    Source

    set_target_ink_canvas

    fn set_target_ink_canvas(self: &Self, value: Option<Ref<InkCanvas>>)
    

    Source

    is_stencil_button_checked

    fn is_stencil_button_checked(self: &Self) -> bool
    

    Source

    set_is_stencil_button_checked

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

    Source

    button_flyout_placement

    fn button_flyout_placement(self: &Self) -> InkToolbarButtonFlyoutPlacement
    

    Source

    set_button_flyout_placement

    fn set_button_flyout_placement(self: &Self, value: InkToolbarButtonFlyoutPlacement)
    

    Source

    target_ink_presenter

    fn target_ink_presenter(self: &Self) -> Option<Rc<InkPresenter>>
    

    Source

    set_target_ink_presenter

    fn set_target_ink_presenter(self: &Self, value: Option<Rc<InkPresenter>>)
    

    Source

    effective_ink_presenter

    fn effective_ink_presenter(self: &Self) -> Option<Rc<InkPresenter>>
    

    Source

    get_tool_button

    fn get_tool_button(self: &Self, tool: InkToolbarTool) -> Option<Ref<InkToolbarToolButton>>
    

    Source

    get_toggle_button

    fn get_toggle_button(self: &Self, kind: InkToolbarToggle) -> Option<Ref<InkToolbarToggleButton>>
    

    Source

    get_menu_button

    fn get_menu_button(self: &Self, kind: InkToolbarMenuKind) -> Option<Ref<InkToolbarMenuButton>>
    

    Source

    active_tool_changed

    fn active_tool_changed(self: &Self, handler: impl Fn(&InkToolbar) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    ink_drawing_attributes_changed

    fn ink_drawing_attributes_changed(self: &Self, handler: impl Fn(&InkToolbar) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    erase_all_clicked

    fn erase_all_clicked(self: &Self, handler: impl Fn(&InkToolbar) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    is_stencil_button_checked_changed

    fn is_stencil_button_checked_changed(self: &Self, handler: impl Fn(&InkToolbarIsStencilButtonCheckedChangedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    erase_all

    fn erase_all(self: &Self)
    

    As WinUI: selects the most recent tool that is not the eraser, raises EraseAllClicked (handlers can capture an undo snapshot), then clears the strokes.

    Source

    Trait implementations

    Availability

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