Struct carbide_core::widget::primitive::spacer::Spacer [−][src]
Implementations
impl Spacer
[src]
pub fn new(space: SpacerDirection) -> Box<Self>
[src]
Trait Implementations
impl Clone for Spacer
[src]
impl<S: GlobalState> CommonWidget<S> for Spacer
[src]
fn get_id(&self) -> Uuid
[src]
fn get_flag(&self) -> Flags
[src]
fn get_children(&self) -> WidgetIter<'_, S>ⓘNotable traits for WidgetIter<'a, S>
impl<'a, S> Iterator for WidgetIter<'a, S> type Item = &'a Box<dyn Widget<S>>;
[src]
Notable traits for WidgetIter<'a, S>
impl<'a, S> Iterator for WidgetIter<'a, S> type Item = &'a Box<dyn Widget<S>>;
fn get_children_mut(&mut self) -> WidgetIterMut<'_, S>ⓘNotable traits for WidgetIterMut<'a, S>
impl<'a, S> Iterator for WidgetIterMut<'a, S> type Item = &'a mut Box<dyn Widget<S>>;
[src]
Notable traits for WidgetIterMut<'a, S>
impl<'a, S> Iterator for WidgetIterMut<'a, S> type Item = &'a mut Box<dyn Widget<S>>;
fn get_proxied_children(&mut self) -> WidgetIterMut<'_, S>ⓘNotable traits for WidgetIterMut<'a, S>
impl<'a, S> Iterator for WidgetIterMut<'a, S> type Item = &'a mut Box<dyn Widget<S>>;
[src]
Notable traits for WidgetIterMut<'a, S>
impl<'a, S> Iterator for WidgetIterMut<'a, S> type Item = &'a mut Box<dyn Widget<S>>;
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]
fn get_x(&self) -> Scalar
[src]
fn set_x(&mut self, x: Scalar)
[src]
fn get_y(&self) -> Scalar
[src]
fn set_y(&mut self, y: Scalar)
[src]
fn get_width(&self) -> Scalar
[src]
fn set_width(&mut self, width: Scalar)
[src]
fn get_height(&self) -> Scalar
[src]
fn set_height(&mut self, height: Scalar)
[src]
fn is_inside(&self, point: Point) -> bool
[src]
impl Debug for Spacer
[src]
impl<GS: GlobalState> Event<GS> for Spacer
[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
)
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
)
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
)
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<S: GlobalState> Layout<S> for Spacer
[src]
fn flexibility(&self) -> u32
[src]
fn calculate_size(
&mut self,
requested_size: Dimensions,
_env: &Environment<S>
) -> Dimensions
[src]
&mut self,
requested_size: Dimensions,
_env: &Environment<S>
) -> Dimensions
fn position_children(&mut self)
[src]
impl<S: GlobalState> Render<S> for Spacer
[src]
fn get_primitives(&mut self, _fonts: &Map) -> Vec<Primitive>
[src]
impl<GS: GlobalState> StateSync<GS> for Spacer
[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]
fn default_sync_state(&mut self, env: &mut Environment<S>, global_state: &S)
[src]
impl<GS: GlobalState> Widget<GS> for Spacer
[src]
impl<GS: GlobalState> WidgetExt<GS> for Spacer
[src]
fn frame(
self,
width: Box<dyn State<f64, GS>>,
height: Box<dyn State<f64, GS>>
) -> Box<Frame<GS>>
[src]
self,
width: Box<dyn State<f64, GS>>,
height: Box<dyn State<f64, GS>>
) -> Box<Frame<GS>>
fn frame_width(self, width: Box<dyn State<f64, GS>>) -> Box<Frame<GS>>
[src]
fn padding(self, edge_insets: EdgeInsets) -> Box<Padding<GS>>
[src]
fn clip(self) -> Box<Clip<GS>>
[src]
fn hidden(self) -> Box<Hidden<GS>>
[src]
fn offset(
self,
offset_x: CommonState<f64, GS>,
offset_y: CommonState<f64, GS>
) -> Box<Offset<GS>>
[src]
self,
offset_x: CommonState<f64, GS>,
offset_y: CommonState<f64, GS>
) -> Box<Offset<GS>>
fn border(self) -> Box<Border<GS>>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Spacer
[src]
impl Send for Spacer
[src]
impl Sync for Spacer
[src]
impl Unpin for Spacer
[src]
impl UnwindSafe for Spacer
[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> GlobalState for T where
T: 'static + Clone + Debug,
[src]
T: 'static + Clone + Debug,
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> 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>,