Trait components::WindowExt [−][src]
pub trait WindowExt: 'static {}Show methods
fn get_child(&self) -> Option<Actor>; fn get_clutter_stage(&self) -> Option<&Stage>; fn get_fullscreen(&self) -> bool; fn get_has_toolbar(&self) -> bool; fn get_icon_name(&self) -> Option<String>; fn get_resisable(&self) -> bool; fn get_small_screen(&self) -> bool; fn get_title(&self) -> Option<String>; fn get_toolbar(&self) -> Option<Toolbar>; fn get_window_position(&self) -> (i32, i32); fn get_window_rotation(&self) -> WindowRotation; fn get_window_size(&self) -> (i32, i32); fn hide(&self) -> &Self; fn present(&self); fn set_background_color(&self, color: Option<Color>); fn set_child<P: Is<Actor>>(&self, actor: &P); fn set_fullscreen(&self, fullscreen: bool) -> &Self; fn set_has_toolbar(&self, toolbar: bool); fn set_icon_from_cogl_texture(&self, texture: Handle); fn set_icon_name(&self, icon_name: Option<String>); fn set_resizable(&self, resizable: bool) -> &Self; fn set_small_screen(&self, small_screen: bool); fn set_title(&self, title: &str) -> &Self; fn set_toolbar<P: Is<Toolbar>>(&self, toolbar: &P); fn set_window_position(&self, x: i32, y: i32); fn set_window_rotation(&self, rotation: WindowRotation); fn set_window_size(&self, width: i32, height: i32) -> &Self; fn show(&self) -> &Self; fn get_property_icon_cogl_texture(&self) -> Option<String>; fn set_property_icon_cogl_texture(&self, icon_cogl_texture: Option<&str>); fn get_property_window_rotation_angle(&self) -> f32; fn get_property_window_rotation_timeline(&self) -> Option<Timeline>; fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_fullscreen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_has_toolbar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_icon_cogl_texture_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_small_screen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_toolbar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_window_rotation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_window_rotation_angle_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_window_rotation_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
Required methods
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
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
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
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
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
fn get_resisable(&self) -> bool
[src]
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
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
fn get_toolbar(&self) -> Option<Toolbar>
[src]
get_toolbar: @window: A #Stage
Retrieves the toolbar associated with the window.
Returns: (transfer none): A #Toolbar
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.
fn get_window_rotation(&self) -> WindowRotation
[src]
get_window_rotation: @window: A #Stage
Retrieve the rotation of the window.
Returns: An #StageRotation
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.
fn hide(&self) -> &Self
[src]
hide: @window: A #Stage
Hide the window
fn present(&self)
[src]
present: @window: A #Stage
Present the window. The actual behaviour is specific to the window system.
fn set_background_color(&self, color: Option<Color>)
[src]
fn set_child<P: Is<Actor>>(&self, actor: &P)
[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.
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.
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.
fn set_icon_from_cogl_texture(&self, texture: Handle)
[src]
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.
fn set_resizable(&self, resizable: bool) -> &Self
[src]
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
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.
fn set_toolbar<P: Is<Toolbar>>(&self, toolbar: &P)
[src]
set_toolbar: @window: (allow-none): A #Stage
Sets the toolbar associated with the window.
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.
fn set_window_rotation(&self, rotation: WindowRotation)
[src]
set_window_rotation: @window: A #Stage @rotation: The #StageRotation
Set the rotation of the window.
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.
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.
fn get_property_icon_cogl_texture(&self) -> Option<String>
[src]
fn set_property_icon_cogl_texture(&self, icon_cogl_texture: Option<&str>)
[src]
fn get_property_window_rotation_angle(&self) -> f32
[src]
fn get_property_window_rotation_timeline(&self) -> Option<Timeline>
[src]
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
The ::activate signal is emitted when the stage receives key focus from the underlying window system.
fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_fullscreen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_has_toolbar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icon_cogl_texture_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_small_screen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_toolbar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_window_rotation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_window_rotation_angle_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_window_rotation_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<Window>> WindowExt for O
[src]
impl<O: Is<Window>> WindowExt for O
[src]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
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
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
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
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
fn get_resisable(&self) -> bool
[src]
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
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
fn get_toolbar(&self) -> Option<Toolbar>
[src]
get_toolbar: @window: A #Stage
Retrieves the toolbar associated with the window.
Returns: (transfer none): A #Toolbar
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.
fn get_window_rotation(&self) -> WindowRotation
[src]
get_window_rotation: @window: A #Stage
Retrieve the rotation of the window.
Returns: An #StageRotation
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.
fn hide(&self) -> &Self
[src]
hide: @window: A #Stage
Hide the window
fn present(&self)
[src]
present: @window: A #Stage
Present the window. The actual behaviour is specific to the window system.
fn set_background_color(&self, value: Option<Color>)
[src]
fn set_child<P: Is<Actor>>(&self, actor: &P)
[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.
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.
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.
fn set_icon_from_cogl_texture(&self, texture: Handle)
[src]
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.
fn set_resizable(&self, resizable: bool) -> &Self
[src]
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
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.
fn set_toolbar<P: Is<Toolbar>>(&self, toolbar: &P)
[src]
set_toolbar: @window: (allow-none): A #Stage
Sets the toolbar associated with the window.
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.
fn set_window_rotation(&self, rotation: WindowRotation)
[src]
set_window_rotation: @window: A #Stage @rotation: The #StageRotation
Set the rotation of the window.
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.
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.
fn get_property_icon_cogl_texture(&self) -> Option<String>
[src]
fn set_property_icon_cogl_texture(&self, icon_cogl_texture: Option<&str>)
[src]
fn get_property_window_rotation_angle(&self) -> f32
[src]
fn get_property_window_rotation_timeline(&self) -> Option<Timeline>
[src]
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_fullscreen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_has_toolbar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icon_cogl_texture_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_small_screen_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_toolbar_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_window_rotation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_window_rotation_angle_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_window_rotation_timeline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId