10 #ifndef __wmhelper_hpp__ 30 struct box const& i_box,
32 unsigned char const* i_title);
36 struct box const& i_box,
43 unsigned char const* i_title,
44 struct box const& i_box);
142 #define __wmhelper_hpp__ window * m_window
Definition: wmhelper.hpp:102
static void draw_title(unsigned char const *i_title, struct box const &i_box)
draw title on the window
Definition: wmhelper.cpp:119
void close()
closes the window
Definition: wmhelper.cpp:430
unsigned int m_mouse_x
Definition: wmhelper.hpp:103
wmhelper()
constructor
Definition: wmhelper.cpp:22
unsigned int m_mouse_y
Definition: wmhelper.hpp:104
screen drawing routines (no clipping) The draw.h module contians clipping routines.
void maximize()
maximizes the window
Definition: wmhelper.cpp:448
wm_event
current event state
Definition: wmhelper.hpp:84
Definition: wmhelper.hpp:91
void minimize()
minimizes the window
Definition: wmhelper.cpp:471
void capture_resize()
sets capture state to ::CAPTURE_KEYBOARD and event state to ::EVENT_RESIZE
Definition: wmhelper.hpp:128
Definition: wmhelper.hpp:97
window manager helper class
Definition: wmhelper.hpp:15
void capture_move()
sets capture state to ::CAPTURE_KEYBOARD and event state to ::EVENT_MOVE
Definition: wmhelper.hpp:136
enum wm_capture m_capture
Definition: wmhelper.hpp:106
attributes
Definition: window.hpp:24
enum event_response event_key(struct event_key const &i_event)
handle key event
Definition: wmhelper.cpp:492
frame theme
Definition: skin.h:14
static void draw_frame(struct box const &i_box, struct skin_frame const &i_skin, enum foreground const i_fcolor, enum background const i_bcolor)
draw a rectangular frame
Definition: wmhelper.cpp:39
Definition: wmhelper.hpp:99
enum wm_event m_event
Definition: wmhelper.hpp:105
Definition: wmhelper.hpp:92
bool capture() const
gets whether or not the window is in capture mode
Definition: wmhelper.hpp:122
wm_capture
capture state
Definition: wmhelper.hpp:95
background
background color
Definition: screen.h:117
event_response
response
Definition: event.h:14
Definition: wmhelper.hpp:98
static unsigned int const MIN_WIDTH
Definition: wmhelper.hpp:20
enum event_response event_mouse(struct event_mouse const &i_event)
handle mouse event
Definition: wmhelper.cpp:676
virtual ~wmhelper()
destructor
Definition: wmhelper.cpp:32
top level container widget that can be moved and resized by the user
Definition: window.hpp:19
foreground
foreground colors
Definition: screen.h:43
Definition: wmhelper.hpp:86
static unsigned int const MIN_HEIGHT
Definition: wmhelper.hpp:21
static void draw_decorate(struct box const &i_box, enum window::attributes const i_attr, unsigned char const *i_title)
adorns a rectangular area
Definition: wmhelper.cpp:181
void event_system_menu()
pop-up the system menu
Definition: wmhelper.cpp:388
container for a mouse event
Definition: event.h:37
defines a rectangular region
Definition: box.h:12
container for a keyboard event
Definition: event.h:23