[][src]Struct megaui::Ui

pub struct Ui {
    pub font_atlas: Rc<FontAtlas>,
    // some fields omitted
}

Fields

font_atlas: Rc<FontAtlas>

Implementations

impl Ui[src]

pub fn new() -> Ui[src]

pub fn set_style(&mut self, style: Style)[src]

pub fn set_clipboard_object<T: ClipboardObject + 'static>(
    &mut self,
    clipboard: T
)
[src]

pub fn is_mouse_over(&self, mouse_position: Vector2) -> bool[src]

pub fn active_window_focused(&self) -> bool[src]

pub fn is_dragging(&self) -> bool[src]

pub fn close_current_window(&mut self)[src]

pub fn is_focused(&self, id: Id) -> bool[src]

pub fn new_frame(&mut self)[src]

pub fn render(&mut self, draw_list: &mut Vec<DrawList>)[src]

pub fn end_frame(&mut self)[src]

pub fn focus_window(&mut self, id: Id)[src]

pub fn move_window(&mut self, id: Id, position: Vector2)[src]

pub fn same_line(&mut self)[src]

impl Ui[src]

pub fn button<P: Into<Option<Vector2>>>(
    &mut self,
    position: P,
    label: &str
) -> bool
[src]

impl Ui[src]

pub fn editbox(&mut self, id: Id, size: Vector2, text: &mut String)[src]

impl Ui[src]

pub fn group<F: FnOnce(&mut Ui)>(&mut self, id: Id, size: Vector2, f: F) -> Drag[src]

impl Ui[src]

pub fn input_field(&mut self, id: Id, label: &str, data: &mut String)[src]

impl Ui[src]

pub fn label<P: Into<Option<Vector2>>>(&mut self, position: P, label: &str)[src]

impl Ui[src]

pub fn separator(&mut self)[src]

impl Ui[src]

pub fn slider(&mut self, id: Id, label: &str, range: Range<f32>, data: &mut f32)[src]

impl Ui[src]

pub fn tabbar(
    &mut self,
    id: Id,
    position: Vector2,
    size: Vector2,
    tabs: &'static [&'static str]
) -> u32
[src]

impl Ui[src]

pub fn texture(&mut self, texture: u32, w: f32, h: f32) -> bool[src]

impl Ui[src]

pub fn tree_node<F: FnOnce(&mut Ui)>(&mut self, id: Id, label: &str, f: F)[src]

impl Ui[src]

pub fn window<F: FnOnce(&mut Ui)>(
    &mut self,
    id: Id,
    position: Vector2,
    size: Vector2,
    f: F
) -> bool
[src]

Trait Implementations

impl InputHandler for Ui[src]

Auto Trait Implementations

impl !RefUnwindSafe for Ui

impl !Send for Ui

impl !Sync for Ui

impl Unpin for Ui

impl !UnwindSafe for Ui

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> 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.