Lomse library. API documentation  0.30.0
GmoShape Class Reference

#include <lomse_gm_basic.h>

Inheritance diagram for GmoShape:
GmoObj GmoCompositeShape GmoSimpleShape GmoShapeStaff

Detailed Description

All visible objects derive from abstract class GmoShape. It represents a visible object, such as a line, a glyph, an arch, a note head, etc. As GmoShape objects derive from GmoObj they have a bounds rectangle that defines the space occupied by the shape. This rectangle defines reference bounds for laying out other shapes and, also, it is used to detect visual collisions with other shapes during the layout process.

In general, the only responsibility of a GmoShape object is to draw itself when requested to do it by a Drawer object. Therefore, GmoShape objects usually do not have public methods. As an exception, some shapes can provide information about sub-shapes or special reference points.

Additional Inherited Members

- Public Member Functions inherited from GmoObj
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 ()