InkToolbarPenButton
struct · ferroui-controls-inking · v0.5.0
struct InkToolbarPenButton
Base pen tool. Palettes are observable handles owned independently by each pen.
Members
TYPEto_refcreate_ink_drawing_attributespalette_propertymin_stroke_width_propertymax_stroke_width_propertyselected_brush_propertyselected_brush_index_propertyselected_stroke_width_propertyconstructnewpaletteset_palettemin_stroke_widthset_min_stroke_widthmax_stroke_widthset_max_stroke_widthselected_brushselected_brush_indexset_selected_brush_indexselected_stroke_widthset_selected_stroke_widthdetermine_stroke_widthselected_color
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InkToolbarPenButton>
Returns a strong reference to this object.
create_ink_drawing_attributes
fn create_ink_drawing_attributes(self: &Self) -> Result<InkDrawingAttributes, InkError>
palette_property
fn palette_property() -> &'static StyledProperty<FerroList<Rc<dyn IBrush>>>
min_stroke_width_property
fn min_stroke_width_property() -> &'static StyledProperty<f64>
max_stroke_width_property
fn max_stroke_width_property() -> &'static StyledProperty<f64>
selected_brush_property
fn selected_brush_property() -> &'static DirectProperty<InkToolbarPenButton, Option<Rc<dyn IBrush>>>
selected_brush_index_property
fn selected_brush_index_property() -> &'static StyledProperty<i32>
selected_stroke_width_property
fn selected_stroke_width_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
palette
fn palette(self: &Self) -> ferroui_base::collections::FerroList<std::rc::Rc<dyn IBrush>>
set_palette
fn set_palette(self: &Self, value: ferroui_base::collections::FerroList<std::rc::Rc<dyn IBrush>>)
min_stroke_width
fn min_stroke_width(self: &Self) -> f64
set_min_stroke_width
fn set_min_stroke_width(self: &Self, value: f64)
max_stroke_width
fn max_stroke_width(self: &Self) -> f64
set_max_stroke_width
fn set_max_stroke_width(self: &Self, value: f64)
selected_brush
fn selected_brush(self: &Self) -> Option<Rc<dyn IBrush>>
selected_brush_index
fn selected_brush_index(self: &Self) -> i32
set_selected_brush_index
fn set_selected_brush_index(self: &Self, value: i32)
selected_stroke_width
fn selected_stroke_width(self: &Self) -> f64
set_selected_stroke_width
fn set_selected_stroke_width(self: &Self, value: f64)
determine_stroke_width
fn determine_stroke_width(self: &Self) -> f64
selected_color
fn selected_color(self: &Self) -> Result<Color, InkError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeInkToolbarPenButtonImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtToggleButtonImplExtContentControlImplExtControlImplExtButtonImplExtIUnknownImplDerefUpcast<T>Upcast<InkToolbarPenButton>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplButtonImplToggleButtonImplFerroObjectImplInkToolbarPenButtonImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.