File: awt_modules.hxx

package info (click to toggle)
arb 6.0.6-8
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 66,204 kB
  • sloc: ansic: 394,911; cpp: 250,290; makefile: 19,644; sh: 15,879; perl: 10,473; fortran: 6,019; ruby: 683; xml: 503; python: 53; awk: 32
file content (41 lines) | stat: -rw-r--r-- 1,419 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// ============================================================= //
//                                                               //
//   File      : awt_modules.hxx                                 //
//   Purpose   : small modules for GUI construction              //
//                                                               //
//   Coded by Ralf Westram (coder@reallysoft.de) in April 2012   //
//   Institute of Microbiology (Technical University Munich)     //
//   http://www.arb-home.de/                                     //
//                                                               //
// ============================================================= //

#ifndef AWT_MODULES_HXX
#define AWT_MODULES_HXX

#ifndef AW_BASE_HXX
#include <aw_base.hxx>
#endif

enum awt_reorder_mode {
    ARM_TOP, 
    ARM_UP, 
    ARM_DOWN, 
    ARM_BOTTOM, 
};

enum awt_collect_mode {
    ACM_ADD, 
    ACM_FILL, // aka "add all"
    ACM_REMOVE, 
    ACM_EMPTY, 
};

typedef void(*awt_orderfun)  (AW_window *aww, awt_reorder_mode pos,  AW_CL cl_user);
typedef void(*awt_collectfun)(AW_window *aww, awt_collect_mode what, AW_CL cl_user);

void awt_create_order_buttons(AW_window *aws, awt_orderfun reorder_cb, AW_CL cl_user);
void awt_create_collect_buttons(AW_window *aws, bool collect_rightwards, awt_collectfun collect_cb, AW_CL cl_user);

#else
#error awt_modules.hxx included twice
#endif // AWT_MODULES_HXX