summaryrefslogtreecommitdiff
path: root/tests/doctool/doc-examples-obj.h
blob: c8840d7a6c0e958214e9d9b1031c3b13be8168bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* doc-examples-obj.h */

#ifndef _DOC_EXAMPLES_OBJ_H
#define _DOC_EXAMPLES_OBJ_H

#include <glib-object.h>

G_BEGIN_DECLS

#define DOC_EXAMPLES_TYPE_OBJ doc_examples_obj_get_type()

#define DOC_EXAMPLES_OBJ(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  DOC_EXAMPLES_TYPE_OBJ, DocExamplesObj))

#define DOC_EXAMPLES_OBJ_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  DOC_EXAMPLES_TYPE_OBJ, DocExamplesObjClass))

#define DOC_EXAMPLES_IS_OBJ(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  DOC_EXAMPLES_TYPE_OBJ))

#define DOC_EXAMPLES_IS_OBJ_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  DOC_EXAMPLES_TYPE_OBJ))

#define DOC_EXAMPLES_OBJ_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  DOC_EXAMPLES_TYPE_OBJ, DocExamplesObjClass))

typedef struct _DocExamplesObj DocExamplesObj;
typedef struct _DocExamplesObjClass DocExamplesObjClass;

struct _DocExamplesObj
{
  GObject parent;
};

struct _DocExamplesObjClass
{
  GObjectClass parent_class;

  /**
   * DocExamplesObjClass::vfunc:
   * @self:
   * @first_arg: first argument
   *
   * This is an example of how to document a vfunc.
   *
   * Since: 0.99
   */
  void (*vfunc) (DocExamplesObj *self, gint first_arg);
};

GType doc_examples_obj_get_type (void) G_GNUC_CONST;

DocExamplesObj *doc_examples_obj_new (void);
gboolean doc_examples_obj_method (DocExamplesObj *self, gint first_arg, gfloat second_arg,
                                  gboolean boolean_arg, gpointer pointer_arg, gchar *string);

G_END_DECLS

#endif /* _DOC_EXAMPLES_OBJ_H */