xwm/core: internal windows now create a GtkWindow
[luccawm.git] / xwm / lucca-bin.h
blob6f6ac26d0e1079f4b370a02d201d31891de24118
1 /* Copyright (c) 2008 Vincent Povirk
3 Permission is hereby granted, free of charge, to any person
4 obtaining a copy of this software and associated documentation
5 files (the "Software"), to deal in the Software without
6 restriction, including without limitation the rights to use,
7 copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following
10 conditions:
12 The above copyright notice and this permission notice shall be
13 included in all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 OTHER DEALINGS IN THE SOFTWARE.
25 #ifndef LUCCA_BIN_H
26 #define LUCCA_BIN_H
28 #include <glib.h>
29 #include <glib-object.h>
30 #include <gdk/gdk.h>
31 #include <gtk/gtk.h>
32 #include <gtk/gtkwindow.h>
35 LuccaBin is a GtkBin that has no border and accepts any fixed size and
36 parent GdkWindow. It is used to implement internal LuccaWindow objects.
39 /* Boiler-plate definition of LuccaBin */
40 #define LUCCA_TYPE_BIN lucca_bin_get_type()
41 #define LUCCA_BIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LUCCA_TYPE_BIN, LuccaBin))
42 #define LUCCA_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LUCCA_TYPE_BIN, LuccaBinClass))
43 #define LUCCA_IS_BIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LUCCA_TYPE_BIN))
44 #define LUCCA_IS_BIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LUCCA_TYPE_BIN))
45 #define LUCCA_BIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LUCCA_TYPE_BIN, LuccaBinClass))
47 typedef struct _LuccaBin LuccaBin;
48 typedef struct _LuccaBinClass LuccaBinClass;
50 GType lucca_bin_get_type();
52 struct _LuccaBin {
53 GtkWindow parent;
54 /* instance members */
56 /* < private > */
57 GdkWindow* parent_window;
59 gboolean dispose_has_run;
62 struct _LuccaBinClass {
63 GtkWindowClass parent;
64 /* class members */
67 /* method declarations */
68 void lucca_bin_set_parent(LuccaBin* bin, GdkWindow* parent);
70 void lucca_bin_move_resize(LuccaBin* bin, gint x, gint y, gint width, gint height);
72 #endif