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 ())
9G_DECLARE_FINAL_TYPE (GtkPuzzlePiece, gtk_puzzle_piece, GTK, PUZZLE_PIECE, GObject)
10
11/* Then, declare all constructors */
12GdkPaintable * 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 */
19GdkPaintable * gtk_puzzle_piece_get_puzzle (GtkPuzzlePiece *self);
20guint gtk_puzzle_piece_get_x (GtkPuzzlePiece *self);
21guint gtk_puzzle_piece_get_y (GtkPuzzlePiece *self);
22
23#endif /* __PUZZLE_PIECE_H__ */
24

source code of gtk/demos/gtk-demo/puzzlepiece.h