gtkmm 4.16.0
|
Size representation. More...
#include <gdkmm/graphene_size.h>
Public Member Functions | |
Size () | |
Constructs an invalid object. | |
Size (graphene_size_t *castitem, bool make_a_copy=false) | |
Size (const Size &src) | |
Size & | operator= (const Size &src) |
Size (Size &&other) noexcept | |
Size & | operator= (Size &&other) noexcept |
~Size () noexcept | |
void | swap (Size &other) noexcept |
graphene_size_t * | gobj () |
const graphene_size_t * | gobj () const |
graphene_size_t * | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
Size (float width, float height) | |
operator bool () const | |
Checks if this instance is valid. | |
float | get_width () const |
void | set_width (const float & value) |
float | get_height () const |
void | set_height (const float & value) |
bool | equal (const Size & b) const |
Checks whether the two give graphene_size_t are equal. | |
Protected Attributes | |
graphene_size_t * | gobject_ |
Related Symbols | |
(Note that these are not member symbols.) | |
void | swap (Size &lhs, Size &rhs) noexcept |
Gdk::Graphene::Size | wrap (graphene_size_t *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
Size representation.
Gdk::Graphene::Size represents a size composed of a width by a height.
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.
|
explicit |
|
noexcept |
|
noexcept |
Checks whether the two give graphene_size_t are equal.
b | A graphene_size_t. |
true
if the sizes are equal. float Gdk::Graphene::Size::get_height | ( | ) | const |
float Gdk::Graphene::Size::get_width | ( | ) | const |
|
inline |
|
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.
|
explicit |
lhs | The left-hand side |
rhs | The right-hand side |
|
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. |
|
protected |