pub struct ColorPickerSlider {Show 13 fields
pub value: f64,
pub value_changed: ValueChangedHandler,
pub color_channel: ColorPickerHsvChannel,
pub minimum: f64,
pub maximum: f64,
pub step_frequency: f64,
pub orientation: Axis,
pub is_direction_reversed: bool,
pub header: Option<WidgetRef>,
pub is_thumb_tool_tip_enabled: bool,
pub corner_radius: Option<f64>,
pub is_enabled: bool,
pub key: Option<KeyRef>,
}Expand description
XAML ColorPickerSlider (a Slider) in ColorPickerSliderStyle.
Fields§
§value: f64Value.
value_changed: ValueChangedHandlerValueChanged, with the value the slider wants; the caller owns value.
color_channel: ColorPickerHsvChannelColorChannel: what the value is, for the arrow keys and the tooltip; Value by default.
minimum: f64Minimum.
maximum: f64Maximum.
step_frequency: f64StepFrequency.
orientation: AxisXAML Orientation: Axis::Horizontal or Axis::Vertical.
is_direction_reversed: boolIsDirectionReversed.
header: Option<WidgetRef>Header.
is_thumb_tool_tip_enabled: boolIsThumbToolTipEnabled: whether the slider itself shows the thumb tooltips, and whether
they are enabled before the slider first takes the focus or changes value.
corner_radius: Option<f64>CornerRadius: of SliderContainer, which the focus visual follows; ControlCornerRadius
by default; the theme’s ControlCornerRadius when None.
is_enabled: boolIsEnabled.
key: Option<KeyRef>Identity retained across parent rebuilds.
Implementations§
Source§impl ColorPickerSlider
impl ColorPickerSlider
Sourcepub fn new(
value: f64,
value_changed: impl Fn(&mut App, f64) + 'static,
) -> ColorPickerSlider
pub fn new( value: f64, value_changed: impl Fn(&mut App, f64) + 'static, ) -> ColorPickerSlider
Creates a slider at value, which asks for others through value_changed.
Sourcepub fn color_channel(self, value: ColorPickerHsvChannel) -> Self
pub fn color_channel(self, value: ColorPickerHsvChannel) -> Self
Sets ColorChannel.
Sourcepub fn step_frequency(self, value: f64) -> Self
pub fn step_frequency(self, value: f64) -> Self
Sets StepFrequency.
Sourcepub fn orientation(self, value: Axis) -> Self
pub fn orientation(self, value: Axis) -> Self
Sets Orientation: Axis::Horizontal or Axis::Vertical.
Sourcepub fn is_direction_reversed(self, value: bool) -> Self
pub fn is_direction_reversed(self, value: bool) -> Self
Sets IsDirectionReversed.
Sourcepub fn header<K>(self, value: impl IntoWidget<K>) -> Self
pub fn header<K>(self, value: impl IntoWidget<K>) -> Self
Sets Header.
Sourcepub fn is_thumb_tool_tip_enabled(self, value: bool) -> Self
pub fn is_thumb_tool_tip_enabled(self, value: bool) -> Self
Sets IsThumbToolTipEnabled.
Sourcepub fn corner_radius(self, value: f64) -> Self
pub fn corner_radius(self, value: f64) -> Self
Sets CornerRadius.
Sourcepub fn is_enabled(self, value: bool) -> Self
pub fn is_enabled(self, value: bool) -> Self
Sets IsEnabled.
Trait Implementations§
Source§impl Clone for ColorPickerSlider
impl Clone for ColorPickerSlider
Source§impl Debug for ColorPickerSlider
impl Debug for ColorPickerSlider
Source§impl StatefulWidget for ColorPickerSlider
impl StatefulWidget for ColorPickerSlider
Source§type State = ColorPickerSliderState
type State = ColorPickerSliderState
Source§fn create_state(&self) -> ColorPickerSliderState
fn create_state(&self) -> ColorPickerSliderState
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for ColorPickerSlider
impl !Send for ColorPickerSlider
impl !Sync for ColorPickerSlider
impl !UnwindSafe for ColorPickerSlider
impl Forget for ColorPickerSlider
impl Freeze for ColorPickerSlider
impl Move for ColorPickerSlider
impl Unpin for ColorPickerSlider
impl UnsafeUnpin for ColorPickerSliderwhere
*const RcInner<dyn Fn(&mut App, f64)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, f64)>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.