1 /********************************************************************** 2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; either version 2, or (at your option) 6 any later version. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 ***********************************************************************/ 13 #ifndef FC__GUI_STUFF_H 14 #define FC__GUI_STUFF_H 15 16 #include <X11/Intrinsic.h> 17 18 void xaw_horiz_center(Widget w); 19 void xaw_set_label(Widget w, const char *text); 20 void xaw_set_bitmap(Widget w, Pixmap pm); 21 void x_simulate_button_click(Widget w); 22 void xaw_expose_now(Widget w); 23 void xaw_set_relative_position(Widget ref, Widget w, int px, int py); 24 Pixmap x_scale_pixmap(Pixmap src, int src_w, int src_h, int dst_w, int dst_h, 25 Window root); 26 27 Widget xaw_intl_label(Widget w); 28 Widget xaw_intl_label_width(Widget w); 29 Widget xaw_intl_title(Widget w); 30 Widget xaw_intl_icon_name(Widget w); 31 Widget xaw_intl_string(Widget w); 32 Widget xaw_intl_string_width(Widget w); 33 34 #define I_L(w) xaw_intl_label(w) 35 #define I_LW(w) xaw_intl_label_width(w) 36 #define I_T(w) xaw_intl_title(w) 37 #define I_IN(w) xaw_intl_icon_name(w) 38 #define I_S(w) xaw_intl_string(w) 39 #define I_SW(w) xaw_intl_string_width(w) 40 41 #define INT_TO_XTPOINTER(m_i) ((XtPointer)((long)(m_i))) 42 #define XTPOINTER_TO_INT(m_p) ((int)((long)(m_p))) 43 44 #endif /* FC__GUI_STUFF_H */ 45