A Clutter::Point is a 2D point in space.
More...
|
| | Point (ClutterPoint* gobject, bool make_a_copy=true) |
| |
| | Point (const Point& other) |
| |
| Point& | operator= (const Point& other) |
| |
| | ~Point () |
| |
| void | swap (Point& other) |
| |
| ClutterPoint* | gobj () |
| | Provides access to the underlying C instance. More...
|
| |
| const ClutterPoint* | gobj () const |
| | Provides access to the underlying C instance. More...
|
| |
| ClutterPoint* | gobj_copy () const |
| | Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. More...
|
| |
| | Point (float x=0, float y=0) |
| | Constructor. More...
|
| |
| | Point (int x, int y) |
| |
| | Point (double x, double y) |
| |
| float | distance (const Point& b, float& x_distance, float& y_distance) const |
| | Computes the distance between two Clutter::Point. More...
|
| |
| float | get_x () const |
| |
| float | get_y () const |
| |
| void | set_x (const float& value) |
| |
| void | set_y (const float& value) |
| |
|
| static GType | get_type () |
| | Get the GType for this class, for use with the underlying GObject type system. More...
|
| |
A Clutter::Point is a 2D point in space.
It is used to return points, either in absolute coordinates or relative, depending on the method.
| Clutter::Point::Point |
( |
ClutterPoint * |
gobject, |
|
|
bool |
make_a_copy = true |
|
) |
| |
|
explicit |
| Clutter::Point::Point |
( |
const Point& |
other | ) |
|
| Clutter::Point::~Point |
( |
| ) |
|
| Clutter::Point::Point |
( |
float |
x = 0, |
|
|
float |
y = 0 |
|
) |
| |
|
explicit |
| Clutter::Point::Point |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
| Clutter::Point::Point |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
| float Clutter::Point::distance |
( |
const Point& |
b, |
|
|
float & |
x_distance, |
|
|
float & |
y_distance |
|
) |
| const |
Computes the distance between two Clutter::Point.
- Since cluttermm 1.12:
- Parameters
-
| b | A Clutter::Point. |
| x_distance | Return location for the horizontal distance between the points. |
| y_distance | Return location for the vertical distance between the points. |
- Returns
- The distance between the points.
| static GType Clutter::Point::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
| float Clutter::Point::get_x |
( |
| ) |
const |
| float Clutter::Point::get_y |
( |
| ) |
const |
| ClutterPoint* Clutter::Point::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C instance.
| const ClutterPoint* Clutter::Point::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C instance.
| ClutterPoint* Clutter::Point::gobj_copy |
( |
| ) |
const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
| Point& Clutter::Point::operator= |
( |
const Point& |
other | ) |
|
| void Clutter::Point::set_x |
( |
const float & |
value | ) |
|
| void Clutter::Point::set_y |
( |
const float & |
value | ) |
|
| void Clutter::Point::swap |
( |
Point& |
other | ) |
|
- Parameters
-
| lhs | The left-hand side |
| rhs | The right-hand side |
- Returns
- The result
| bool operator== |
( |
const Point& |
lhs, |
|
|
const Point& |
rhs |
|
) |
| |
|
related |
- Parameters
-
| lhs | The left-hand side |
| rhs | The right-hand side |
- Returns
- The result
- 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.
| ClutterPoint* Clutter::Point::gobject_ |
|
protected |
The documentation for this class was generated from the following file: