TestPoint

TestPoint — 2D point

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── EggDBusStructure
        ╰── TestPoint

Description

The TestPoint type is used for 2D integer points.

Functions

test_point_new ()

TestPoint *
test_point_new (gint x,
                gint y);

Constructs a new TestPoint.

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

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.

Parameters

instance

A TestPoint.

 

value

The Y coordinate

 

Types and Values

TestPoint

typedef struct _TestPoint TestPoint;