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:
◆ Size() [1/5]
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.
◆ Size() [2/5]
Gdk::Graphene::Size::Size |
( |
graphene_size_t * |
castitem, |
|
|
bool |
make_a_copy = false |
|
) |
| |
|
explicit |
◆ Size() [3/5]
Gdk::Graphene::Size::Size |
( |
const Size & |
src | ) |
|
◆ Size() [4/5]
Gdk::Graphene::Size::Size |
( |
Size && |
other | ) |
|
|
noexcept |
◆ ~Size()
Gdk::Graphene::Size::~Size |
( |
| ) |
|
|
noexcept |
◆ Size() [5/5]
Gdk::Graphene::Size::Size |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
◆ equal()
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.
◆ get_height()
float Gdk::Graphene::Size::get_height |
( |
| ) |
const |
◆ get_width()
float Gdk::Graphene::Size::get_width |
( |
| ) |
const |
◆ gobj() [1/2]
graphene_size_t * Gdk::Graphene::Size::gobj |
( |
| ) |
|
|
inline |
◆ gobj() [2/2]
const graphene_size_t * Gdk::Graphene::Size::gobj |
( |
| ) |
const |
|
inline |
◆ gobj_copy()
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.
◆ operator bool()
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,
do_something()
valarray< size_t > size() const
◆ operator=() [1/2]
Size & Gdk::Graphene::Size::operator= |
( |
const Size & |
src | ) |
|
◆ operator=() [2/2]
Size & Gdk::Graphene::Size::operator= |
( |
Size && |
other | ) |
|
|
noexcept |
◆ set_height()
void Gdk::Graphene::Size::set_height |
( |
const float & |
value | ) |
|
◆ set_width()
void Gdk::Graphene::Size::set_width |
( |
const float & |
value | ) |
|
◆ swap()
void Gdk::Graphene::Size::swap |
( |
Size & |
other | ) |
|
|
noexcept |
◆ swap()
- Parameters
-
lhs | The left-hand side |
rhs | The right-hand side |
◆ 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.
◆ gobject_
graphene_size_t* Gdk::Graphene::Size::gobject_ |
|
protected |