Lomse library. API documentation
0.30.0
|
#include <lomse_gm_basic.h>
Abstract class from which all graphical objects derive. All graphical objects have a bounding box and a position, and know how to draw themselves.
Public Member Functions | |
Size and position | |
LUnits | get_width () |
LUnits | get_height () |
LUnits | get_left () const |
LUnits | get_top () const |
LUnits | get_right () const |
LUnits | get_bottom () const |
bool | bounds_contains_point (UPoint &p) |
URect | get_bounds () |
UPoint | get_origin () |
USize | get_size () |
bool GmoObj::bounds_contains_point | ( | UPoint & | p | ) |
Returns true if the point is inside this object bounding box rectangle.
p | The point to be tested, in logical units. |
|
inline |
Returns the y coordinate for the bottom border of the bounding box. The returned value is in logical units, relative to top left corner of GmoDocPage containing this object.
URect GmoObj::get_bounds | ( | ) |
Returns the bounding box rectangle, in logical units. Origin (top left corner) is relative to top left corner of GmoDocPage containing this object.
|
inline |
Returns the height of the bounding box, in logical units.
|
inline |
Returns the x coordinate for the left border of the bounding box. The returned value is in logical units, relative to top left corner of GmoDocPage containing this object.
|
inline |
Returns the top left corner of the bounding box rectangle. The point is in logical units relative to top left corner of GmoDocPage containing this object.
|
inline |
Returns the x coordinate for the right border of the bounding box. The returned value is in logical units, relative to top left corner of GmoDocPage containing this object.
|
inline |
Returns the width and heigh of the bounding box rectangle (in logical units).
|
inline |
Returns the y coordinate for the top border of the bounding box. The returned value is in logical units, relative to top left corner of GmoDocPage containing this object.
|
inline |
Returns the width of the bounding box, in logical units.