cluttermm: Clutter::Size Class Reference

A size in 2D space. More...

Public Member Functions

 Size (const ClutterSize* gobject)
 
ClutterSize* gobj ()
 Provides access to the underlying C instance. More...

 
const ClutterSize* gobj () const
 Provides access to the underlying C instance. More...

 
 Size (float width=0, float height=0)
 
 Size (int width, int height)
 
 Size (double width, double height)
 Prevents calls to Size(double, double) being ambiguous. More...

 
float get_width () const
 
float get_height () const
 
void set_width (const float& value)
 
void set_height (const float& value)
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...

 

Protected Attributes

ClutterSize gobject_
 

Related Functions

(Note that these are not member functions.)

bool operator== (const Size& lhs, const Size& rhs)
 
bool operator!= (const Size& lhs, const Size& rhs)
 
Clutter::Sizewrap (ClutterSize* object)
 
const Clutter::Sizewrap (const ClutterSize* object)
 

Detailed Description

A size in 2D space.

Constructor & Destructor Documentation

Clutter::Size::Size ( const ClutterSize *  gobject)
explicit
Clutter::Size::Size ( float  width = 0,
float  height = 0 
)
explicit
Clutter::Size::Size ( int  width,
int  height 
)
Clutter::Size::Size ( double  width,
double  height 
)

Prevents calls to Size(double, double) being ambiguous.

N.B. this will convert the input to floats, and rounding errors are possible.

Member Function Documentation

float Clutter::Size::get_height ( ) const
static GType Clutter::Size::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

float Clutter::Size::get_width ( ) const
ClutterSize* Clutter::Size::gobj ( )
inline

Provides access to the underlying C instance.

const ClutterSize* Clutter::Size::gobj ( ) const
inline

Provides access to the underlying C instance.

void Clutter::Size::set_height ( const float &  value)
void Clutter::Size::set_width ( const float &  value)

Friends And Related Function Documentation

bool operator!= ( const Size lhs,
const Size rhs 
)
related
Parameters
lhsThe left-hand side
rhsThe right-hand side
Returns
The result
bool operator== ( const Size lhs,
const Size rhs 
)
related
Parameters
lhsThe left-hand side
rhsThe right-hand side
Returns
The result
Clutter::Size& wrap ( ClutterSize *  object)
related
Parameters
objectThe C instance
Returns
A C++ instance that wraps this C instance.
const Clutter::Size& wrap ( const ClutterSize *  object)
related
Parameters
objectThe C instance
Returns
A C++ instance that wraps this C instance.

Member Data Documentation

ClutterSize Clutter::Size::gobject_
protected

The documentation for this class was generated from the following file:
  • cluttermm/size.h