[][src]Struct makepad_widget::DesktopWindow

pub struct DesktopWindow {
    pub window: Window,
    pub pass: Pass,
    pub color_texture: Texture,
    pub depth_texture: Texture,
    pub caption_view: View,
    pub main_view: View,
    pub inner_view: View,
    pub min_btn: DesktopButton,
    pub max_btn: DesktopButton,
    pub close_btn: DesktopButton,
    pub vr_btn: DesktopButton,
    pub caption_text: Text,
    pub caption_bg: Quad,
    pub caption_size: Vec2,
    pub caption: String,
    pub window_menu: WindowMenu,
    pub default_menu: Menu,
    pub _last_menu: Option<Menu>,
    pub inner_over_chrome: bool,
}

Fields

window: Windowpass: Passcolor_texture: Texturedepth_texture: Texturecaption_view: Viewmain_view: Viewinner_view: Viewmin_btn: DesktopButtonmax_btn: DesktopButtonclose_btn: DesktopButtonvr_btn: DesktopButtoncaption_text: Textcaption_bg: Quadcaption_size: Vec2caption: Stringwindow_menu: WindowMenudefault_menu: Menu_last_menu: Option<Menu>inner_over_chrome: bool

Methods

impl DesktopWindow[src]

pub fn proto(cx: &mut Cx) -> Self[src]

pub fn text_style_window_caption() -> TextStyleId[src]

pub fn style(cx: &mut Cx, _opt: &StyleOptions)[src]

pub fn handle_desktop_window(
    &mut self,
    cx: &mut Cx,
    event: &mut Event
) -> DesktopWindowEvent
[src]

pub fn begin_desktop_window(
    &mut self,
    cx: &mut Cx,
    menu: Option<&Menu>
) -> ViewRedraw
[src]

pub fn end_desktop_window(&mut self, cx: &mut Cx)[src]

Trait Implementations

impl Clone for DesktopWindow[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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