1 | #ifndef __PUZZLE_PIECE_H__ |
2 | #define __PUZZLE_PIECE_H__ |
3 | |
4 | #include <gtk/gtk.h> |
5 | |
6 | /* First, add the boilerplate for the object itself. |
7 | */ |
8 | #define GTK_TYPE_PUZZLE_PIECE (gtk_puzzle_piece_get_type ()) |
9 | G_DECLARE_FINAL_TYPE (GtkPuzzlePiece, gtk_puzzle_piece, GTK, PUZZLE_PIECE, GObject) |
10 | |
11 | /* Then, declare all constructors */ |
12 | GdkPaintable * gtk_puzzle_piece_new (GdkPaintable *puzzle, |
13 | guint x, |
14 | guint y, |
15 | guint width, |
16 | guint height); |
17 | |
18 | /* Next, add the getters and setters for object properties */ |
19 | GdkPaintable * gtk_puzzle_piece_get_puzzle (GtkPuzzlePiece *self); |
20 | guint gtk_puzzle_piece_get_x (GtkPuzzlePiece *self); |
21 | guint gtk_puzzle_piece_get_y (GtkPuzzlePiece *self); |
22 | |
23 | #endif /* __PUZZLE_PIECE_H__ */ |
24 | |