Changeset 053f751 for window.h


Ignore:
Timestamp:
Jun 1, 2010, 12:25:28 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
e00355d
Parents:
4751077a
git-author:
David Benjamin <davidben@mit.edu> (06/01/10 00:24:15)
git-committer:
David Benjamin <davidben@mit.edu> (06/01/10 00:25:28)
Message:
For prototyping, use a GObject-backed owl_window

It gives us many signals and refcounting conveniences. This first
iteration doesn't use any of these features but gets it barely working
quickly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.h

    r3da1f4f r053f751  
    33
    44#include <glib.h>
     5#include <glib-object.h>
    56
    6 typedef struct _owl_window owl_window;
     7G_BEGIN_DECLS
     8
     9#define OWL_TYPE_WINDOW                  (owl_window_get_type ())
     10#define OWL_WINDOW(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), OWL_TYPE_WINDOW, OwlWindow))
     11#define OWL_IS_WINDOW(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OWL_TYPE_WINDOW))
     12#define OWL_WINDOW_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), OWL_TYPE_WINDOW, OwlWindowClass))
     13#define OWL_IS_WINDOW_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), OWL_TYPE_WINDOW))
     14#define OWL_WINDOW_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), OWL_TYPE_WINDOW, OwlWindowClass))
     15
     16typedef struct _owl_window OwlWindow;
     17typedef struct _OwlWindowClass OwlWindowClass;
     18typedef OwlWindow owl_window; /* meh */
     19
     20struct _OwlWindowClass
     21{
     22  GObjectClass parent_class;
     23};
     24
     25GType owl_window_get_type(void);
    726
    827owl_window *owl_window_get_screen(void);
    928
    1029owl_window *owl_window_new(owl_window *parent);
    11 void owl_window_delete(owl_window *w);
    1230void owl_window_unlink(owl_window *w);
    1331
     
    4361void owl_window_erase_cb(owl_window *w, WINDOW *win, void *user_data);
    4462
     63G_END_DECLS
     64
    4565#endif /* __BARNOWL_WINDOW_H__ */
Note: See TracChangeset for help on using the changeset viewer.