Struct dazzle::ApplicationWindow
source · pub struct ApplicationWindow { /* private fields */ }
Expand description
Properties
fullscreen
The “fullscreen” property denotes if the window is in the fullscreen
state. The titlebar of the ApplicationWindow
contains a revealer
which will be repurposed into a floating bar while the window is in
the fullscreen mode.
Set this property to false
to unfullscreen.
Readable | Writeable
titlebar-animation
Readable
ApplicationWindow
show-menubar
If this property is true
, the window will display a menubar
that includes the app menu and menubar, unless these are
shown by the desktop shell. See [ApplicationExtManual::set_app_menu()
][crate::gtk::prelude::ApplicationExtManual::set_app_menu()]
and [ApplicationExtManual::set_menubar()
][crate::gtk::prelude::ApplicationExtManual::set_menubar()].
If false
, the window will not display a menubar, regardless
of whether the desktop shell is showing the menus or not.
Readable | Writeable | Construct
Window
accept-focus
Whether the window should receive the input focus.
Readable | Writeable
application
The [gtk::Application
][crate::gtk::Application] associated with the window.
The application will be kept alive for at least as long as it
has any windows associated with it (see g_application_hold()
for a way to keep it alive without windows).
Normally, the connection between the application and the window
will remain until the window is destroyed, but you can explicitly
remove it by setting the :application property to None
.
Readable | Writeable
attached-to
The widget to which this window is attached.
See [WindowExtManual::set_attached_to()
][crate::gtk::prelude::WindowExtManual::set_attached_to()].
Examples of places where specifying this relation is useful are
for instance a GtkMenu
created by a GtkComboBox
, a completion
popup window created by [gtk::Entry
][crate::gtk::Entry] or a typeahead search entry
created by [gtk::TreeView
][crate::gtk::TreeView].
Readable | Writeable | Construct
decorated
Whether the window should be decorated by the window manager.
Readable | Writeable
default-height
Readable | Writeable
default-width
Readable | Writeable
deletable
Whether the window frame should have a close button.
Readable | Writeable
destroy-with-parent
Readable | Writeable
focus-on-map
Whether the window should receive the input focus when mapped.
Readable | Writeable
focus-visible
Whether ‘focus rectangles’ are currently visible in this window.
This property is maintained by GTK+ based on user input and should not be set by applications.
Readable | Writeable
gravity
The window gravity of the window. See [WindowExtManual::move_()
][crate::gtk::prelude::WindowExtManual::move_()] and GdkGravity
for
more details about window gravity.
Readable | Writeable
has-resize-grip
Whether the window has a corner resize grip.
Note that the resize grip is only shown if the window is
actually resizable and not maximized. Use
[resize-grip-visible
][struct@crate::gtk::Window#resize-grip-visible] to find out if the resize
grip is currently shown.
Readable | Writeable
has-toplevel-focus
Readable
hide-titlebar-when-maximized
Whether the titlebar should be hidden during maximization.
Readable | Writeable
icon
Readable | Writeable
icon-name
The :icon-name property specifies the name of the themed icon to
use as the window icon. See GtkIconTheme
for more details.
Readable | Writeable
is-active
Readable
is-maximized
Readable
mnemonics-visible
Whether mnemonics are currently visible in this window.
This property is maintained by GTK+ based on user input, and should not be set by applications.
Readable | Writeable
modal
Readable | Writeable
resizable
Readable | Writeable
resize-grip-visible
Whether a corner resize grip is currently shown.
Readable
role
Readable | Writeable
screen
Readable | Writeable
skip-pager-hint
Readable | Writeable
skip-taskbar-hint
Readable | Writeable
startup-id
The :startup-id is a write-only property for setting window’s
startup notification identifier. See [WindowExtManual::set_startup_id()
][crate::gtk::prelude::WindowExtManual::set_startup_id()]
for more details.
Writeable
title
Readable | Writeable
transient-for
The transient parent of the window. See [WindowExtManual::set_transient_for()
][crate::gtk::prelude::WindowExtManual::set_transient_for()] for
more details about transient windows.
Readable | Writeable | Construct
type
Readable | Writeable | Construct Only
type-hint
Readable | Writeable
urgency-hint
Readable | Writeable
window-position
Readable | Writeable
Widget
app-paintable
Readable | Writeable
can-default
Readable | Writeable
can-focus
Readable | Writeable
composite-child
Readable
double-buffered
Whether the widget is double buffered.
Readable | Writeable
events
Readable | Writeable
expand
Whether to expand in both directions. Setting this sets both [hexpand
][struct@crate::gtk::Widget#hexpand] and [vexpand
][struct@crate::gtk::Widget#vexpand]
Readable | Writeable
focus-on-click
Whether the widget should grab focus when it is clicked with the mouse.
This property is only relevant for widgets that can take focus.
Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox) implemented this property individually.
Readable | Writeable
halign
How to distribute horizontal space if widget gets extra space, see GtkAlign
Readable | Writeable
has-default
Readable | Writeable
has-focus
Readable | Writeable
has-tooltip
Enables or disables the emission of [query-tooltip
][struct@crate::gtk::Widget#query-tooltip] on widget
.
A value of true
indicates that widget
can have a tooltip, in this case
the widget will be queried using [query-tooltip
][struct@crate::gtk::Widget#query-tooltip] to determine
whether it will provide a tooltip or not.
Note that setting this property to true
for the first time will change
the event masks of the GdkWindows of this widget to include leave-notify
and motion-notify events. This cannot and will not be undone when the
property is set to false
again.
Readable | Writeable
height-request
Readable | Writeable
hexpand
Whether to expand horizontally. See [WidgetExtManual::set_hexpand()
][crate::gtk::prelude::WidgetExtManual::set_hexpand()].
Readable | Writeable
hexpand-set
Whether to use the [hexpand
][struct@crate::gtk::Widget#hexpand] property. See [WidgetExtManual::is_hexpand_set()
][crate::gtk::prelude::WidgetExtManual::is_hexpand_set()].
Readable | Writeable
is-focus
Readable | Writeable
margin
Sets all four sides’ margin at once. If read, returns max margin on any side.
Readable | Writeable
margin-bottom
Margin on bottom side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-end
Margin on end of widget, horizontally. This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-left
Margin on left side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-right
Margin on right side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-start
Margin on start of widget, horizontally. This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
margin-top
Margin on top side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
[WidgetExtManual::set_size_request()
][crate::gtk::prelude::WidgetExtManual::set_size_request()] for example.
Readable | Writeable
name
Readable | Writeable
no-show-all
Readable | Writeable
opacity
The requested opacity of the widget. See [WidgetExtManual::set_opacity()
][crate::gtk::prelude::WidgetExtManual::set_opacity()] for
more details about window opacity.
Before 3.8 this was only available in GtkWindow
Readable | Writeable
parent
Readable | Writeable
receives-default
Readable | Writeable
scale-factor
The scale factor of the widget. See [WidgetExtManual::scale_factor()
][crate::gtk::prelude::WidgetExtManual::scale_factor()] for
more details about widget scaling.
Readable
sensitive
Readable | Writeable
style
The style of the widget, which contains information about how it will look (colors, etc).
Readable | Writeable
tooltip-markup
Sets the text of tooltip to be the given string, which is marked up
with the [Pango text markup language][PangoMarkupFormat].
Also see gtk_tooltip_set_markup()
.
This is a convenience property which will take care of getting the
tooltip shown if the given string is not None
: [has-tooltip
][struct@crate::gtk::Widget#has-tooltip]
will automatically be set to true
and there will be taken care of
[query-tooltip
][struct@crate::gtk::Widget#query-tooltip] in the default signal handler.
Note that if both [tooltip-text
][struct@crate::gtk::Widget#tooltip-text] and [tooltip-markup
][struct@crate::gtk::Widget#tooltip-markup]
are set, the last one wins.
Readable | Writeable
tooltip-text
Sets the text of tooltip to be the given string.
Also see gtk_tooltip_set_text()
.
This is a convenience property which will take care of getting the
tooltip shown if the given string is not None
: [has-tooltip
][struct@crate::gtk::Widget#has-tooltip]
will automatically be set to true
and there will be taken care of
[query-tooltip
][struct@crate::gtk::Widget#query-tooltip] in the default signal handler.
Note that if both [tooltip-text
][struct@crate::gtk::Widget#tooltip-text] and [tooltip-markup
][struct@crate::gtk::Widget#tooltip-markup]
are set, the last one wins.
Readable | Writeable
valign
How to distribute vertical space if widget gets extra space, see GtkAlign
Readable | Writeable
vexpand
Whether to expand vertically. See [WidgetExtManual::set_vexpand()
][crate::gtk::prelude::WidgetExtManual::set_vexpand()].
Readable | Writeable
vexpand-set
Whether to use the [vexpand
][struct@crate::gtk::Widget#vexpand] property. See [WidgetExtManual::is_vexpand_set()
][crate::gtk::prelude::WidgetExtManual::is_vexpand_set()].
Readable | Writeable
visible
Readable | Writeable
width-request
Readable | Writeable
window
The widget’s window if it is realized, None
otherwise.
Readable
Implements
[ApplicationWindowExt
][trait@crate::prelude::ApplicationWindowExt], gtk::prelude::ApplicationWindowExt
, [trait@gtk::prelude::WindowExt
], gtk::prelude::BinExt
, gtk::prelude::ContainerExt
, gtk::prelude::WidgetExt
, glib::ObjectExt
, gtk::prelude::BuildableExt
, gio::prelude::ActionGroupExt
Implementations§
source§impl ApplicationWindow
impl ApplicationWindow
pub const NONE: Option<&'static ApplicationWindow> = None
Trait Implementations§
source§impl Clone for ApplicationWindow
impl Clone for ApplicationWindow
source§impl Debug for ApplicationWindow
impl Debug for ApplicationWindow
source§impl Display for ApplicationWindow
impl Display for ApplicationWindow
source§impl HasParamSpec for ApplicationWindow
impl HasParamSpec for ApplicationWindow
type ParamSpec = ParamSpecObject
§type SetValue = ApplicationWindow
type SetValue = ApplicationWindow
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, ApplicationWindow>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for ApplicationWindow
impl Hash for ApplicationWindow
source§impl Ord for ApplicationWindow
impl Ord for ApplicationWindow
source§impl ParentClassIs for ApplicationWindow
impl ParentClassIs for ApplicationWindow
type Parent = ApplicationWindow
source§impl<OT: ObjectType> PartialEq<OT> for ApplicationWindow
impl<OT: ObjectType> PartialEq<OT> for ApplicationWindow
source§impl<OT: ObjectType> PartialOrd<OT> for ApplicationWindow
impl<OT: ObjectType> PartialOrd<OT> for ApplicationWindow
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for ApplicationWindow
impl StaticType for ApplicationWindow
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for ApplicationWindow
impl IsA<ActionGroup> for ApplicationWindow
impl IsA<ApplicationWindow> for ApplicationWindow
impl IsA<Bin> for ApplicationWindow
impl IsA<Buildable> for ApplicationWindow
impl IsA<Container> for ApplicationWindow
impl IsA<Widget> for ApplicationWindow
impl IsA<Window> for ApplicationWindow
Auto Trait Implementations§
impl RefUnwindSafe for ApplicationWindow
impl !Send for ApplicationWindow
impl !Sync for ApplicationWindow
impl Unpin for ApplicationWindow
impl UnwindSafe for ApplicationWindow
Blanket Implementations§
source§impl<O> ActionGroupExt for Owhere
O: IsA<ActionGroup>,
impl<O> ActionGroupExt for Owhere
O: IsA<ActionGroup>,
fn action_added(&self, action_name: &str)
fn action_enabled_changed(&self, action_name: &str, enabled: bool)
fn action_removed(&self, action_name: &str)
fn action_state_changed(&self, action_name: &str, state: &Variant)
fn activate_action(&self, action_name: &str, parameter: Option<&Variant>)
fn change_action_state(&self, action_name: &str, value: &Variant)
fn is_action_enabled(&self, action_name: &str) -> bool
fn action_parameter_type(&self, action_name: &str) -> Option<VariantType>
fn action_state(&self, action_name: &str) -> Option<Variant>
fn action_state_hint(&self, action_name: &str) -> Option<Variant>
fn action_state_type(&self, action_name: &str) -> Option<VariantType>
fn has_action(&self, action_name: &str) -> bool
fn list_actions(&self) -> Vec<GString>
fn connect_action_added<F>(&self, detail: Option<&str>, f: F) -> SignalHandlerId
fn connect_action_enabled_changed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId
fn connect_action_removed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId
fn connect_action_state_changed<F>( &self, detail: Option<&str>, f: F ) -> SignalHandlerId
source§impl<O> ApplicationWindowExt for Owhere
O: IsA<ApplicationWindow>,
impl<O> ApplicationWindowExt for Owhere
O: IsA<ApplicationWindow>,
fn help_overlay(&self) -> Option<ShortcutsWindow>
fn id(&self) -> u32
fn set_help_overlay(&self, help_overlay: Option<&impl IsA<ShortcutsWindow>>)
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
source§impl<O> BuildableExt for O
impl<O> BuildableExt for O
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str> )
fn construct_child( &self, builder: &impl IsA<Builder>, name: &str ) -> Option<Object>
fn internal_child( &self, builder: &impl IsA<Builder>, childname: &str ) -> Option<Object>
fn parser_finished(&self, builder: &impl IsA<Builder>)
fn set_buildable_property( &self, builder: &impl IsA<Builder>, name: &str, value: &Value )
source§impl<O> BuildableExtManual for O
impl<O> BuildableExtManual for O
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<O> ContainerExt for O
impl<O> ContainerExt for O
fn add(&self, widget: &impl IsA<Widget>)
fn check_resize(&self)
fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
fn child_notify_by_pspec( &self, child: &impl IsA<Widget>, pspec: impl AsRef<ParamSpec> )
fn child_type(&self) -> Type
fn forall<P>(&self, callback: P)
fn foreach<P>(&self, callback: P)
fn border_width(&self) -> u32
fn children(&self) -> Vec<Widget>
fn focus_child(&self) -> Option<Widget>
fn focus_hadjustment(&self) -> Option<Adjustment>
fn focus_vadjustment(&self) -> Option<Adjustment>
fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
fn remove(&self, widget: &impl IsA<Widget>)
fn set_border_width(&self, border_width: u32)
source§fn set_focus_chain(&self, focusable_widgets: &[Widget])
fn set_focus_chain(&self, focusable_widgets: &[Widget])
fn set_focus_child(&self, child: Option<&impl IsA<Widget>>)
fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
source§fn unset_focus_chain(&self)
fn unset_focus_chain(&self)
fn set_child<P>(&self, child: Option<&P>)
fn resize_mode(&self) -> ResizeMode
fn set_resize_mode(&self, resize_mode: ResizeMode)
fn connect_add<F>(&self, f: F) -> SignalHandlerId
fn connect_check_resize<F>(&self, f: F) -> SignalHandlerId
fn connect_remove<F>(&self, f: F) -> SignalHandlerId
fn connect_set_focus_child<F>(&self, f: F) -> SignalHandlerId
fn connect_border_width_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_child_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_resize_mode_notify<F>(&self, f: F) -> SignalHandlerId
source§impl<O> ContainerExtManual for O
impl<O> ContainerExtManual for O
fn child_property_value( &self, child: &impl IsA<Widget>, property_name: &str ) -> Value
fn child_property<V>(&self, child: &impl IsA<Widget>, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn child_set_property( &self, child: &impl IsA<Widget>, property_name: &str, value: &dyn ToValue )
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<O> GtkWindowExt for O
impl<O> GtkWindowExt for O
fn activate_default(&self) -> bool
fn activate_focus(&self) -> bool
fn activate_key(&self, event: &EventKey) -> bool
fn add_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
fn add_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
fn begin_move_drag(&self, button: i32, root_x: i32, root_y: i32, timestamp: u32)
fn begin_resize_drag( &self, edge: WindowEdge, button: i32, root_x: i32, root_y: i32, timestamp: u32 )
fn close(&self)
fn deiconify(&self)
fn fullscreen(&self)
fn fullscreen_on_monitor(&self, screen: &Screen, monitor: i32)
fn accepts_focus(&self) -> bool
fn application(&self) -> Option<Application>
fn attached_to(&self) -> Option<Widget>
fn is_decorated(&self) -> bool
fn default_size(&self) -> (i32, i32)
fn default_widget(&self) -> Option<Widget>
fn is_deletable(&self) -> bool
fn must_destroy_with_parent(&self) -> bool
fn focused_widget(&self) -> Option<Widget>
fn gets_focus_on_map(&self) -> bool
fn gets_focus_visible(&self) -> bool
fn gravity(&self) -> Gravity
fn group(&self) -> Option<WindowGroup>
fn hides_titlebar_when_maximized(&self) -> bool
fn icon(&self) -> Option<Pixbuf>
fn icon_list(&self) -> Vec<Pixbuf>
fn icon_name(&self) -> Option<GString>
fn mnemonic_modifier(&self) -> ModifierType
fn is_mnemonics_visible(&self) -> bool
fn is_modal(&self) -> bool
fn position(&self) -> (i32, i32)
fn is_resizable(&self) -> bool
fn role(&self) -> Option<GString>
fn screen(&self) -> Option<Screen>
fn size(&self) -> (i32, i32)
fn skips_pager_hint(&self) -> bool
fn skips_taskbar_hint(&self) -> bool
fn title(&self) -> Option<GString>
fn titlebar(&self) -> Option<Widget>
fn transient_for(&self) -> Option<Window>
fn type_hint(&self) -> WindowTypeHint
fn is_urgency_hint(&self) -> bool
fn window_type(&self) -> WindowType
fn has_group(&self) -> bool
fn has_toplevel_focus(&self) -> bool
fn iconify(&self)
fn is_active(&self) -> bool
fn is_maximized(&self) -> bool
fn maximize(&self)
fn mnemonic_activate(&self, keyval: u32, modifier: ModifierType) -> bool
fn move_(&self, x: i32, y: i32)
fn present(&self)
fn present_with_time(&self, timestamp: u32)
fn propagate_key_event(&self, event: &EventKey) -> bool
fn remove_accel_group(&self, accel_group: &impl IsA<AccelGroup>)
fn remove_mnemonic(&self, keyval: u32, target: &impl IsA<Widget>)
fn resize(&self, width: i32, height: i32)
fn set_accept_focus(&self, setting: bool)
fn set_application(&self, application: Option<&impl IsA<Application>>)
fn set_attached_to(&self, attach_widget: Option<&impl IsA<Widget>>)
fn set_decorated(&self, setting: bool)
fn set_default(&self, default_widget: Option<&impl IsA<Widget>>)
fn set_default_size(&self, width: i32, height: i32)
fn set_deletable(&self, setting: bool)
fn set_destroy_with_parent(&self, setting: bool)
fn set_focus(&self, focus: Option<&impl IsA<Widget>>)
fn set_focus_on_map(&self, setting: bool)
fn set_focus_visible(&self, setting: bool)
fn set_geometry_hints( &self, geometry_widget: Option<&impl IsA<Widget>>, geometry: Option<&Geometry>, geom_mask: WindowHints )
fn set_gravity(&self, gravity: Gravity)
fn set_has_user_ref_count(&self, setting: bool)
fn set_hide_titlebar_when_maximized(&self, setting: bool)
fn set_icon(&self, icon: Option<&Pixbuf>)
fn set_icon_from_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>
fn set_icon_list(&self, list: &[Pixbuf])
fn set_icon_name(&self, name: Option<&str>)
fn set_keep_above(&self, setting: bool)
fn set_keep_below(&self, setting: bool)
fn set_mnemonic_modifier(&self, modifier: ModifierType)
fn set_mnemonics_visible(&self, setting: bool)
fn set_modal(&self, modal: bool)
fn set_position(&self, position: WindowPosition)
fn set_resizable(&self, resizable: bool)
fn set_role(&self, role: &str)
fn set_screen(&self, screen: &Screen)
fn set_skip_pager_hint(&self, setting: bool)
fn set_skip_taskbar_hint(&self, setting: bool)
fn set_startup_id(&self, startup_id: &str)
fn set_title(&self, title: &str)
fn set_titlebar(&self, titlebar: Option<&impl IsA<Widget>>)
fn set_transient_for(&self, parent: Option<&impl IsA<Window>>)
fn set_type_hint(&self, hint: WindowTypeHint)
fn set_urgency_hint(&self, setting: bool)
fn stick(&self)
fn unfullscreen(&self)
fn unmaximize(&self)
fn unstick(&self)
fn default_height(&self) -> i32
fn set_default_height(&self, default_height: i32)
fn default_width(&self) -> i32
fn set_default_width(&self, default_width: i32)
fn type_(&self) -> WindowType
fn window_position(&self) -> WindowPosition
fn set_window_position(&self, window_position: WindowPosition)
fn connect_activate_default<F>(&self, f: F) -> SignalHandlerId
fn emit_activate_default(&self)
fn connect_activate_focus<F>(&self, f: F) -> SignalHandlerId
fn emit_activate_focus(&self)
fn connect_enable_debugging<F>(&self, f: F) -> SignalHandlerId
fn emit_enable_debugging(&self, toggle: bool) -> bool
fn connect_keys_changed<F>(&self, f: F) -> SignalHandlerId
fn connect_set_focus<F>(&self, f: F) -> SignalHandlerId
fn connect_accept_focus_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_application_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_attached_to_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_decorated_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_default_height_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_default_width_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_deletable_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_destroy_with_parent_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_focus_on_map_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_focus_visible_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_gravity_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_has_toplevel_focus_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_hide_titlebar_when_maximized_notify<F>( &self, f: F ) -> SignalHandlerId
fn connect_icon_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_icon_name_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_is_active_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_is_maximized_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_mnemonics_visible_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_modal_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_resizable_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_role_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_screen_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_skip_pager_hint_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_skip_taskbar_hint_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_startup_id_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_title_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_transient_for_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_type_hint_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_urgency_hint_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_window_position_notify<F>(&self, f: F) -> SignalHandlerId
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value] ) -> Option<Value>
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<Value>
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<Value>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerId
notify
signal of the object. Read more