Interface for widgets having surfaces.
More...
#include <gtkmm/native.h>
|
| Native () |
| You should derive from this class to use it.
|
|
Interface for widgets having surfaces.
Gtk::Native is the interface implemented by all widgets that can provide a Gdk::Surface for widgets to render on.
The obvious example of a Gtk::Native is Gtk::Window.
- See also
- Gtk::Root, Gtk::Window
- Since gtkmm 3.96:
◆ Native() [1/2]
You should derive from this class to use it.
◆ Native() [2/2]
Gtk::Native::Native |
( |
Native && |
src | ) |
|
|
noexcept |
◆ ~Native()
◆ add_interface()
static void Gtk::Native::add_interface |
( |
GType |
gtype_implementer | ) |
|
|
static |
◆ get_for_surface()
Finds the Gtk::Native
associated with the surface.
- Parameters
-
- Returns
- The
Gtk::Native
that is associated with surface.
◆ get_surface() [1/2]
Returns the surface of this Gtk::Native
.
- Returns
- The surface of self.
◆ get_surface() [2/2]
Returns the surface of this Gtk::Native
.
- Returns
- The surface of self.
◆ get_surface_transform()
Retrieves the surface transform of self.
This is the translation from self's surface coordinates into self's widget coordinates.
- Parameters
-
x | Return location for the x coordinate. |
y | Return location for the y coordinate. |
◆ get_type()
static GType Gtk::Native::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
◆ gobj() [1/2]
Provides access to the underlying C GObject.
◆ gobj() [2/2]
Provides access to the underlying C GObject.
◆ operator=()
◆ realize()
void Gtk::Native::realize |
( |
| ) |
|
Realizes a Gtk::Native
.
This should only be used by subclasses.
◆ unrealize()
void Gtk::Native::unrealize |
( |
| ) |
|
Unrealizes a Gtk::Native
.
This should only be used by subclasses.
◆ wrap()
A Glib::wrap() method for this object.
- Parameters
-
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. |
- Returns
- A C++ instance that wraps this C instance.