Struct ux::Window[][src]

pub struct Window {
    pub stage: Stage,
    // some fields omitted
}

Fields

stage: Stage

Implementations

impl Window[src]

pub fn new() -> Window[src]

pub fn with_stage(stage: &Stage) -> Window[src]

new_with_clutter_stage: @stage: A #Stage

Creates a new #Stage, using @stage as the backing #Stage. This function is meant for use primarily for embedding a #Stage into a foreign stage when using a toolkit integration library.

Returns: A #Stage

pub fn get_for_stage(stage: &Stage) -> Option<Window>[src]

get_for_stage: @stage: A #Stage

Gets the #Stage parent of the #Stage, if it exists.

Returns: (transfer none): A #Stage, or %None

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

Trait Implementations

impl AsRef<Window> for Window[src]

impl Clone for Window[src]

impl Debug for Window[src]

impl Default for Window[src]

impl Display for Window[src]

impl Is<Window> for Window[src]

impl Object 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> Construction<T> for T where
    T: Default + Clone
[src]

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

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

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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>, 

impl<O> WindowExt for O where
    O: Is<Window>, 
[src]

pub fn get_child(&self) -> Option<Actor>[src]

get_child: @window: A #Stage

Get the primary child of the window. See set_child().

Returns: (transfer none): A #Actor, or %None

pub fn get_clutter_stage(&self) -> Option<&Stage>[src]

get_clutter_stage: @window: A #Stage

Gets the #Stage managed by the window.

Returns: (transfer none): A #Stage

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

get_fullscreen: @window: A #Stage

Determines if the window has been set to be in fullscreen mode.

Returns: %true if the window has been set to be in fullscreen mode, otherwise %false

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

get_has_toolbar: @window: A #Stage

Determines whether the window has a toolbar or not. See set_has_toolbar().

Returns: %true if the window has a toolbar, otherwise %false

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

get_icon_name: @window: A #Stage

Gets the currently set window icon name. This will be %None if there is none set, or the icon was set with set_icon_from_cogl_texture().

Returns: The window icon name, or %None

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

get_small_screen: @window: A #Stage

Determines if the window is in small-screen mode. See set_small_screen().

Returns: %true if the window is in small-screen mode, otherwise %false

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

get_title: @window: A #Stage

Retrieves the title used for the window.

Returns: The title used for the window

pub fn get_toolbar(&self) -> Option<Toolbar>[src]

get_toolbar: @window: A #Stage

Retrieves the toolbar associated with the window.

Returns: (transfer none): A #Toolbar

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

get_window_position: @window: an #Stage @x: (out) (allow-none): A pointer for the x-coordinate @y: (out) (allow-none): A pointer for the y-coordinate

Retrieves the absolute position of the window on the screen.

pub fn get_window_rotation(&self) -> WindowRotation[src]

get_window_rotation: @window: A #Stage

Retrieve the rotation of the window.

Returns: An #StageRotation

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

get_window_size: @window: A #Stage @width: (out) (allow-none): A #gint pointer for the window’s width @height: (out) (allow-none): A #gint pointer for the window’s height

Retrieves the size of the display area of the window, taking into account any window border. This includes the area occupied by the window’s toolbar, if it’s enabled.

pub fn hide(&self) -> &O[src]

hide: @window: A #Stage

Hide the window

pub fn present(&self)[src]

present: @window: A #Stage

Present the window. The actual behaviour is specific to the window system.

pub fn set_child<P>(&self, actor: &P) where
    P: Is<Actor>, 
[src]

set_child: @window: A #Stage @actor: A #Actor

Adds @actor to the window and sets it as the primary child. When the stage managed in the window changes size, the child will be resized to match it.

pub fn set_fullscreen(&self, fullscreen: bool) -> &O[src]

set_fullscreen: @window: A #Stage @fullscreen: %true to request fullscreen mode, %false to disable

Set the window to be in fullscreen mode or windowed mode.

Setting fullscreen mode doesn’t necessarily mean the window is actually fullscreen. Setting this property is only a request to the underlying window system.

pub fn set_has_toolbar(&self, toolbar: bool)[src]

set_has_toolbar: @window: A #Stage @toolbar: %true if the toolbar should be displayed

Sets whether the window has a toolbar or not. If the window has a toolbar, client-side window decorations will be enabled.

pub fn set_icon_name(&self, icon_name: Option<String>)[src]

set_icon_name: @window: A #Stage @icon_name: (allow-none): An icon name, or %None

Set an icon-name to use for the window icon. The icon will be looked up from the default theme.

pub fn set_small_screen(&self, small_screen: bool)[src]

get_small_screen: @window: A #Stage

Determines if the window is in small-screen mode. See set_small_screen().

Returns: %true if the window is in small-screen mode, otherwise %false

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

set_title: @window: A #Stage @title: A string to use for the window title name

Sets the title used for the window, the results of which are window-system specific.

pub fn set_toolbar<P>(&self, toolbar: &P) where
    P: Is<Toolbar>, 
[src]

set_toolbar: @window: (allow-none): A #Stage

Sets the toolbar associated with the window.

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

set_window_position: @window: A #Stage @x: An x-coordinate @y: A y-coordinate

Sets the absolute position of the window on the screen.

pub fn set_window_rotation(&self, rotation: WindowRotation)[src]

set_window_rotation: @window: A #Stage @rotation: The #StageRotation

Set the rotation of the window.

pub fn set_window_size(&self, width: i32, height: i32) -> &O[src]

set_window_size: @window: A #Stage @width: A width, in pixels @height: A height, in pixels

Sets the size of the window, taking into account any window border. This corresponds to the window’s available area for its child, minus the area occupied by the window’s toolbar, if it’s enabled.

Setting the window size may involve a request to the underlying windowing system, and may not immediately be reflected.

pub fn show(&self) -> &O[src]

show: @window: A #Stage

Show the window. Should called after size of stage is set, for proper reallocation is happen.