File: vlazyfixed.h

package info (click to toggle)
mah-jong 1.6.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,116 kB
  • ctags: 1,816
  • sloc: ansic: 23,015; perl: 393; makefile: 248; sh: 122
file content (69 lines) | stat: -rw-r--r-- 2,508 bytes parent folder | download | duplicates (4)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* $Header: /home/jcb/newmj/RCS/vlazyfixed.h,v 11.0 2002/01/05 23:30:47 jcb Rel $
 * vlazyfixed.h
 * Another slight variation on the GTK+ fixed widget.
 * It doesn't call queue_resize when children are removed, added,
 * or move, EXCEPT when the first child is added.
 * This has the consequence that move DOESN'T work, unles you
 * explicitly call resize. But that's OK, since we only use this
 * in a situation where we can physically move the child window.
 */
/****************** COPYRIGHT STATEMENT **********************
 * This file is Copyright (c) 2001 by J. C. Bradfield.       *
 * This file may be used under the terms of the              *
 * GNU Lesser General Public License (any version).           *
 * The moral rights of the author are asserted.              *
 *                                                           *
 ***************** DISCLAIMER OF WARRANTY ********************
 * This code is not warranted fit for any purpose. See the   *
 * LICENCE file for further information.                     *
 *                                                           *
 *************************************************************/


#ifndef __VLAZY_FIXED_H__
#define __VLAZY_FIXED_H__


#include <gtk/gtkfixed.h>
#include "sysdep.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


#define VLAZY_FIXED(obj)                  (GTK_CHECK_CAST ((obj), vlazy_fixed_get_type(), VlazyFixed))
#define VLAZY_FIXED_CLASS(klass)          (GTK_CHECK_CLASS_CAST ((klass), vlazy_fixed_get_type(), VlazyFixedClass))
#define IS_VLAZY_FIXED(obj)               (GTK_CHECK_TYPE ((obj), vlazy_fixed_get_type()))

typedef struct _VlazyFixed        VlazyFixed;
typedef struct _VlazyFixedClass   VlazyFixedClass;

struct _VlazyFixed
{
  GtkFixed fixed;
};

struct _VlazyFixedClass
{
  GtkFixedClass parent_class;
};


GtkType    vlazy_fixed_get_type          (void);
GtkWidget* vlazy_fixed_new               (void);
void       vlazy_fixed_put               (VlazyFixed       *fixed,
                                        GtkWidget      *widget,
                                        gint16         x,
                                        gint16         y);
void       vlazy_fixed_move              (VlazyFixed       *fixed,
                                        GtkWidget      *widget,
                                        gint16         x,
                                        gint16         y);

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* __VLAZY_FIXED_H__ */