Struct carbide_controls::PlainButton [−][src]
Implementations
impl<GS: GlobalState> PlainButton<GS>
[src]
pub fn on_click(
self,
fire: fn(myself: &mut Self, env: &mut Environment<GS>, global_state: &mut GS)
) -> Box<Self>
[src]
self,
fire: fn(myself: &mut Self, env: &mut Environment<GS>, global_state: &mut GS)
) -> Box<Self>
pub fn hover(self, is_hovered: Box<dyn State<bool, GS>>) -> Box<Self>
[src]
pub fn pressed(self, pressed: Box<dyn State<bool, GS>>) -> Box<Self>
[src]
pub fn new(child: Box<dyn Widget<GS>>) -> Box<Self>
[src]
Trait Implementations
impl<GS: GlobalState> ChildRender for PlainButton<GS>
[src]
impl<GS: Clone> Clone for PlainButton<GS> where
GS: GlobalState,
[src]
GS: GlobalState,
fn clone(&self) -> PlainButton<GS>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<GS: GlobalState> CommonWidget<GS> for PlainButton<GS>
[src]
fn get_id(&self) -> Id
[src]
fn get_flag(&self) -> Flags
[src]
fn get_children(&self) -> WidgetIter<'_, GS>
[src]
fn get_children_mut(&mut self) -> WidgetIterMut<'_, GS>
[src]
fn get_proxied_children(&mut self) -> WidgetIterMut<'_, GS>
[src]
fn get_position(&self) -> Point
[src]
fn set_position(&mut self, position: Dimensions)
[src]
fn get_dimension(&self) -> Dimensions
[src]
fn set_dimension(&mut self, dimensions: Dimensions)
[src]
pub fn get_x(&self) -> f64
[src]
pub fn set_x(&mut self, x: f64)
[src]
pub fn get_y(&self) -> f64
[src]
pub fn set_y(&mut self, y: f64)
[src]
pub fn get_width(&self) -> f64
[src]
pub fn set_width(&mut self, width: f64)
[src]
pub fn get_height(&self) -> f64
[src]
pub fn set_height(&mut self, height: f64)
[src]
pub fn is_inside(&self, point: [f64; 2]) -> bool
[src]
impl<GS: GlobalState> Event<GS> for PlainButton<GS>
[src]
fn handle_mouse_event(
&mut self,
event: &MouseEvent,
consumed: &bool,
env: &mut Environment<GS>,
global_state: &mut GS
)
[src]
&mut self,
event: &MouseEvent,
consumed: &bool,
env: &mut Environment<GS>,
global_state: &mut GS
)
fn handle_keyboard_event(
&mut self,
event: &KeyboardEvent,
env: &mut Environment<GS>,
global_state: &mut GS
)
[src]
&mut self,
event: &KeyboardEvent,
env: &mut Environment<GS>,
global_state: &mut GS
)
fn handle_other_event(&mut self, event: &WidgetEvent)
[src]
fn process_mouse_event(
&mut self,
event: &MouseEvent,
consumed: &bool,
env: &mut Environment<GS>,
global_state: &mut GS
)
[src]
&mut self,
event: &MouseEvent,
consumed: &bool,
env: &mut Environment<GS>,
global_state: &mut GS
)
fn process_keyboard_event(
&mut self,
event: &KeyboardEvent,
env: &mut Environment<GS>,
global_state: &mut GS
)
[src]
&mut self,
event: &KeyboardEvent,
env: &mut Environment<GS>,
global_state: &mut GS
)
fn process_other_event(
&mut self,
event: &WidgetEvent,
env: &mut Environment<GS>,
global_state: &mut GS
)
[src]
&mut self,
event: &WidgetEvent,
env: &mut Environment<GS>,
global_state: &mut GS
)
pub fn process_mouse_event_default(
&mut self,
event: &MouseEvent,
consumed: &bool,
env: &mut Environment<S>,
global_state: &mut S
)
[src]
&mut self,
event: &MouseEvent,
consumed: &bool,
env: &mut Environment<S>,
global_state: &mut S
)
pub fn process_keyboard_event_default(
&mut self,
event: &KeyboardEvent,
env: &mut Environment<S>,
global_state: &mut S
)
[src]
&mut self,
event: &KeyboardEvent,
env: &mut Environment<S>,
global_state: &mut S
)
pub fn process_other_event_default(
&mut self,
event: &WidgetEvent,
env: &mut Environment<S>,
global_state: &mut S
)
[src]
&mut self,
event: &WidgetEvent,
env: &mut Environment<S>,
global_state: &mut S
)
impl<GS: GlobalState> Layout<GS> for PlainButton<GS>
[src]
fn flexibility(&self) -> u32
[src]
fn calculate_size(
&mut self,
requested_size: [f64; 2],
env: &Environment<GS>
) -> [f64; 2]
[src]
&mut self,
requested_size: [f64; 2],
env: &Environment<GS>
) -> [f64; 2]
fn position_children(&mut self)
[src]
impl<GS: GlobalState> StateSync<GS> for PlainButton<GS>
[src]
fn insert_local_state(&self, env: &mut Environment<GS>)
[src]
fn update_all_widget_state(&mut self, env: &Environment<GS>, global_state: &GS)
[src]
fn update_local_widget_state(&mut self, env: &Environment<GS>)
[src]
fn sync_state(&mut self, env: &mut Environment<GS>, global_state: &GS)
[src]
pub fn default_sync_state(&mut self, env: &mut Environment<S>, global_state: &S)
[src]
impl<GS: GlobalState> Widget<GS> for PlainButton<GS>
[src]
impl<GS: GlobalState> WidgetExt<GS> for PlainButton<GS>
[src]
pub fn frame(
self,
width: Box<dyn State<f64, GS> + 'static, Global>,
height: Box<dyn State<f64, GS> + 'static, Global>
) -> Box<Frame<GS>, Global>
[src]
self,
width: Box<dyn State<f64, GS> + 'static, Global>,
height: Box<dyn State<f64, GS> + 'static, Global>
) -> Box<Frame<GS>, Global>
pub fn frame_width(
self,
width: Box<dyn State<f64, GS> + 'static, Global>
) -> Box<Frame<GS>, Global>
[src]
self,
width: Box<dyn State<f64, GS> + 'static, Global>
) -> Box<Frame<GS>, Global>
pub fn padding(self, edge_insets: EdgeInsets) -> Box<Padding<GS>, Global>
[src]
pub fn clip(self) -> Box<Clip<GS>, Global>
[src]
pub fn hidden(self) -> Box<Hidden<GS>, Global>
[src]
pub fn offset(
self,
offset_x: CommonState<f64, GS>,
offset_y: CommonState<f64, GS>
) -> Box<Offset<GS>, Global>
[src]
self,
offset_x: CommonState<f64, GS>,
offset_y: CommonState<f64, GS>
) -> Box<Offset<GS>, Global>
pub fn border(self) -> Box<Border<GS>, Global>
[src]
Auto Trait Implementations
impl<GS> !RefUnwindSafe for PlainButton<GS>
[src]
impl<GS> !Send for PlainButton<GS>
[src]
impl<GS> !Sync for PlainButton<GS>
[src]
impl<GS> Unpin for PlainButton<GS>
[src]
impl<GS> !UnwindSafe for PlainButton<GS>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> Render<U> for T where
T: CommonWidget<U> + ChildRender,
U: GlobalState,
[src]
T: CommonWidget<U> + ChildRender,
U: GlobalState,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,