23 #ifndef _LAX_SPLITWINDOW_H
24 #define _LAX_SPLITWINDOW_H
26 #include <lax/anxapp.h>
27 #include <lax/strmanip.h>
28 #include <lax/menuinfo.h>
29 #include <lax/buttondowninfo.h>
30 #include <lax/newwindowobject.h>
45 virtual anXWindow *win() {
return window; }
46 virtual void sync(
int inset,
int mapit=-1);
55 #define SPLIT_WITH_SAME (1<<16)
56 #define SPLIT_WITH_DEFAULT (1<<17)
57 #define SPLIT_WITH_BLANK (1<<18)
58 #define SPLIT_BEVEL (1<<19)
59 #define SPLIT_DRAG_MAPPED (1<<20)
60 #define SPLIT_STACKED_PANES (1<<21)
61 #define SPLIT_TABBED_PANES (1<<22)
62 #define SPLIT_NO_MAXIMIZE (1<<23)
65 #define SPLITW_Split 1
67 #define SPLITW_ChangeTo_Start 101
68 #define SPLITW_ChangeTo_Blank 100
70 #define SPLITW_Swap_With_Mark 4
71 #define SPLITW_UnMaximize 5
72 #define SPLITW_Maximize 5
98 virtual int joinwindow(
int x,
int y,
char keepother);
104 int xx,
int yy,
int ww,
int hh,
int brder,
105 anXWindow *prev,
unsigned long owner,
const char *mes);
107 virtual const char *whattype() {
return "SplitWindow"; }
109 virtual int LBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
110 virtual int LBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
111 virtual int RBDown(
int x,
int y,
unsigned int state,
int count,
const LaxMouse *d);
112 virtual int RBUp(
int x,
int y,
unsigned int state,
const LaxMouse *d);
113 virtual int MouseMove(
int x,
int y,
unsigned int state,
const LaxMouse *d);
114 virtual int CharInput(
unsigned int ch,
const char *buffer,
int len,
unsigned int state,
const LaxKeyboard *d);
115 virtual int FocusOn(
const FocusChangeData *e);
116 virtual int FocusOff(
const FocusChangeData *e);
117 virtual int Event(
const EventData *e,
const char *mes);
118 virtual int MoveResize(
int nx,
int ny,
int nw,
int nh);
119 virtual int Resize(
int nw,
int nh);
122 virtual int AddWindowType(
const char *wtype,
const char *ndesc,
123 unsigned long style,
NewWindowFunc winfunc,
int settodefault=0);
124 virtual void BoxNearPos(
int x,
int y,PlainWinBox *box,
int *l,
int *r,
int *t,
int *b);
125 virtual void PosInBox(
int x,
int y,PlainWinBox *box,
int *xx,
int *yy);
127 virtual int Split(
int c,
int whichside,
anXWindow *fillwindow=NULL);
128 virtual int Join(
int c,
int whichside,
char keepother=0);
129 virtual int Mark(
int c);
131 virtual int Curbox(
int c);
132 virtual int FindBox(
int x,
int y);
136 virtual int Add(
anXWindow *win,
unsigned int whichside=LAX_BOTTOM,
int absorbcount=0);
137 virtual int Add(
const char *type,
unsigned int whichside=LAX_BOTTOM);
139 virtual int GetAffected(
int x,
int y,
const LaxMouse *m);
140 virtual int SetCursor(
const char *curs,LaxMouse *d);
Mon Feb 17 2014 11:52:57, Laxkit