[][src]Struct orbtk::window::Window

pub struct Window {
    pub widgets: RefCell<Vec<Arc<dyn Widget>>>,
    pub running: Cell<bool>,
    pub theme: Theme,
    // some fields omitted
}

Fields

widgets: RefCell<Vec<Arc<dyn Widget>>>running: Cell<bool>theme: Theme

Methods

impl Window[src]

pub fn new(rect: Rect, title: &str) -> Self[src]

pub fn new_flags(rect: Rect, title: &str, flags: &[WindowFlag]) -> Self[src]

pub fn from_inner(inner: InnerWindow) -> Self[src]

pub fn into_inner(self) -> InnerWindow[src]

pub fn x(&self) -> i32[src]

pub fn y(&self) -> i32[src]

pub fn width(&self) -> u32[src]

pub fn height(&self) -> u32[src]

pub fn title(&self) -> String[src]

pub fn set_pos(&self, x: i32, y: i32)[src]

pub fn set_size(&self, width: u32, height: u32)[src]

pub fn set_title(&self, title: &str)[src]

pub fn close(&self)[src]

pub fn add<T: Widget>(&self, widget: &Arc<T>) -> usize[src]

pub fn draw(&self)[src]

pub fn set_theme(&mut self, theme: Theme)[src]

pub fn step(&mut self)[src]

pub fn drain_events(&mut self)[src]

pub fn drain_orbital_events(&mut self)[src]

pub fn exec(&mut self)[src]

pub fn needs_redraw(&mut self)[src]

pub fn draw_if_needed(&mut self)[src]

Trait Implementations

impl Resize for Window[src]

Auto Trait Implementations

impl !RefUnwindSafe for Window

impl !Send for Window

impl !Sync for Window

impl Unpin for Window

impl !UnwindSafe for Window

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> SetParameter for T

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.