2005-04-03 16:13:08 +00:00
|
|
|
#ifndef _HAVE_CLTR_WINDOW_H
|
|
|
|
#define _HAVE_CLTR_WINDOW_H
|
|
|
|
|
|
|
|
#include "cltr.h"
|
|
|
|
|
|
|
|
typedef struct CltrWindow CltrWindow;
|
|
|
|
|
|
|
|
#define CLTR_WINDOW(w) ((CltrWindow*)(w))
|
|
|
|
|
|
|
|
CltrWidget*
|
|
|
|
cltr_window_new(int width, int height);
|
|
|
|
|
|
|
|
void
|
|
|
|
cltr_window_add_widget(CltrWindow *win, CltrWidget *widget, int x, int y);
|
|
|
|
|
2005-04-07 22:46:43 +00:00
|
|
|
/* win only methods */
|
|
|
|
|
|
|
|
Window
|
|
|
|
cltr_window_xwin(CltrWindow *win);
|
|
|
|
|
2005-04-13 17:36:17 +00:00
|
|
|
void
|
|
|
|
cltr_window_set_fullscreen(CltrWindow *win);
|
|
|
|
|
2005-05-06 17:41:15 +00:00
|
|
|
void
|
2005-04-07 22:46:43 +00:00
|
|
|
cltr_window_focus_widget(CltrWindow *win, CltrWidget *widget);
|
|
|
|
|
2005-05-06 17:41:15 +00:00
|
|
|
void
|
|
|
|
cltr_window_on_xevent(CltrWindow *win,
|
|
|
|
CltrXEventCallback callback,
|
|
|
|
void *userdata);
|
|
|
|
|
2005-04-03 16:13:08 +00:00
|
|
|
|
|
|
|
#endif
|