source: tags/arb_5.1/WINDOW/AW_window_Xm_interface.cxx

Last change on this file was 5868, checked in by westram, 15 years ago
  • separated openGL parts from WINDOW library (it's nonsense to link openGL into all applications when only one application actually uses openGL)
    • created GL/glWINDOW library (extending normal WINDOW library) and moved relevant code there
    • created an interface header for applications needing access to Motif/X11 internals (aw_window_Xm_interface.hxx)
    • RNA3D uses that interface header (instead of hardcoded links into ../WINDOW)
    • AW_variable_update_struct went local (AW_button.cxx)
    • some functions exported (aw_create_help_entry, aw_create_shell, aw_realize_widget). Needed by libglWINDOW
File size: 1.1 KB
Line 
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
12#include "aw_window_Xm_interface.hxx"
13#include <aw_window.hxx>
14#include <aw_window_Xm.hxx>
15#include <aw_commn.hxx>
16
17XtAppContext AW_get_XtAppContext(AW_root *aw_root) {
18    return aw_root->prvt->context;
19}
20
21Widget AW_get_AreaWidget(AW_window *aww, AW_area area) {
22    return aww->p_w->areas[area]->area;
23}
24
25GC AW_map_AreaGC(AW_window *aww, AW_area area, int gc) {
26    AW_common *common = aww->p_w->areas[ area ]->common;
27    AW_GC_Xm  *gcm    = AW_MAP_GC( gc );
28
29    return gcm->gc;
30}
31
Note: See TracBrowser for help on using the repository browser.