TestPair

TestPair — Pair of integers

Synopsis

                    TestPair;
TestPair*           test_pair_new                       (gint first,
                                                         gint second);
gint                test_pair_get_first                 (TestPair *instance);
gint                test_pair_get_second                (TestPair *instance);
void                test_pair_set_first                 (TestPair *instance,
                                                         gint value);
void                test_pair_set_second                (TestPair *instance,
                                                         gint value);

Object Hierarchy

  GObject
   +----EggDBusStructure
         +----TestPair

Description

The TestPair type is used to group two integers together.

Details

TestPair

typedef struct _TestPair TestPair;

test_pair_new ()

TestPair*           test_pair_new                       (gint first,
                                                         gint second);

Constructs a new TestPair.

first : The first element
second : The second element
Returns : A TestPair.

test_pair_get_first ()

gint                test_pair_get_first                 (TestPair *instance);

Gets element 0 of the EggDBusStructure wrapped by TestPair.

instance : A TestPair.
Returns : The first element

test_pair_get_second ()

gint                test_pair_get_second                (TestPair *instance);

Gets element 1 of the EggDBusStructure wrapped by TestPair.

instance : A TestPair.
Returns : The second element

test_pair_set_first ()

void                test_pair_set_first                 (TestPair *instance,
                                                         gint value);

Sets element 0 of the EggDBusStructure wrapped by TestPair.

instance : A TestPair.
value : The first element

test_pair_set_second ()

void                test_pair_set_second                (TestPair *instance,
                                                         gint value);

Sets element 1 of the EggDBusStructure wrapped by TestPair.

instance : A TestPair.
value : The second element