TestPoint

TestPoint — 2D point

Synopsis

                    TestPoint;
TestPoint*          test_point_new                      (gint x,
                                                         gint y);
gint                test_point_get_x                    (TestPoint *instance);
gint                test_point_get_y                    (TestPoint *instance);
void                test_point_set_x                    (TestPoint *instance,
                                                         gint value);
void                test_point_set_y                    (TestPoint *instance,
                                                         gint value);

Object Hierarchy

  GObject
   +----EggDBusStructure
         +----TestPoint

Description

The TestPoint type is used for 2D integer points.

Details

TestPoint

typedef struct _TestPoint TestPoint;

test_point_new ()

TestPoint*          test_point_new                      (gint x,
                                                         gint y);

Constructs a new TestPoint.

x : The X coordinate
y : The Y coordinate
Returns : A TestPoint.

test_point_get_x ()

gint                test_point_get_x                    (TestPoint *instance);

Gets element 0 of the EggDBusStructure wrapped by TestPoint.

instance : A TestPoint.
Returns : The X coordinate

test_point_get_y ()

gint                test_point_get_y                    (TestPoint *instance);

Gets element 1 of the EggDBusStructure wrapped by TestPoint.

instance : A TestPoint.
Returns : The Y coordinate

test_point_set_x ()

void                test_point_set_x                    (TestPoint *instance,
                                                         gint value);

Sets element 0 of the EggDBusStructure wrapped by TestPoint.

instance : A TestPoint.
value : The X coordinate

test_point_set_y ()

void                test_point_set_y                    (TestPoint *instance,
                                                         gint value);

Sets element 1 of the EggDBusStructure wrapped by TestPoint.

instance : A TestPoint.
value : The Y coordinate