Size representation.
More...
#include <gdkmm/graphene_size.h>
Size representation.
Gdk::Graphene::Size represents a size composed of a width by a height.
- Since gtkmm 4.12:
Gdk::Graphene::Size::Size |
( |
| ) |
|
Constructs an invalid object.
E.g. for output arguments to methods. There is not much you can do with the object before it has been assigned a valid value.
Gdk::Graphene::Size::Size |
( |
graphene_size_t * |
castitem, |
|
|
bool |
make_a_copy = false |
|
) |
| |
|
explicit |
Gdk::Graphene::Size::Size |
( |
const Size& |
src | ) |
|
Gdk::Graphene::Size::Size |
( |
Size&& |
other | ) |
|
|
noexcept |
Gdk::Graphene::Size::~Size |
( |
| ) |
|
|
noexcept |
Gdk::Graphene::Size::Size |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
bool Gdk::Graphene::Size::equal |
( |
const Size& |
b | ) |
const |
Checks whether the two give #graphene_size_t are equal.
- Since gtkmm 4.12:
- Parameters
-
- Returns
true
if the sizes are equal.
float Gdk::Graphene::Size::get_height |
( |
| ) |
const |
float Gdk::Graphene::Size::get_width |
( |
| ) |
const |
graphene_size_t* Gdk::Graphene::Size::gobj |
( |
| ) |
|
|
inline |
const graphene_size_t* Gdk::Graphene::Size::gobj |
( |
| ) |
const |
|
inline |
graphene_size_t* Gdk::Graphene::Size::gobj_copy |
( |
| ) |
const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
Gdk::Graphene::Size::operator bool |
( |
| ) |
const |
|
explicit |
Checks if this instance is valid.
It is valid if and only if it contains a value. For instance,
Size& Gdk::Graphene::Size::operator= |
( |
const Size& |
src | ) |
|
Size& Gdk::Graphene::Size::operator= |
( |
Size&& |
other | ) |
|
|
noexcept |
void Gdk::Graphene::Size::set_height |
( |
const float & |
value | ) |
|
void Gdk::Graphene::Size::set_width |
( |
const float & |
value | ) |
|
void Gdk::Graphene::Size::swap |
( |
Size& |
other | ) |
|
|
noexcept |
- Parameters
-
lhs | The left-hand side |
rhs | The right-hand side |
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.
graphene_size_t* Gdk::Graphene::Size::gobject_ |
|
protected |