Back to index

unity  6.0.0
Enumerations | Functions | Variables
test_glib_signals_utils.cpp File Reference
#include "test_glib_signals_utils.h"
#include "test_glib_signals_utils_marshal.h"

Go to the source code of this file.

Enumerations

enum  {
  SIGNAL_0, SIGNAL_1, SIGNAL_2, SIGNAL_3,
  SIGNAL_4, SIGNAL_5, SIGNAL_6, LAST_SIGNAL
}

Functions

 G_DEFINE_TYPE (TestSignals, test_signals, G_TYPE_OBJECT)
static void test_signals_class_init (TestSignalsClass *klass)
static void test_signals_init (TestSignals *self)

Variables

static guint32 _service_signals [LAST_SIGNAL] = { 0 }

Enumeration Type Documentation

anonymous enum
Enumerator:
SIGNAL_0 
SIGNAL_1 
SIGNAL_2 
SIGNAL_3 
SIGNAL_4 
SIGNAL_5 
SIGNAL_6 
LAST_SIGNAL 

Definition at line 4 of file test_glib_signals_utils.cpp.


Function Documentation

G_DEFINE_TYPE ( TestSignals  ,
test_signals  ,
G_TYPE_OBJECT   
)
static void test_signals_class_init ( TestSignalsClass *  klass) [static]

Definition at line 23 of file test_glib_signals_utils.cpp.

{
  GObjectClass* obj_class = G_OBJECT_CLASS(klass);

  /* Signals */
  _service_signals[SIGNAL_0] =
    g_signal_new("signal0",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 g_cclosure_marshal_VOID__VOID,
                 G_TYPE_NONE, 0);

  _service_signals[SIGNAL_1] =
    g_signal_new("signal1",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 g_cclosure_marshal_VOID__STRING,
                 G_TYPE_NONE, 1, G_TYPE_STRING);

  _service_signals[SIGNAL_2] =
    g_signal_new("signal2",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 test_signals_VOID__STRING_INT,
                 G_TYPE_NONE, 2,
                 G_TYPE_STRING, G_TYPE_INT);

  _service_signals[SIGNAL_3] =
    g_signal_new("signal3",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 test_signals_VOID__STRING_INT_FLOAT,
                 G_TYPE_NONE, 3,
                 G_TYPE_STRING, G_TYPE_INT, G_TYPE_FLOAT);

  _service_signals[SIGNAL_4] =
    g_signal_new("signal4",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 test_signals_VOID__STRING_INT_FLOAT_DOUBLE,
                 G_TYPE_NONE, 4,
                 G_TYPE_STRING, G_TYPE_INT, G_TYPE_FLOAT, G_TYPE_DOUBLE);

  _service_signals[SIGNAL_5] =
    g_signal_new("signal5",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 test_signals_VOID__STRING_INT_FLOAT_DOUBLE_BOOLEAN,
                 G_TYPE_NONE, 5,
                 G_TYPE_STRING, G_TYPE_INT, G_TYPE_FLOAT,
                 G_TYPE_DOUBLE, G_TYPE_BOOLEAN);

  _service_signals[SIGNAL_6] =
    g_signal_new("signal6",
                 G_OBJECT_CLASS_TYPE(obj_class),
                 G_SIGNAL_RUN_LAST,
                 0,
                 NULL, NULL,
                 test_signals_BOOLEAN__STRING_INT_FLOAT_DOUBLE_BOOLEAN_CHAR,
                 G_TYPE_BOOLEAN, 6,
                 G_TYPE_STRING, G_TYPE_INT, G_TYPE_FLOAT,
                 G_TYPE_DOUBLE, G_TYPE_BOOLEAN, G_TYPE_CHAR);
}
static void test_signals_init ( TestSignals self) [static]

Definition at line 100 of file test_glib_signals_utils.cpp.

{
}

Variable Documentation

guint32 _service_signals[LAST_SIGNAL] = { 0 } [static]

Definition at line 18 of file test_glib_signals_utils.cpp.