Trait ux::WindowExt[][src]

pub trait WindowExt: 'static {
Show methods pub fn get_child(&self) -> Option<Actor>;
pub fn get_clutter_stage(&self) -> Option<&Stage>;
pub fn get_fullscreen(&self) -> bool;
pub fn get_has_toolbar(&self) -> bool;
pub fn get_icon_name(&self) -> Option<String>;
pub fn get_resisable(&self) -> bool;
pub fn get_small_screen(&self) -> bool;
pub fn get_title(&self) -> Option<String>;
pub fn get_toolbar(&self) -> Option<Toolbar>;
pub fn get_window_position(&self) -> (i32, i32);
pub fn get_window_rotation(&self) -> WindowRotation;
pub fn get_window_size(&self) -> (i32, i32);
pub fn hide(&self) -> &Self;
pub fn present(&self);
pub fn set_background_color(&self, color: Option<Color<f64>>);
pub fn set_child<P>(&self, actor: &P)
    where
        P: Is<Actor>
;
pub fn set_fullscreen(&self, fullscreen: bool) -> &Self;
pub fn set_has_toolbar(&self, toolbar: bool);
pub fn set_icon_from_cogl_texture(&self, texture: Handle);
pub fn set_icon_name(&self, icon_name: Option<String>);
pub fn set_resizable(&self, resizable: bool) -> &Self;
pub fn set_small_screen(&self, small_screen: bool);
pub fn set_title(&self, title: &str) -> &Self;
pub fn set_toolbar<P>(&self, toolbar: &P)
    where
        P: Is<Toolbar>
;
pub fn set_window_position(&self, x: i32, y: i32);
pub fn set_window_rotation(&self, rotation: WindowRotation);
pub fn set_window_size(&self, width: i32, height: i32) -> &Self;
pub fn show(&self) -> &Self;
pub fn get_property_icon_cogl_texture(&self) -> Option<String>;
pub fn set_property_icon_cogl_texture(
        &self,
        icon_cogl_texture: Option<&str>
    );
pub fn get_property_window_rotation_angle(&self) -> f32;
pub fn get_property_window_rotation_timeline(&self) -> Option<Timeline>;
pub fn connect_activate<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_destroy<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_child_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_fullscreen_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_has_toolbar_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_icon_cogl_texture_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_icon_name_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_small_screen_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_title_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_toolbar_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_window_rotation_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_window_rotation_angle_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_window_rotation_timeline_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
}

Required methods

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

get_child: @window: A #Window

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_resisable(&self) -> bool[src]

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) -> &Self[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_background_color(&self, color: Option<Color<f64>>)[src]

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) -> &Self[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_from_cogl_texture(&self, texture: Handle)[src]

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_resizable(&self, resizable: bool) -> &Self[src]

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) -> &Self[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) -> &Self[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) -> &Self[src]

show: @window: A #Stage

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

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

pub fn set_property_icon_cogl_texture(&self, icon_cogl_texture: Option<&str>)[src]

pub fn get_property_window_rotation_angle(&self) -> f32[src]

pub fn get_property_window_rotation_timeline(&self) -> Option<Timeline>[src]

pub fn connect_activate<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

The ::activate signal is emitted when the stage receives key focus from the underlying window system.

pub fn connect_destroy<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_child_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_fullscreen_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_has_toolbar_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_icon_cogl_texture_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_icon_name_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_small_screen_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_title_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_toolbar_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_window_rotation_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_window_rotation_angle_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_window_rotation_timeline_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

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.

Loading content...