summaryrefslogtreecommitdiff
path: root/tests/scanner/drawable.c
blob: 0250fc05223a23e758e2c26b5bf3577634d4425f (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
#include "drawable.h"

G_DEFINE_ABSTRACT_TYPE (TestInheritDrawable, test_inherit_drawable, G_TYPE_OBJECT);

static void
test_inherit_drawable_class_init (TestInheritDrawableClass *klass)
{

}

static void
test_inherit_drawable_init (TestInheritDrawable *drawable)
{

}

void 
test_inherit_drawable_do_foo (TestInheritDrawable *drawable, int x)
{
  
}

void
test_inherit_drawable_get_origin (TestInheritDrawable *drawable, int *x, int *y)
{
  *x = 0;
  *y = 0;
}

void
test_inherit_drawable_get_size (TestInheritDrawable *drawable, guint *width, guint *height)
{
  *width = 42;
  *height = 42;
}

void
test_inherit_drawable_do_foo_maybe_throw (TestInheritDrawable *drawable, int x, GError **error)
{
  if (x != 42)
    g_set_error(error, 0, 12, "The answer should be 42!");
}