Struct makepad_widgets::color_picker::ColorPicker
source · pub struct ColorPicker {
pub size: f64,
/* private fields */
}
Fields§
§size: f64
Implementations§
source§impl ColorPicker
impl ColorPicker
pub fn handle_finger( &mut self, cx: &mut Cx, rel: DVec2, dispatch_action: &mut dyn FnMut(&mut Cx, ColorPickerAction) )
pub fn to_rgba(&self) -> Vec4
pub fn handle_event_with( &mut self, cx: &mut Cx, event: &Event, dispatch_action: &mut dyn FnMut(&mut Cx, ColorPickerAction) )
pub fn draw(&mut self, cx: &mut Cx2d<'_>, rgba: Vec4, height_scale: f64)
Trait Implementations§
source§impl AnimatorImpl for ColorPicker
impl AnimatorImpl for ColorPicker
fn animator_play(&mut self, cx: &mut Cx, state: &[LiveId; 2])
fn animator_in_state(&self, cx: &Cx, check_state_pair: &[LiveId; 2]) -> bool
fn animator_cut(&mut self, cx: &mut Cx, state: &[LiveId; 2])
fn animator_after_apply( &mut self, cx: &mut Cx, apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] )
fn animator_apply_state(&mut self, cx: &mut Cx)
fn animator_handle_event( &mut self, cx: &mut Cx, event: &Event ) -> AnimatorAction
fn animator_toggle( &mut self, cx: &mut Cx, is_state_1: bool, animate: Animate, state1: &[LiveId; 2], state2: &[LiveId; 2] )
source§impl LiveApply for ColorPicker
impl LiveApply for ColorPicker
source§impl LiveApplyValue for ColorPicker
impl LiveApplyValue for ColorPicker
source§impl LiveHook for ColorPicker
impl LiveHook for ColorPicker
fn before_live_design(_cx: &mut Cx)
fn apply_value_unknown( &mut self, cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize
fn apply_value_instance( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> usize
fn skip_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] ) -> Option<usize>
fn before_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] )
fn after_apply( &mut self, _cx: &mut Cx, _apply_from: ApplyFrom, _index: usize, _nodes: &[LiveNode] )
fn after_apply_from(&mut self, cx: &mut Cx, apply_from: ApplyFrom)
fn after_new_from_doc(&mut self, _cx: &mut Cx)
fn after_new_before_apply(&mut self, _cx: &mut Cx)
source§impl LiveHookDeref for ColorPicker
impl LiveHookDeref for ColorPicker
source§impl LiveNew for ColorPicker
impl LiveNew for ColorPicker
fn live_type_info(cx: &mut Cx) -> LiveTypeInfo
fn live_design_with(cx: &mut Cx)
fn new(cx: &mut Cx) -> Self
fn new_apply( cx: &mut Cx, from: ApplyFrom, index: usize, nodes: &[LiveNode] ) -> Selfwhere Self: Sized,
fn new_apply_mut_index( cx: &mut Cx, from: ApplyFrom, index: &mut usize, nodes: &[LiveNode] ) -> Selfwhere Self: Sized,
fn new_from_ptr(cx: &mut Cx, live_ptr: Option<LivePtr>) -> Selfwhere Self: Sized,
fn new_main(cx: &mut Cx) -> Selfwhere Self: Sized,
fn update_main(&mut self, cx: &mut Cx)
fn new_local(cx: &mut Cx) -> Selfwhere Self: Sized,
fn new_from_module( cx: &mut Cx, module_id: LiveModuleId, id: LiveId ) -> Option<Self>where Self: Sized,
fn update_from_module( &mut self, cx: &mut Cx, module_id: LiveModuleId, id: LiveId )
Auto Trait Implementations§
impl !RefUnwindSafe for ColorPicker
impl !Send for ColorPicker
impl !Sync for ColorPicker
impl Unpin for ColorPicker
impl !UnwindSafe for ColorPicker
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
Mutably borrows from an owned value. Read more