[][src]Struct ezgui::Composite

pub struct Composite { /* fields omitted */ }

Implementations

impl Composite[src]

pub fn new(top_level: Widget) -> CompositeBuilder[src]

pub fn event(&mut self, ctx: &mut EventCtx) -> Outcome[src]

pub fn draw(&self, g: &mut GfxCtx)[src]

pub fn get_all_click_actions(&self) -> HashSet<String>[src]

pub fn restore(&mut self, ctx: &mut EventCtx, prev: &Composite)[src]

pub fn scroll_to_member(&mut self, ctx: &EventCtx, name: String)[src]

pub fn has_widget(&self, name: &str) -> bool[src]

pub fn slider(&self, name: &str) -> &Slider[src]

pub fn slider_mut(&mut self, name: &str) -> &mut Slider[src]

pub fn area_slider(&self, name: &str) -> &AreaSlider[src]

pub fn take_menu_choice<T: 'static>(&mut self, name: &str) -> T[src]

pub fn is_checked(&self, name: &str) -> bool[src]

pub fn maybe_is_checked(&self, name: &str) -> Option<bool>[src]

pub fn text_box(&self, name: &str) -> String[src]

pub fn spinner(&self, name: &str) -> isize[src]

pub fn dropdown_value<T: 'static + PartialEq + Clone>(&self, name: &str) -> T[src]

pub fn persistent_split_value<T: 'static + PartialEq + Clone>(
    &self,
    name: &str
) -> T
[src]

pub fn autocomplete_done<T: 'static + Clone>(
    &self,
    name: &str
) -> Option<Vec<T>>
[src]

pub fn find<T: WidgetImpl>(&self, name: &str) -> &T[src]

pub fn find_mut<T: WidgetImpl>(&mut self, name: &str) -> &mut T[src]

pub fn rect_of(&self, name: &str) -> &ScreenRectangle[src]

pub fn center_of(&self, name: &str) -> ScreenPt[src]

pub fn center_of_panel(&self) -> ScreenPt[src]

pub fn align_above(&mut self, ctx: &mut EventCtx, other: &Composite)[src]

pub fn align_below(&mut self, ctx: &mut EventCtx, other: &Composite, pad: f64)[src]

pub fn replace(&mut self, ctx: &mut EventCtx, id: &str, new: Widget)[src]

pub fn clicked_outside(&self, ctx: &mut EventCtx) -> bool[src]

pub fn currently_hovering(&self) -> Option<&String>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Composite

impl !Send for Composite

impl !Sync for Composite

impl Unpin for Composite

impl !UnwindSafe for Composite

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,