window.h
changeset 5416 b9a3326da943
parent 5415 60e096e4818d
child 5418 793a133c6d2a
equal deleted inserted replaced
5415:60e096e4818d 5416:b9a3326da943
   262 	const Widget *widgets;
   262 	const Widget *widgets;
   263 	WindowProc *proc;
   263 	WindowProc *proc;
   264 } WindowDesc;
   264 } WindowDesc;
   265 
   265 
   266 enum WindowDefaultFlag {
   266 enum WindowDefaultFlag {
   267 	WDF_STD_TOOLTIPS    =  1, /* use standard routine when displaying tooltips */
   267 	WDF_STD_TOOLTIPS    =   1, /* use standard routine when displaying tooltips */
   268 	WDF_DEF_WIDGET      =  2, /* default widget control for some widgets in the on click event */
   268 	WDF_DEF_WIDGET      =   2, /* default widget control for some widgets in the on click event */
   269 	WDF_STD_BTN         =  4, /* default handling for close and drag widgets (widget no 0 and 1) */
   269 	WDF_STD_BTN         =   4, /* default handling for close and drag widgets (widget no 0 and 1) */
   270 
   270 
   271 	WDF_UNCLICK_BUTTONS = 16, /* Unclick buttons when the window event times out */
   271 	WDF_UNCLICK_BUTTONS =  16, /* Unclick buttons when the window event times out */
   272 	WDF_STICKY_BUTTON   = 32, /* Set window to sticky mode; they are not closed unless closed with 'X' (widget 2) */
   272 	WDF_STICKY_BUTTON   =  32, /* Set window to sticky mode; they are not closed unless closed with 'X' (widget 2) */
   273 	WDF_RESIZABLE       = 64, /* A window can be resized */
   273 	WDF_RESIZABLE       =  64, /* A window can be resized */
       
   274 	WDF_MODAL           = 128, /* The window is a modal child of some other window, meaning the parent is 'inactive' */
   274 };
   275 };
   275 
   276 
   276 /* can be used as x or y coordinates to cause a specific placement */
   277 /* can be used as x or y coordinates to cause a specific placement */
   277 enum WindowDefaultPosition {
   278 enum WindowDefaultPosition {
   278 	WDP_AUTO      = -1, ///< Find a place automatically
   279 	WDP_AUTO      = -1, ///< Find a place automatically
   596 	WF_STICKY            = 1 <<  9,
   597 	WF_STICKY            = 1 <<  9,
   597 
   598 
   598 	WF_DISABLE_VP_SCROLL = 1 << 10,
   599 	WF_DISABLE_VP_SCROLL = 1 << 10,
   599 
   600 
   600 	WF_WHITE_BORDER_ONE  = 1 << 11,
   601 	WF_WHITE_BORDER_ONE  = 1 << 11,
   601 	WF_WHITE_BORDER_MASK = 3 << 11,
   602 	WF_WHITE_BORDER_MASK = 1 << 12 | WF_WHITE_BORDER_ONE,
   602 	WF_SCROLL2           = 1 << 13,
   603 	WF_SCROLL2           = 1 << 13,
   603 };
   604 };
   604 
   605 
   605 /* window.c */
   606 /* window.c */
   606 void CallWindowEventNP(Window *w, int event);
   607 void CallWindowEventNP(Window *w, int event);