summaryrefslogtreecommitdiff
path: root/tests/scanner/drawable.h
blob: 98a7010518f9630dcc7e9a46372bc3190bd8bcdd (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
#ifndef __TEST_DRAWABLE_H__
#define __TEST_DRAWABLE_H__

#include <glib-object.h>

typedef struct _TestDrawable TestDrawable;
typedef struct _TestDrawableClass TestDrawableClass;

struct _TestDrawable
{
  GObject parent_instance;
};

struct _TestDrawableClass
{
  GObjectClass parent_class;
};

GType test_drawable_get_type (void) G_GNUC_CONST;

void test_drawable_do_foo (TestDrawable *drawable, int x);
void test_drawable_get_origin (TestDrawable *drawable, int *x, int *y);
void test_drawable_get_size (TestDrawable *drawable, guint *width, guint *height);
void test_drawable_do_foo_maybe_throw (TestDrawable *drawable, int x, GError **error);

struct _TestPixmapObjectClass
{
  TestDrawableClass parent_class;
};

#endif /* __TEST_DRAWABLE_H__ */