GritsObject

GritsObject — Base class for drawing operations

Synopsis

                    GritsObject;
                    GritsObjectClass;
#define             grits_object_center                 (object)

Object Hierarchy

  GObject
   +----GritsObject
         +----GritsCallback
         +----GritsMarker
         +----GritsTile

Description

Objects in grits are things which can be added to the viewer and will be displayed to the user. Each object has information such as it's location and level of detail which are used by the viewer to determine which objects should be drawn.

Each GritsObject is also a GObject, but not every GObject in grits is a GritsObject. The "Object" part of the name is just coincidence.

Details

GritsObject

typedef struct _GritsObject GritsObject;


GritsObjectClass

typedef struct {
	GObjectClass parent_class;
} GritsObjectClass;


grits_object_center()

#define             grits_object_center(object)

Get the GritsPoint representing the center of an object

object :

The GritsObject to get the center of

Returns :

the center point