1 /* A Gtk Widget that inherits GtkFixed, but can be shrinked.
3 Copyright (C) 2011 Free Software Foundation, Inc.
5 This file is part of GNU Emacs.
7 GNU Emacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 #ifndef EMACSGTKFIXED_H
21 #define EMACSGTKFIXED_H
27 #define EMACS_TYPE_FIXED (emacs_fixed_get_type ())
28 #define EMACS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMACS_TYPE_FIXED, EmacsFixed))
29 #define EMACS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EMACS_TYPE_FIXED, EmacsFixedClass))
30 #define EMACS_IS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMACS_TYPE_FIXED))
31 #define EMACS_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EMACS_TYPE_FIXED))
32 #define EMACS_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMACS_TYPE_FIXED, EmacsFixedClass))
34 typedef struct _EmacsFixed EmacsFixed
;
35 typedef struct _EmacsFixedPrivate EmacsFixedPrivate
;
36 typedef struct _EmacsFixedClass EmacsFixedClass
;
43 EmacsFixedPrivate
*priv
;
47 struct _EmacsFixedClass
49 GtkFixedClass parent_class
;
52 extern GtkWidget
*emacs_fixed_new (void);
53 extern void emacs_fixed_set_min_size (EmacsFixed
*widget
, int width
, int height
);
54 extern GType
emacs_fixed_get_type (void);
58 #endif /* EMACSGTKFIXED_H */