Struct libhandy::ApplicationWindow
source · pub struct ApplicationWindow { /* private fields */ }
Expand description
A freeform application window.
ApplicationWindow
is a [gtk::ApplicationWindow
][crate::gtk::ApplicationWindow] subclass providing
the same features as Window
.
See Window
for details.
Using Gtk::Application::set_app_menu()
and
Gtk::Application::set_menubar()
is not supported and may result in
visual glitches.
Implements
[trait@gtk::prelude::ApplicationWindowExt
], [trait@gtk::prelude::GtkWindowExt
], [trait@gtk::prelude::BinExt
], [trait@gtk::prelude::ContainerExt
], [trait@gtk::prelude::WidgetExt
], [trait@glib::ObjectExt
], [trait@gtk::prelude::BuildableExt
], [trait@gio::prelude::ActionGroupExt
], [trait@gio::prelude::ActionMapExt
]
Implementations§
source§impl ApplicationWindow
impl ApplicationWindow
pub const NONE: Option<&'static ApplicationWindow> = None
sourcepub fn new() -> ApplicationWindow
pub fn new() -> ApplicationWindow
sourcepub fn builder() -> ApplicationWindowBuilder
pub fn builder() -> ApplicationWindowBuilder
Creates a new builder-pattern struct instance to construct ApplicationWindow
objects.
This method returns an instance of ApplicationWindowBuilder
which can be used to create ApplicationWindow
objects.
Trait Implementations§
source§impl Clone for ApplicationWindow
impl Clone for ApplicationWindow
source§impl Debug for ApplicationWindow
impl Debug for ApplicationWindow
source§impl Default for ApplicationWindow
impl Default 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<T: HdyApplicationWindowImpl> IsSubclassable<T> for ApplicationWindow
impl<T: HdyApplicationWindowImpl> IsSubclassable<T> for ApplicationWindow
§fn class_init(class: &mut Class<Self>)
fn class_init(class: &mut Class<Self>)
§fn instance_init(instance: &mut InitializingObject<T>)
fn instance_init(instance: &mut InitializingObject<T>)
source§impl Ord for ApplicationWindow
impl Ord for ApplicationWindow
source§impl ParentClassIs for ApplicationWindow
impl ParentClassIs for 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<ActionMap> 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§
§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
§impl<O> ActionMapExt for Owhere
O: IsA<ActionMap>,
impl<O> ActionMapExt for Owhere
O: IsA<ActionMap>,
fn add_action(&self, action: &impl IsA<Action>)
fn lookup_action(&self, action_name: &str) -> Option<Action>
fn remove_action(&self, action_name: &str)
§impl<O> ActionMapExtManual for Owhere
O: IsA<ActionMap>,
impl<O> ActionMapExtManual for Owhere
O: IsA<ActionMap>,
fn add_action_entries( &self, entries: impl IntoIterator<Item = ActionEntry<Self>> )
§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
§impl<O> BuildableExt for Owhere
O: IsA<Buildable>,
impl<O> BuildableExt for Owhere
O: IsA<Buildable>,
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 )
§impl<O> BuildableExtManual for Owhere
O: IsA<Buildable>,
impl<O> BuildableExtManual for Owhere
O: IsA<Buildable>,
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read more§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read more§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 more§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 more§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 more§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 more§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read more§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read more§impl<O> ContainerExt for Owhere
O: IsA<Container>,
impl<O> ContainerExt for Owhere
O: IsA<Container>,
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)where
P: FnMut(&Widget),
fn foreach<P>(&self, callback: P)where
P: FnMut(&Widget),
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)
§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>)
§fn unset_focus_chain(&self)
fn unset_focus_chain(&self)
fn set_child<P>(&self, child: Option<&P>)where
P: IsA<Widget>,
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
§impl<O> ContainerExtManual for Owhere
O: IsA<Container>,
impl<O> ContainerExtManual for Owhere
O: IsA<Container>,
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 )
§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>,
unsafe fn from_glib_none_num_as_vec(ptr: *const GList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(_: *const GList, _: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(_: *const GList, _: usize) -> Vec<T>
§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>,
unsafe fn from_glib_none_num_as_vec(ptr: *const GPtrArray, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec( _: *const GPtrArray, _: usize ) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(_: *const GPtrArray, _: usize) -> Vec<T>
§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>,
unsafe fn from_glib_none_num_as_vec(ptr: *const GSList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(_: *const GSList, _: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(_: *const GSList, _: usize) -> Vec<T>
§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>,
unsafe fn from_glib_none_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>
§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>,
unsafe fn from_glib_none_num_as_vec(ptr: *mut GPtrArray, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec( ptr: *mut GPtrArray, num: usize ) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GPtrArray, num: usize) -> Vec<T>
§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>,
unsafe fn from_glib_none_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>
§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>
§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>
§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>
§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>
§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>
§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>
§impl<O> GtkWindowExt for Owhere
O: IsA<Window>,
impl<O> GtkWindowExt for Owhere
O: IsA<Window>,
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
§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
§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>)where
T: ObjectSubclass,
<U as ParentClassIs>::Parent: IsSubclassable<T>,
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where
T: ObjectSubclass,
<U as ParentClassIs>::Parent: IsSubclassable<T>,
§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
§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
.§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
] of the object. Read more§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read more§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 more§fn set_property(&self, property_name: &str, value: impl Into<Value>)
fn set_property(&self, property_name: &str, value: impl Into<Value>)
§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
§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 more§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read more§fn has_property(&self, property_name: &str, type_: Option<Type>) -> bool
fn has_property(&self, property_name: &str, type_: Option<Type>) -> bool
§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read more§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.§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
§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 more§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 more§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 more§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 more§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 more§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 more§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
§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 more§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 more§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 more§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 more§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 more§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 more§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 more§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 more§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.§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,
§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.§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,
§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>
§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,
§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>
§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,
§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>
§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
§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 more§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 more§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