pub struct DesktopWindow {Show 19 fields
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: Window
§pass: Pass
§color_texture: Texture
§depth_texture: Texture
§caption_view: View
§main_view: View
§inner_view: View
§min_btn: DesktopButton
§max_btn: DesktopButton
§close_btn: DesktopButton
§vr_btn: DesktopButton
§caption_text: Text
§caption_bg: Quad
§caption_size: Vec2
§caption: String
§inner_over_chrome: bool
Implementations§
Source§impl DesktopWindow
impl DesktopWindow
pub fn proto(cx: &mut Cx) -> Self
pub fn text_style_window_caption() -> TextStyleId
pub fn style(cx: &mut Cx, _opt: &StyleOptions)
pub fn handle_desktop_window( &mut self, cx: &mut Cx, event: &mut Event, ) -> DesktopWindowEvent
pub fn begin_desktop_window( &mut self, cx: &mut Cx, menu: Option<&Menu>, ) -> ViewRedraw
pub fn end_desktop_window(&mut self, cx: &mut Cx)
Trait Implementations§
Source§impl Clone for DesktopWindow
impl Clone for DesktopWindow
Source§fn clone(&self) -> DesktopWindow
fn clone(&self) -> DesktopWindow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DesktopWindow
impl RefUnwindSafe for DesktopWindow
impl Send for DesktopWindow
impl Sync for DesktopWindow
impl Unpin for DesktopWindow
impl UnwindSafe for DesktopWindow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more