ARB
AW_window_Xm_interface.cxx
Go to the documentation of this file.
1 // ============================================================= //
2 // //
3 // File : AW_window_Xm_interface.cxx //
4 // Purpose : Provide some X11 interna for applications //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in April 2009 //
7 // Institute of Microbiology (Technical University Munich) //
8 // http://www.arb-home.de/ //
9 // //
10 // ============================================================= //
11 
13 #include <aw_window.hxx>
14 #include <aw_window_Xm.hxx>
15 #include "aw_common_xm.hxx"
16 #include <aw_root.hxx>
17 
18 // functions published here are used externally from ../RNA3D
19 
20 XtAppContext AW_get_XtAppContext(AW_root *aw_root) {
21  return aw_root->prvt->context;
22 }
23 
25  return aww->p_w->areas[area]->get_area();
26 }
27 
28 GC AW_map_AreaGC(AW_window *aww, AW_area area, int gc) {
29  return aww->p_w->areas[area]->get_common()->get_GC(gc);
30 }
31 
XtAppContext AW_get_XtAppContext(AW_root *aw_root)
AW_root_Motif * prvt
Definition: aw_root.hxx:104
AW_area
Definition: aw_base.hxx:76
Widget get_area() const
Widget AW_get_AreaWidget(AW_window *aww, AW_area area)
XtAppContext context
AW_area_management * areas[AW_MAX_AREA]
AW_window_Motif * p_w
Definition: aw_window.hxx:288
GC AW_map_AreaGC(AW_window *aww, AW_area area, int gc)
GC get_GC(int gc) const
AW_common_Xm * get_common() const
struct _WidgetRec * Widget
Definition: aw_base.hxx:48