Struct ux::Window [−][src]
pub struct Window { pub stage: Stage, // some fields omitted }
Fields
stage: Stage
Implementations
impl Window
[src]
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
Auto Trait Implementations
impl !RefUnwindSafe for Window
impl !RefUnwindSafe for Window
impl UnwindSafe for Window
impl UnwindSafe for Window
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<O> WindowExt for O where
O: Is<Window>,
[src]
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_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) -> &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_background_color(&self, value: Option<Color<f64>>)
[src]
pub fn set_child<P>(&self, actor: &P) where
P: Is<Actor>,
[src]
P: Is<Actor>,
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.
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) -> &O
[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) -> &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]
P: Is<Toolbar>,
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.
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.
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(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_destroy<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_child_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_fullscreen_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_has_toolbar_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_icon_cogl_texture_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_icon_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_small_screen_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_title_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_toolbar_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_window_rotation_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_window_rotation_angle_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_window_rotation_timeline_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),