~ubuntu-branches/ubuntu/quantal/xbill/quantal

« back to all changes in this revision

Viewing changes to x11.h

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2004-09-07 09:52:14 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040907095214-d0m46ojc8f7upuqm
Tags: 2.1-4
maintainer upload of NMU - many thanks Tollef (closes: #268885) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#include <X11VMS/vmsutil.h>
15
15
#endif
16
16
 
17
 
#include "UI.h"
18
 
 
19
 
#define OK      1
20
 
#define CANCEL  2
21
 
 
22
 
void popup (Widget w, Widget *box, XtPointer client_data);
23
 
void popdown (Widget w, XtPointer call_data, XtPointer client_data);
24
 
 
25
 
void new_game_cb (Widget w, XtPointer client_data, XtPointer call_data);
26
 
void quit_game_cb (Widget w, XtPointer call_data, XtPointer client_data);
27
 
 
28
 
void leave_window_eh(Widget w, XtPointer client_data, XEvent *event);
29
 
void enter_window_eh(Widget w, XtPointer client_data, XEvent *event);
30
 
void redraw_window_eh(Widget w, XtPointer client_data, XEvent *event);
31
 
void button_press_eh(Widget w, XtPointer data, XButtonEvent *event);
32
 
void button_release_eh(Widget w, XtPointer data, XButtonEvent *event);
33
 
void timer_eh(XtPointer client_data, XtIntervalId *timer_id);
34
 
 
35
 
Widget CreateMenuBar(const char *name, Widget parent);
36
 
Widget CreatePixmapBox(const char *name, Widget parent, Pixmap pixmap,
37
 
        const char *text);
38
 
Widget CreateEnterText (const char *name, Widget parent, const char *text,
39
 
        XtCallbackProc callback);
40
 
Widget CreateDialog (const char *name, Widget parent, int buttonmask,
41
 
        Pixmap icon, const char *text, const char *buttonlabel,
42
 
        XtCallbackProc callback);
43
 
Widget CreateDrawingArea(const char *name, Widget parent, int width,
44
 
        int height);
45
 
 
46
 
void print_to_widget(Widget w, const char *str);
47
 
Widget CreateRowCol(const char *name, Widget parent);
48
 
        
49
 
void setup_main_widgets ();
50
 
void setup_other_widgets (Pixmap about, Pixmap rules, Pixmap story);
51
 
 
52
 
void warp_apply (Widget w, Widget text, XtPointer client_data);
53
 
void enter_name (Widget w, Widget text, XtPointer client_data);
 
17
#include "types.h"
 
18
 
 
19
struct MCursor {
 
20
        Pixmap cursor;
 
21
};
 
22
 
 
23
struct Picture {
 
24
        Dimension width, height;
 
25
        Pixmap pix;
 
26
        Pixmap mask;
 
27
        GC gc;
 
28
};
 
29
 
 
30
void x11_set_cursor(MCursor *cursor);
 
31
void x11_load_cursor(const char *name, int masked, MCursor **cursorp);
 
32
void x11_load_picture(const char *name, int trans, Picture **pictp);
 
33
void x11_set_icon(Picture *icon);
 
34
int x11_picture_width(Picture *pict);
 
35
int x11_picture_height(Picture *pict);
 
36
void x11_graphics_init(void);
 
37
void x11_clear_window(void);
 
38
void x11_refresh_window(void);
 
39
void x11_draw_image(Picture *pict, int x, int y);
 
40
void x11_draw_line(int x1, int y1, int x2, int y2);
 
41
void x11_draw_string(const char *str, int x, int y);
 
42
void x11_start_timer(int ms);
 
43
void x11_stop_timer(void);
 
44
int x11_timer_active(void);
 
45
void x11_main_loop(void);
 
46
void x11_initialize(int *argc, char **argv);
 
47
void x11_create_dialogs(Picture *logo, Picture *icon, Picture *about);
 
48
 
 
49
void x11_setup_resources(void);
 
50
void x11_setup(void);
 
51
void x11_add_event_handlers(Widget w);
 
52
void x11_popup (Widget dialog);
 
53
Widget x11_toplevel(void);
 
54
void x11_set_drawingarea(Widget w, int size);
54
55
 
55
56
#endif