[][src]Struct ganache::Gui

pub struct Gui<C: Context> {
    pub slots: Slots,
    // some fields omitted
}

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]

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]

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]

pub fn layout_if_needed(
    &mut self,
    theme: &Theme<C::ThemeResources, C::StyleFieldValue>
) -> bool
[src]

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]

pub fn draw(
    &self,
    theme: &Theme<C::ThemeResources, C::StyleFieldValue>,
    draw_context: C::DrawContext
) -> Vec<C::DrawCommand>
[src]

Auto Trait Implementations

impl<C> !Send for Gui<C>

impl<C> !Sync for Gui<C>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]