gtkmm 4.19.0
|
Information for presenting toplevels. More...
#include <gdkmm/toplevellayout.h>
Public Member Functions | |
void | reference () const |
Increment the reference count for this object. | |
void | unreference () const |
Decrement the reference count for this object. | |
GdkToplevelLayout * | gobj () |
Provides access to the underlying C instance. | |
const GdkToplevelLayout * | gobj () const |
Provides access to the underlying C instance. | |
GdkToplevelLayout * | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
ToplevelLayout ()=delete | |
ToplevelLayout (const ToplevelLayout &)=delete | |
ToplevelLayout & | operator= (const ToplevelLayout &)=delete |
Glib::RefPtr< ToplevelLayout > | copy () const |
Create a new Gdk::ToplevelLayout and copy the contents of layout into it. | |
bool | equal (const Glib::RefPtr< const ToplevelLayout > &other) const |
Check whether layout and other has identical layout properties. | |
void | set_maximized (bool maximized=true) |
Sets whether the layout should cause the surface to be maximized when presented. | |
void | set_fullscreen (bool fullscreen=true, const Glib::RefPtr< Monitor > & monitor={}) |
Sets whether the layout should cause the surface to be fullscreen when presented. | |
bool | get_maximized (bool &maximized) const |
If the layout specifies whether to the toplevel should go maximized, the value pointed to by maximized is set to true if it should go maximized, or false, if it should go unmaximized. | |
bool | get_fullscreen (bool & fullscreen) const |
If the layout specifies whether to the toplevel should go fullscreen, the value pointed to by fullscreen is set to true if it should go fullscreen, or false, if it should go unfullscreen. | |
Glib::RefPtr< Monitor > | get_fullscreen_monitor () |
Returns the monitor that the layout is fullscreening the surface on. | |
Glib::RefPtr< const Monitor > | get_fullscreen_monitor () const |
Returns the monitor that the layout is fullscreening the surface on. | |
void | set_resizable (bool resizable=true) |
Sets whether the layout should allow the user to resize the surface after it has been presented. | |
bool | get_resizable () const |
Returns whether the layout should allow the user to resize the surface. | |
Static Public Member Functions | |
static Glib::RefPtr< ToplevelLayout > | create () |
Create a toplevel layout description. | |
Protected Member Functions | |
void | operator delete (void *, std::size_t) |
Related Symbols | |
(Note that these are not member symbols.) | |
Glib::RefPtr< Gdk::ToplevelLayout > | wrap (GdkToplevelLayout *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
Information for presenting toplevels.
Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).
The Gdk::ToplevelLayout class contains information that is necessary to do so, and is passed to Gdk::Toplevel::present().
|
delete |
|
delete |
Glib::RefPtr< ToplevelLayout > Gdk::ToplevelLayout::copy | ( | ) | const |
Create a new Gdk::ToplevelLayout
and copy the contents of layout into it.
|
static |
Create a toplevel layout description.
Used together with present() to describe how a toplevel surface should be placed and behave on-screen.
The size is in ”application pixels”, not ”device pixels” (see Gdk::Surface::get_scale()).
Gdk::ToplevelLayout
. bool Gdk::ToplevelLayout::equal | ( | const Glib::RefPtr< const ToplevelLayout > & | other | ) | const |
Check whether layout and other has identical layout properties.
other | Another toplevel layout. |
bool Gdk::ToplevelLayout::get_fullscreen | ( | bool & | fullscreen | ) | const |
If the layout specifies whether to the toplevel should go fullscreen, the value pointed to by fullscreen is set to true if it should go fullscreen, or false, if it should go unfullscreen.
fullscreen | Location to store whether the toplevel should be fullscreen. |
Glib::RefPtr< Monitor > Gdk::ToplevelLayout::get_fullscreen_monitor | ( | ) |
Returns the monitor that the layout is fullscreening the surface on.
Glib::RefPtr< const Monitor > Gdk::ToplevelLayout::get_fullscreen_monitor | ( | ) | const |
Returns the monitor that the layout is fullscreening the surface on.
bool Gdk::ToplevelLayout::get_maximized | ( | bool & | maximized | ) | const |
If the layout specifies whether to the toplevel should go maximized, the value pointed to by maximized is set to true if it should go maximized, or false, if it should go unmaximized.
maximized | Set to true if the toplevel should be maximized. |
bool Gdk::ToplevelLayout::get_resizable | ( | ) | const |
Returns whether the layout should allow the user to resize the surface.
GdkToplevelLayout * Gdk::ToplevelLayout::gobj | ( | ) |
Provides access to the underlying C instance.
const GdkToplevelLayout * Gdk::ToplevelLayout::gobj | ( | ) | const |
Provides access to the underlying C instance.
GdkToplevelLayout * Gdk::ToplevelLayout::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
delete |
void Gdk::ToplevelLayout::reference | ( | ) | const |
Increment the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
void Gdk::ToplevelLayout::set_fullscreen | ( | bool | fullscreen = true , |
const Glib::RefPtr< Monitor > & | monitor = {} |
||
) |
Sets whether the layout should cause the surface to be fullscreen when presented.
fullscreen | True to fullscreen the surface. |
monitor | The monitor to fullscreen on. |
Sets whether the layout should cause the surface to be maximized when presented.
maximized | True to maximize. |
Sets whether the layout should allow the user to resize the surface after it has been presented.
resizable | True to allow resizing. |
void Gdk::ToplevelLayout::unreference | ( | ) | const |
Decrement the reference count for this object.
You should never need to do this manually - use the object via a RefPtr instead.
|
related |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |