InkToolbar
struct · ferroui-controls-inking · v0.5.0
struct InkToolbar
A functional inking toolbar using FerroUI's panel layout, control templates and input routing.
Members
TYPEto_refchildren_propertyinitial_controls_propertyactive_tool_propertyink_drawing_attributes_propertyis_ruler_button_checked_propertytarget_ink_canvas_propertyis_stencil_button_checked_propertybutton_flyout_placement_propertyorientation_propertytarget_ink_presenter_propertyborder_brush_propertyborder_thickness_propertycorner_radius_propertybackground_sizing_propertypadding_propertyconstructnewchildrenborder_brushset_border_brushborder_thicknessset_border_thicknesscorner_radiusset_corner_radiusbackground_sizingset_background_sizingpaddingset_paddinginitial_controlsset_initial_controlsactive_toolset_active_toolink_drawing_attributesis_ruler_button_checkedset_is_ruler_button_checkedtarget_ink_canvasset_target_ink_canvasis_stencil_button_checkedset_is_stencil_button_checkedbutton_flyout_placementset_button_flyout_placementtarget_ink_presenterset_target_ink_presentereffective_ink_presenterget_tool_buttonget_toggle_buttonget_menu_buttonactive_tool_changedink_drawing_attributes_changederase_all_clickedis_stencil_button_checked_changederase_all
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InkToolbar>
Returns a strong reference to this object.
children_property
fn children_property() -> &'static DirectProperty<InkToolbar, Controls>
initial_controls_property
fn initial_controls_property() -> &'static StyledProperty<InkToolbarInitialControls>
active_tool_property
fn active_tool_property() -> &'static StyledProperty<Option<Ref<InkToolbarToolButton>>>
ink_drawing_attributes_property
fn ink_drawing_attributes_property() -> &'static DirectProperty<InkToolbar, Option<InkDrawingAttributes>>
is_ruler_button_checked_property
fn is_ruler_button_checked_property() -> &'static StyledProperty<bool>
target_ink_canvas_property
fn target_ink_canvas_property() -> &'static StyledProperty<Option<Ref<InkCanvas>>>
is_stencil_button_checked_property
fn is_stencil_button_checked_property() -> &'static StyledProperty<bool>
button_flyout_placement_property
fn button_flyout_placement_property() -> &'static StyledProperty<InkToolbarButtonFlyoutPlacement>
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
target_ink_presenter_property
fn target_ink_presenter_property() -> &'static StyledProperty<Option<Rc<InkPresenter>>>
border_brush_property
fn border_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
border_thickness_property
fn border_thickness_property() -> &'static StyledProperty<Thickness>
corner_radius_property
fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
background_sizing_property
fn background_sizing_property() -> &'static StyledProperty<BackgroundSizing>
padding_property
fn padding_property() -> &'static StyledProperty<Thickness>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
children
fn children(self: &Self) -> Controls
Public content, including entries ignored by toolbar registration. Only supported, nonduplicate registrations enter the visual panel.
border_brush
fn border_brush(self: &Self) -> Option<Rc<dyn IBrush>>
set_border_brush
fn set_border_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
border_thickness
fn border_thickness(self: &Self) -> Thickness
set_border_thickness
fn set_border_thickness(self: &Self, value: Thickness)
corner_radius
fn corner_radius(self: &Self) -> CornerRadius
set_corner_radius
fn set_corner_radius(self: &Self, value: CornerRadius)
background_sizing
fn background_sizing(self: &Self) -> BackgroundSizing
set_background_sizing
fn set_background_sizing(self: &Self, value: BackgroundSizing)
padding
fn padding(self: &Self) -> Thickness
set_padding
fn set_padding(self: &Self, value: Thickness)
initial_controls
fn initial_controls(self: &Self) -> InkToolbarInitialControls
set_initial_controls
fn set_initial_controls(self: &Self, value: InkToolbarInitialControls)
active_tool
fn active_tool(self: &Self) -> Option<Ref<InkToolbarToolButton>>
set_active_tool
fn set_active_tool(self: &Self, value: Option<Ref<InkToolbarToolButton>>)
ink_drawing_attributes
fn ink_drawing_attributes(self: &Self) -> Option<InkDrawingAttributes>
is_ruler_button_checked
fn is_ruler_button_checked(self: &Self) -> bool
set_is_ruler_button_checked
fn set_is_ruler_button_checked(self: &Self, value: bool)
target_ink_canvas
fn target_ink_canvas(self: &Self) -> Option<Ref<InkCanvas>>
set_target_ink_canvas
fn set_target_ink_canvas(self: &Self, value: Option<Ref<InkCanvas>>)
is_stencil_button_checked
fn is_stencil_button_checked(self: &Self) -> bool
set_is_stencil_button_checked
fn set_is_stencil_button_checked(self: &Self, value: bool)
button_flyout_placement
fn button_flyout_placement(self: &Self) -> InkToolbarButtonFlyoutPlacement
set_button_flyout_placement
fn set_button_flyout_placement(self: &Self, value: InkToolbarButtonFlyoutPlacement)
target_ink_presenter
fn target_ink_presenter(self: &Self) -> Option<Rc<InkPresenter>>
set_target_ink_presenter
fn set_target_ink_presenter(self: &Self, value: Option<Rc<InkPresenter>>)
effective_ink_presenter
fn effective_ink_presenter(self: &Self) -> Option<Rc<InkPresenter>>
get_tool_button
fn get_tool_button(self: &Self, tool: InkToolbarTool) -> Option<Ref<InkToolbarToolButton>>
get_toggle_button
fn get_toggle_button(self: &Self, kind: InkToolbarToggle) -> Option<Ref<InkToolbarToggleButton>>
get_menu_button
fn get_menu_button(self: &Self, kind: InkToolbarMenuKind) -> Option<Ref<InkToolbarMenuButton>>
active_tool_changed
fn active_tool_changed(self: &Self, handler: impl Fn(&InkToolbar) -> () + 'static) -> Rc<dyn IDisposable>
ink_drawing_attributes_changed
fn ink_drawing_attributes_changed(self: &Self, handler: impl Fn(&InkToolbar) -> () + 'static) -> Rc<dyn IDisposable>
erase_all_clicked
fn erase_all_clicked(self: &Self, handler: impl Fn(&InkToolbar) -> () + 'static) -> Rc<dyn IDisposable>
is_stencil_button_checked_changed
fn is_stencil_button_checked_changed(self: &Self, handler: impl Fn(&InkToolbarIsStencilButtonCheckedChangedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherControlImplExtPanelImplExtStackPanelImplExtIUnknownImplDerefUpcast<T>Upcast<InkToolbar>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplLayoutableImplStackPanelImplVisualImplInputElementImplControlImplFerroObjectImplPanelImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.