[−][src]Struct ganache::Gui
Fields
slots: Slots
Methods
impl<C: Context> Gui<C>
[src]
pub fn new(root_bounds: Bounds) -> Gui<C>
[src]
pub fn override_slot_style<T: Into<String>, U: Into<C::StyleFieldValue>>(
&mut self,
slot_id: SlotId,
field_name: T,
value: U
)
[src]
&mut self,
slot_id: SlotId,
field_name: T,
value: U
)
pub fn cycle_focus(&mut self, direction: CycleFocusDirection)
[src]
pub fn set_focus(&mut self, slot_id: Option<SlotId>)
[src]
pub fn root_slot_id(&self) -> SlotId
[src]
pub fn add_widget<W: Widget<C>>(&mut self, widget: W) -> WidgetId
[src]
pub fn add_slot_with_widget<W: Widget<C>>(
&mut self,
parent_id: SlotId,
slot_info: SlotInfo,
widget: W
) -> (SlotId, WidgetHandle<C, W>)
[src]
&mut self,
parent_id: SlotId,
slot_info: SlotInfo,
widget: W
) -> (SlotId, WidgetHandle<C, W>)
pub fn get_widget<W: Widget<C>>(&self, handle: WidgetHandle<C, W>) -> &W
[src]
pub fn get_widget_mut<W: Widget<C>>(
&mut self,
handle: WidgetHandle<C, W>
) -> &mut W
[src]
&mut self,
handle: WidgetHandle<C, W>
) -> &mut W
pub fn layout_if_needed(
&mut self,
theme: &Theme<C::ThemeResources, C::StyleFieldValue>
) -> bool
[src]
&mut self,
theme: &Theme<C::ThemeResources, C::StyleFieldValue>
) -> bool
Returns true
if layout was needed and performed.
pub fn process_event(
&mut self,
theme: &Theme<C::ThemeResources, C::StyleFieldValue>,
event: &mut C::InputEvent
) -> Vec<(SlotId, Signal)>
[src]
&mut self,
theme: &Theme<C::ThemeResources, C::StyleFieldValue>,
event: &mut C::InputEvent
) -> Vec<(SlotId, Signal)>
pub fn draw(
&self,
theme: &Theme<C::ThemeResources, C::StyleFieldValue>,
draw_context: C::DrawContext
) -> Vec<C::DrawCommand>
[src]
&self,
theme: &Theme<C::ThemeResources, C::StyleFieldValue>,
draw_context: C::DrawContext
) -> Vec<C::DrawCommand>
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,