Classes | |
class | SingleShot |
class | TimerBlock |
class | VarBlock |
class | Application |
Toplevel application class. More... | |
class | BaseFactory |
class | Factory |
class | Audio |
implementations e.g. NullAudio, SDLMixer etc More... | |
class | NullAudio |
class | Box |
class | HBox |
class | VBox |
class | ButtonGroup |
class | Button |
Button Class. More... | |
class | Cascade |
class | CascadeLayoutItemValue |
class | CascadeLayoutIterator |
class | CascadeLayout |
class | Color |
using 8-bits per red, green, blue, and alpha channels More... | |
class | Time |
A time class to escape SDL's 2^32 ms epoch limitations. More... | |
class | Dialog |
class | Display |
class | Enum |
typesafe enumaration like class More... | |
class | Event |
class | TimerEvent |
class | PaintEvent |
class | ResizeEvent |
class | MoveEvent |
class | LayoutHintEvent |
class | ShowEvent |
class | HideEvent |
class | ChildEvent |
class | CustomEvent |
class | InputEvent |
class | MouseEvent |
class | WheelEvent |
class | KeyEvent |
class | FocusEvent |
class | CloseEvent |
class | FlagMap |
maps the flags of the underlying system to ours More... | |
class | W |
class | FocusData |
class | Font |
class | Frame |
class | Grid |
class | MatrixLayoutItemValue |
class | GridLayoutIterator |
class | GridLayout |
class | Label |
Display a text or pixmap message on screen. More... | |
class | LayoutIteratorInterface |
class | NullLayoutIterator |
class | LayoutIterator |
class | LayoutItem |
all layoutItems should inherit from this. It's their interface More... | |
class | Layout |
handles the layout of widgets More... | |
class | NullClass |
class | LayoutItemCompound |
class | LayoutStdContainerIterator |
class | LayoutStdContainer |
class | BoxLayoutItemValue |
class | BoxLayoutIterator |
class | BoxLayout |
class | HBoxLayout |
class | VBoxLayout |
class | Matrix |
class | Object |
class | Pen |
class | Brush |
class | Painter |
class that allows drawing graphics primitives onto a Pixmap More... | |
class | PixmapOf |
used as a base for the Pixmap and the Display More... | |
class | Pixmap |
class | Point |
Class to handle x,y - points on the screen. More... | |
class | PushButton |
PushButton Class. More... | |
class | Rect |
Rectangle class. Has corners, fill, etc. More... | |
class | Region |
Region specifies a 'working area' of the screen. More... | |
class | RootWindow |
class | SDLColor |
class | SDLDisplay |
interface to the underlying SDL_VideoSurface More... | |
class | SDLEvent |
class | SDLInput |
useful for transforming SDL events to normal Event More... | |
class | SDLMixer |
Wrapper class around the audio mixer. More... | |
class | SDLPalette |
class | SDLPixelFormat |
class | SDLRect |
class | SDLSurface |
class | SDLTimer |
class | Singleton |
class | Size |
class | SizePolicy |
class | Sound |
class | Spacer |
class | HSpacer |
class | VSpacer |
class | Timer |
Timer handles known events that must happen (fairly) regularly. More... | |
class | ToggleButton |
ToggleButton Class. More... | |
class | Trace |
class | Widget |
class | Window |
class | Signal01 |
class | Signal012 |
class | Signal012M |
class | WVarBase |
Watched variable avoids the need for get/set methods. More... | |
class | WVar |
read only More... | |
class | WVar< VARTYPE, WVarBase< int >::RW > |
read write specialization More... | |
Namespaces | |
namespace | SDL |
Typedefs | |
typedef LayoutItemCompound< CascadeLayoutItemValue > | CascadeLayoutItemCompound |
typedef std::list< CascadeLayoutItemCompound > | CascadeLayoutItemList |
typedef LayoutStdContainer< CascadeLayoutItemList > | CascadeLayoutBase |
typedef std::list< Widget * > | WidgetList |
typedef LayoutItemCompound< MatrixLayoutItemValue > | MatrixLayoutItemCompound |
typedef Matrix< MatrixLayoutItemCompound > | MatrixLayoutItemMatrix |
typedef LayoutStdContainer< MatrixLayoutItemMatrix > | GridLayoutBase |
typedef LayoutItemCompound< BoxLayoutItemValue > | BoxLayoutItemCompound |
typedef std::list< BoxLayoutItemCompound > | BoxLayoutItemList |
typedef LayoutStdContainer< BoxLayoutItemList > | BoxLayoutBase |
typedef std::vector< Point > | PointArray |
typedef std::vector< Rect > | RectArray |
Enumerations | |
enum | AlignmentFlags { AlignAuto = 0, AlignLeft = 1 << 0, AlignRight = 1 << 1, AlignHCenter = 1 << 2, AlignJustify = 1 << 3, AlignTop = 1 << 4, AlignBottom = 1 << 5, AlignVCenter = 1 << 6, AlignCenter = AlignHCenter | AlignVCenter, AlignHorizontal_Mask = (AlignJustify << 1) - 1, AlignVertical_Mask = (AlignVCenter << 1) - 1 & ~AlignHorizontal_Mask } |
enum | BackgroundImageFlags { Unscaled = 0, Scaled = 1 << 0, Tiled = 1 << 1 } |
enum | ButtonState { NoButton = 0, LeftButton = 1 << 0, RightButton = 1 << 1, MidButton = 1 << 2, ShiftButton = 1 << 3, ControlButton = 1 << 4, AltButton = 1 << 5, MetaButton = 1 << 6, Keypad = 1 << 7, MouseButtonMask = (MidButton << 1) - 1, KeyButtonMask = (Keypad << 1) - 1 & ~MouseButtonMask } |
enum | Key { Key_AltBase = 500, Key_Unknown = SDLK_UNKNOWN, Key_Escape = SDLK_ESCAPE, Key_Tab = SDLK_TAB, Key_Backtab = Key_AltBase + SDLK_TAB, Key_Backspace = SDLK_BACKSPACE, Key_Return = SDLK_RETURN, Key_Enter = SDLK_RETURN, Key_Insert = SDLK_INSERT, Key_Delete = SDLK_DELETE, Key_Pause = SDLK_PAUSE, Key_Print = SDLK_PRINT, Key_SysReq = SDLK_SYSREQ, Key_Home = SDLK_HOME, Key_End = SDLK_END, Key_Left = SDLK_LEFT, Key_Up = SDLK_UP, Key_Right = SDLK_RIGHT, Key_Down = SDLK_DOWN, Key_Prior = SDLK_PAGEUP, Key_Next = SDLK_PAGEDOWN, Key_Shift = SDLK_LSHIFT, Key_Shift_L = SDLK_LSHIFT, Key_Shift_R = SDLK_RSHIFT, Key_Control = SDLK_LCTRL, Key_Control_L = SDLK_LCTRL, Key_Control_R = SDLK_RCTRL, Key_Alt = SDLK_LALT, Key_Alt_L = SDLK_LALT, Key_Alt_R = SDLK_RALT, Key_Meta = SDLK_LMETA, Key_Meta_L = SDLK_LMETA, Key_Meta_R = SDLK_RMETA, Key_CapsLock = SDLK_CAPSLOCK, Key_NumLock = SDLK_NUMLOCK, Key_ScrollLock = SDLK_SCROLLOCK, Key_Clear = SDLK_CLEAR, Key_F1 = SDLK_F1, Key_F2 = SDLK_F2, Key_F3 = SDLK_F3, Key_F4 = SDLK_F4, Key_F5 = SDLK_F5, Key_F6 = SDLK_F6, Key_F7 = SDLK_F7, Key_F8 = SDLK_F8, Key_F9 = SDLK_F9, Key_F10 = SDLK_F10, Key_F11 = SDLK_F11, Key_F12 = SDLK_F12, Key_F13 = SDLK_F13, Key_F14 = SDLK_F14, Key_F15 = SDLK_F15, Key_Super_L = SDLK_LSUPER, Key_Super_R = SDLK_RSUPER, Key_Menu = SDLK_MENU, Key_Help = SDLK_HELP, Key_Space = SDLK_SPACE, Key_Exclam = SDLK_EXCLAIM, Key_QuoteDbl = SDLK_QUOTEDBL, Key_NumberSign = SDLK_HASH, Key_Dollar = SDLK_DOLLAR, Key_Ampersand = SDLK_AMPERSAND, Key_Apostrophe = SDLK_QUOTE, Key_ParenLeft = SDLK_LEFTPAREN, Key_ParenRight = SDLK_RIGHTPAREN, Key_Asterisk = SDLK_ASTERISK, Key_Plus = SDLK_PLUS, Key_Comma = SDLK_COMMA, Key_Minus = SDLK_MINUS, Key_Period = SDLK_PERIOD, Key_Slash = SDLK_SLASH, Key_0 = SDLK_0, Key_1 = SDLK_1, Key_2 = SDLK_2, Key_3 = SDLK_3, Key_4 = SDLK_4, Key_5 = SDLK_5, Key_6 = SDLK_6, Key_7 = SDLK_7, Key_8 = SDLK_8, Key_9 = SDLK_9, Key_Colon = SDLK_COLON, Key_Semicolon = SDLK_SEMICOLON, Key_Less = SDLK_LESS, Key_Equal = SDLK_EQUALS, Key_Greater = SDLK_GREATER, Key_Question = SDLK_QUESTION, Key_At = SDLK_AT, Key_A = SDLK_a, Key_B = SDLK_b, Key_C = SDLK_c, Key_D = SDLK_d, Key_E = SDLK_e, Key_F = SDLK_f, Key_G = SDLK_g, Key_H = SDLK_h, Key_I = SDLK_i, Key_J = SDLK_j, Key_K = SDLK_k, Key_L = SDLK_l, Key_M = SDLK_m, Key_N = SDLK_n, Key_O = SDLK_o, Key_P = SDLK_p, Key_Q = SDLK_q, Key_R = SDLK_r, Key_S = SDLK_s, Key_T = SDLK_t, Key_U = SDLK_u, Key_V = SDLK_v, Key_W = SDLK_w, Key_X = SDLK_x, Key_Y = SDLK_y, Key_Z = SDLK_z, Key_BracketLeft = SDLK_LEFTBRACKET, Key_Backslash = SDLK_BACKSLASH, Key_BracketRight = SDLK_RIGHTBRACKET, Key_Underscore = SDLK_UNDERSCORE, Key_QuoteLeft = SDLK_BACKQUOTE, Key_KPBase = 1000, Key_KP_Period = Key_KPBase + SDLK_KP_PERIOD, Key_KP_Divide = Key_KPBase + SDLK_KP_DIVIDE, Key_KP_Multiply = Key_KPBase + SDLK_KP_MULTIPLY, Key_KP_Enter = Key_KPBase + SDLK_KP_ENTER, Key_KP_Equal = Key_KPBase + SDLK_KP_EQUALS, Key_KP_Minus = Key_KPBase + SDLK_KP_MINUS, Key_KP_Plus = Key_KPBase + SDLK_KP_PLUS, Key_KP_0 = Key_KPBase + SDLK_KP0, Key_KP_1 = Key_KPBase + SDLK_KP1, Key_KP_2 = Key_KPBase + SDLK_KP2, Key_KP_3 = Key_KPBase + SDLK_KP3, Key_KP_4 = Key_KPBase + SDLK_KP4, Key_KP_5 = Key_KPBase + SDLK_KP5, Key_KP_6 = Key_KPBase + SDLK_KP6, Key_KP_7 = Key_KPBase + SDLK_KP7, Key_KP_8 = Key_KPBase + SDLK_KP8, Key_KP_9 = Key_KPBase + SDLK_KP9 } |
Functions | |
static int | preferredWidth (const LayoutItem *li, bool expand) |
static int | preferredHeight (const LayoutItem *li, bool expand) |
std::ostream & | operator<< (std::ostream &s, const Color &c) |
Operator for output streams. | |
std::ostream & | operator<< (std::ostream &s, const Font &f) |
Operator for output streams. | |
void | adjust_cell_size (int li_size, int sum_size, int cell_span, int edge, std::vector< int > &max_size) |
std::ostream & | operator<< (std::ostream &s, const Object *obj) |
std::ostream & | operator<< (std::ostream &s, const Object &ref) |
std::ostream & | operator<< (std::ostream &s, const Event *e) |
std::ostream & | operator<< (std::ostream &s, const Event &e) |
std::ostream & | operator<< (std::ostream &s, const Point &p) |
Print a point to a stream. | |
std::ostream & | operator<< (std::ostream &s, const Size &size) |
std::ostream & | operator<< (std::ostream &s, const Rect &p) |
Print a rectangle to a stream, formatted as (x,y,w,h). | |
std::ostream & | operator<< (std::ostream &s, const Region &r) |
stream region output for debugging | |
static Mix_Chunk * | clone_chunk (const Mix_Chunk *chunk_p) |
static SDL_Surface * | deconst (const SDLSurface src) |
static int | safe_blit (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect) |
static Uint32 | timer_callback (Uint32 interval, void *param) |
static void | finished_chunk (Audio::Chunk *c) |
static int | stderr_print (const char *msg,...) |
static void | do_nothing (const char *relay, const char *msg,...) |
static Trace & | getTrace (const char *filename, int line) |
static bool | isWidget (Object *w) |
template<typename ITERATOR> | |
static Widget * | findNextWidget (ITERATOR start, ITERATOR finish) |
static void | postLayoutHintEventRecursively (Widget *w) |
Variables | |
static const unsigned char | BultinFontData [] |
static const unsigned int | BultinFontDataSize |
Definition at line 32 of file cascadelayout.h.
typedef std::list<CascadeLayoutItemCompound> Wt::CascadeLayoutItemList |
Definition at line 33 of file cascadelayout.h.
Definition at line 42 of file cascadelayout.h.
typedef std::list<Widget *> Wt::WidgetList |
Definition at line 28 of file focusdata.h.
Definition at line 68 of file gridlayout.h.
Definition at line 69 of file gridlayout.h.
Definition at line 70 of file gridlayout.h.
typedef std::list<BoxLayoutItemCompound> Wt::BoxLayoutItemList |
The extra space is first divided between layout items with a stretch value. If there is none then the space is divided among expanding layout items. If there is none then space is divided among layout items that have the mayGrow flag set.
typedef std::vector<Point> Wt::PointArray |
typedef std::vector<Rect> Wt::RectArray |
enum Wt::AlignmentFlags |
AlignAuto | |
AlignLeft | |
AlignRight | |
AlignHCenter | |
AlignJustify | |
AlignTop | |
AlignBottom | |
AlignVCenter | |
AlignCenter | |
AlignHorizontal_Mask | |
AlignVertical_Mask |
Definition at line 30 of file flags.h.
00030 { 00031 AlignAuto = 0, 00032 AlignLeft = 1 << 0, 00033 AlignRight = 1 << 1, 00034 AlignHCenter = 1 << 2, 00035 AlignJustify = 1 << 3, 00036 00037 AlignTop = 1 << 4, 00038 AlignBottom = 1 << 5, 00039 AlignVCenter = 1 << 6, 00040 00041 AlignCenter = AlignHCenter | AlignVCenter, 00042 00043 AlignHorizontal_Mask = (AlignJustify << 1) - 1, 00044 AlignVertical_Mask = (AlignVCenter << 1) - 1 & ~AlignHorizontal_Mask 00045 } AlignmentFlags;
enum Wt::ButtonState |
NoButton | |
LeftButton | |
RightButton | |
MidButton | |
ShiftButton | |
ControlButton | |
AltButton | |
MetaButton | |
Keypad | |
MouseButtonMask | |
KeyButtonMask |
Definition at line 105 of file flags.h.
00105 { 00106 NoButton = 0, 00107 LeftButton = 1 << 0, 00108 RightButton = 1 << 1, 00109 MidButton = 1 << 2, 00110 ShiftButton = 1 << 3, 00111 ControlButton = 1 << 4, 00112 AltButton = 1 << 5, 00113 MetaButton = 1 << 6, 00114 Keypad = 1 << 7, 00115 MouseButtonMask = (MidButton << 1) - 1, 00116 KeyButtonMask = (Keypad << 1) - 1 & ~MouseButtonMask 00117 } ButtonState;
enum Wt::Key |
Definition at line 119 of file flags.h.
00119 { 00120 Key_AltBase = 500, 00121 Key_Unknown = SDLK_UNKNOWN, 00122 Key_Escape = SDLK_ESCAPE, 00123 Key_Tab = SDLK_TAB, 00124 Key_Backtab = Key_AltBase + SDLK_TAB, 00125 Key_Backspace = SDLK_BACKSPACE, 00126 Key_Return = SDLK_RETURN, 00127 Key_Enter = SDLK_RETURN, 00128 Key_Insert = SDLK_INSERT, 00129 Key_Delete = SDLK_DELETE, 00130 Key_Pause = SDLK_PAUSE, 00131 Key_Print = SDLK_PRINT, 00132 Key_SysReq = SDLK_SYSREQ, 00133 Key_Home = SDLK_HOME, 00134 Key_End = SDLK_END, 00135 Key_Left = SDLK_LEFT, 00136 Key_Up = SDLK_UP, 00137 Key_Right = SDLK_RIGHT, 00138 Key_Down = SDLK_DOWN, 00139 Key_Prior = SDLK_PAGEUP, 00140 Key_Next = SDLK_PAGEDOWN, 00141 Key_Shift = SDLK_LSHIFT, 00142 Key_Shift_L = SDLK_LSHIFT, 00143 Key_Shift_R = SDLK_RSHIFT, 00144 Key_Control = SDLK_LCTRL, 00145 Key_Control_L = SDLK_LCTRL, 00146 Key_Control_R = SDLK_RCTRL, 00147 Key_Alt = SDLK_LALT, 00148 Key_Alt_L = SDLK_LALT, 00149 Key_Alt_R = SDLK_RALT, 00150 Key_Meta = SDLK_LMETA, 00151 Key_Meta_L = SDLK_LMETA, 00152 Key_Meta_R = SDLK_RMETA, 00153 Key_CapsLock = SDLK_CAPSLOCK, 00154 Key_NumLock = SDLK_NUMLOCK, 00155 Key_ScrollLock = SDLK_SCROLLOCK, 00156 Key_Clear = SDLK_CLEAR, 00157 Key_F1 = SDLK_F1, 00158 Key_F2 = SDLK_F2, 00159 Key_F3 = SDLK_F3, 00160 Key_F4 = SDLK_F4, 00161 Key_F5 = SDLK_F5, 00162 Key_F6 = SDLK_F6, 00163 Key_F7 = SDLK_F7, 00164 Key_F8 = SDLK_F8, 00165 Key_F9 = SDLK_F9, 00166 Key_F10 = SDLK_F10, 00167 Key_F11 = SDLK_F11, 00168 Key_F12 = SDLK_F12, 00169 Key_F13 = SDLK_F13, 00170 Key_F14 = SDLK_F14, 00171 Key_F15 = SDLK_F15, 00172 Key_Super_L = SDLK_LSUPER, 00173 Key_Super_R = SDLK_RSUPER, 00174 Key_Menu = SDLK_MENU, 00175 Key_Help = SDLK_HELP, 00176 Key_Space = SDLK_SPACE, 00177 //Key_Any 00178 Key_Exclam = SDLK_EXCLAIM, 00179 Key_QuoteDbl = SDLK_QUOTEDBL, 00180 Key_NumberSign = SDLK_HASH, 00181 Key_Dollar = SDLK_DOLLAR, 00182 //Key_Percent 00183 Key_Ampersand = SDLK_AMPERSAND, 00184 Key_Apostrophe = SDLK_QUOTE, 00185 Key_ParenLeft = SDLK_LEFTPAREN, 00186 Key_ParenRight = SDLK_RIGHTPAREN, 00187 Key_Asterisk = SDLK_ASTERISK, 00188 Key_Plus = SDLK_PLUS, 00189 Key_Comma = SDLK_COMMA, 00190 Key_Minus = SDLK_MINUS, 00191 Key_Period = SDLK_PERIOD, 00192 Key_Slash = SDLK_SLASH, 00193 Key_0 = SDLK_0, 00194 Key_1 = SDLK_1, 00195 Key_2 = SDLK_2, 00196 Key_3 = SDLK_3, 00197 Key_4 = SDLK_4, 00198 Key_5 = SDLK_5, 00199 Key_6 = SDLK_6, 00200 Key_7 = SDLK_7, 00201 Key_8 = SDLK_8, 00202 Key_9 = SDLK_9, 00203 Key_Colon = SDLK_COLON, 00204 Key_Semicolon = SDLK_SEMICOLON, 00205 Key_Less = SDLK_LESS, 00206 Key_Equal = SDLK_EQUALS, 00207 Key_Greater = SDLK_GREATER, 00208 Key_Question = SDLK_QUESTION, 00209 Key_At = SDLK_AT, 00210 Key_A = SDLK_a, 00211 Key_B = SDLK_b, 00212 Key_C = SDLK_c, 00213 Key_D = SDLK_d, 00214 Key_E = SDLK_e, 00215 Key_F = SDLK_f, 00216 Key_G = SDLK_g, 00217 Key_H = SDLK_h, 00218 Key_I = SDLK_i, 00219 Key_J = SDLK_j, 00220 Key_K = SDLK_k, 00221 Key_L = SDLK_l, 00222 Key_M = SDLK_m, 00223 Key_N = SDLK_n, 00224 Key_O = SDLK_o, 00225 Key_P = SDLK_p, 00226 Key_Q = SDLK_q, 00227 Key_R = SDLK_r, 00228 Key_S = SDLK_s, 00229 Key_T = SDLK_t, 00230 Key_U = SDLK_u, 00231 Key_V = SDLK_v, 00232 Key_W = SDLK_w, 00233 Key_X = SDLK_x, 00234 Key_Y = SDLK_y, 00235 Key_Z = SDLK_z, 00236 Key_BracketLeft = SDLK_LEFTBRACKET, 00237 Key_Backslash = SDLK_BACKSLASH, 00238 Key_BracketRight = SDLK_RIGHTBRACKET, 00239 //Key_AsciiCircum 00240 Key_Underscore = SDLK_UNDERSCORE, 00241 Key_QuoteLeft = SDLK_BACKQUOTE, 00242 00243 //keypad 00244 Key_KPBase = 1000, 00245 Key_KP_Period = Key_KPBase + SDLK_KP_PERIOD, 00246 Key_KP_Divide = Key_KPBase + SDLK_KP_DIVIDE, 00247 Key_KP_Multiply = Key_KPBase + SDLK_KP_MULTIPLY, 00248 Key_KP_Enter = Key_KPBase + SDLK_KP_ENTER, 00249 Key_KP_Equal = Key_KPBase + SDLK_KP_EQUALS, 00250 Key_KP_Minus = Key_KPBase + SDLK_KP_MINUS, 00251 Key_KP_Plus = Key_KPBase + SDLK_KP_PLUS, 00252 Key_KP_0 = Key_KPBase + SDLK_KP0, 00253 Key_KP_1 = Key_KPBase + SDLK_KP1, 00254 Key_KP_2 = Key_KPBase + SDLK_KP2, 00255 Key_KP_3 = Key_KPBase + SDLK_KP3, 00256 Key_KP_4 = Key_KPBase + SDLK_KP4, 00257 Key_KP_5 = Key_KPBase + SDLK_KP5, 00258 Key_KP_6 = Key_KPBase + SDLK_KP6, 00259 Key_KP_7 = Key_KPBase + SDLK_KP7, 00260 Key_KP_8 = Key_KPBase + SDLK_KP8, 00261 Key_KP_9 = Key_KPBase + SDLK_KP9 00262 } Key;
static int Wt::preferredWidth | ( | const LayoutItem * | li, | |
bool | expand | |||
) | [static] |
Definition at line 60 of file cascadelayout.cpp.
References Wt::LayoutItem::minimumSize(), Wt::LayoutItem::sizeHint(), and Wt::Size::width().
Referenced by Wt::CascadeLayout::setGeometry().
Here is the call graph for this function:
static int Wt::preferredHeight | ( | const LayoutItem * | li, | |
bool | expand | |||
) | [static] |
Definition at line 64 of file cascadelayout.cpp.
References Wt::Size::height(), Wt::LayoutItem::minimumSize(), and Wt::LayoutItem::sizeHint().
Referenced by Wt::CascadeLayout::setGeometry().
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Color & | c | |||
) |
Operator for output streams.
Definition at line 561 of file color.cpp.
References Wt::SDLColor::alpha(), Wt::SDLColor::blue(), Wt::SDLColor::green(), and Wt::SDLColor::red().
00561 { 00562 s << "(R"<< c.red() <<" G"<< c.green() <<" B"<< c.blue() <<" A"<< c.alpha() <<")"; 00563 return s; 00564 }
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Font & | f | |||
) |
Operator for output streams.
Definition at line 443 of file font.cpp.
References Wt::Font::description().
Here is the call graph for this function:
void Wt::adjust_cell_size | ( | int | li_size, | |
int | sum_size, | |||
int | cell_span, | |||
int | edge, | |||
std::vector< int > & | max_size | |||
) |
Definition at line 26 of file gridlayout.cpp.
Referenced by Wt::GridLayout::validate().
00027 { 00028 const int delta = li_size - sum_size; 00029 if (delta > 0) { 00030 // adjust all min width 00031 const int div = delta / cell_span; 00032 const int modulo = delta % cell_span; 00033 00034 for (int d = 0; d < cell_span; d++) { 00035 max_size[edge + d] += div + ((d < modulo) ? 1 : 0); 00036 } 00037 } 00038 }
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Object * | obj | |||
) |
Definition at line 209 of file object.cpp.
References Wt::Object::name(), and Wt::Object::parent().
00209 { 00210 const std::string& nm = (obj) ? obj->name() : "(null)"; 00211 s << "object: " << nm << " (" 00212 << static_cast<const void *>(obj) << ") parent: "; 00213 const Object *parent = (obj) ? obj->parent() : 0; 00214 if (parent) 00215 s << parent->name() << 00216 " (" << (void *) parent << ")"; 00217 else 00218 s << "none (0)"; 00219 00220 return s; 00221 }
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Object & | ref | |||
) |
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Event * | e | |||
) |
Definition at line 227 of file object.cpp.
References Wt::Event::type().
00227 { 00228 s << "Event " << static_cast<const void *>(e) << " type: " << e->type(); 00229 return s; 00230 }
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Event & | e | |||
) |
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Point & | p | |||
) |
Print a point to a stream.
Definition at line 177 of file rect.cpp.
References Wt::Point::x(), and Wt::Point::y().
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Size & | size | |||
) |
Definition at line 182 of file rect.cpp.
References Wt::Size::height(), and Wt::Size::width().
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Rect & | r | |||
) |
Print a rectangle to a stream, formatted as (x,y,w,h).
Definition at line 187 of file rect.cpp.
References Wt::SDLRect::height(), Wt::SDLRect::width(), Wt::SDLRect::x(), and Wt::SDLRect::y().
00187 { 00188 s << "(" << r.x() << "," << r.y() << "," << r.width() << "," << r.height() << ")"; 00189 return s; 00190 }
Here is the call graph for this function:
std::ostream & Wt::operator<< | ( | std::ostream & | s, | |
const Region & | r | |||
) |
stream region output for debugging
Definition at line 1006 of file region.cpp.
References Wt::Region::boundingRect(), and Wt::Region::rects().
01006 { 01007 const RectArray& ra = r.rects(); 01008 const int n = ra.size(); 01009 01010 s << "Region extents: " << r.boundingRect() << std::endl; 01011 for (int i = 0; i < n; i++) { 01012 s << " rect[" << i << "] = " << ra[i] << std::endl; 01013 } 01014 return s; 01015 }
Here is the call graph for this function:
static Mix_Chunk* Wt::clone_chunk | ( | const Mix_Chunk * | chunk_p | ) | [static] |
Definition at line 321 of file sdlmixer.cpp.
References trace.
Referenced by Wt::SDLMixer::Chunk::clone(), and Wt::SDLMixer::Chunk::detach().
00321 { 00322 Mix_Chunk *new_chunk_p = static_cast<Mix_Chunk *>(malloc(sizeof(Mix_Chunk))); 00323 *new_chunk_p = *chunk_p; 00324 new_chunk_p->allocated = 0; 00325 trace("sdlmixer", "clone_chunk %p --> %p\n", chunk_p, new_chunk_p); 00326 return new_chunk_p; 00327 }
static SDL_Surface* Wt::deconst | ( | const SDLSurface | src | ) | [static] |
Definition at line 60 of file sdlsurface.cpp.
Referenced by Wt::SDLSurface::blit(), Wt::SDLSurface::blitAlphaCopy(), Wt::SDLSurface::clipRect(), and Wt::SDLSurface::scale_surface().
00060 { 00061 //SDL breakage 00062 return const_cast<SDL_Surface *> 00063 (static_cast<const SDL_Surface *>(src)); 00064 }
static int Wt::safe_blit | ( | SDL_Surface * | src, | |
SDL_Rect * | srcrect, | |||
SDL_Surface * | dst, | |||
SDL_Rect * | dstrect | |||
) | [static] |
Definition at line 208 of file sdlsurface.cpp.
Referenced by Wt::SDLSurface::blit().
00209 { 00210 int err; 00211 while ((err = SDL_BlitSurface(src, srcrect, dst, dstrect)) == -2) { 00212 while (SDL_LockSurface(src) < 0) 00213 //SDL_Delay(10); 00214 /// \todo Write image pixels to image->pixels 00215 SDL_UnlockSurface(src); 00216 } 00217 assert(!err); 00218 return err; 00219 }
static Uint32 Wt::timer_callback | ( | Uint32 | interval, | |
void * | param | |||
) | [static] |
Timer callback. Executed by timer (other) thread It is safe since we only pushing to SDL event queue. At that stage SDLTimer object is not dead. However it is possible (legal) for the SDLTimer to die after this callback invocation
Definition at line 35 of file sdltimer.cpp.
References Wt::SDLEvent::push(), Wt::SDLEvent::Time, and trace.
Referenced by Wt::SDLTimer::scheduleNext().
00035 { 00036 SDL_Event event; 00037 00038 event.type = SDLEvent::Time; 00039 event.user.code = 0; 00040 event.user.data1 = new 00041 SDLTimer::Event(* static_cast<SDLTimer::Event *>(param)); 00042 event.user.data2 = 0; 00043 00044 trace("sdltimer", "timer_callback called\n"); 00045 00046 SDLEvent::push(&event); 00047 00048 return interval; 00049 }
Here is the call graph for this function:
static void Wt::finished_chunk | ( | Audio::Chunk * | c | ) | [static] |
static int Wt::stderr_print | ( | const char * | msg, | |
... | ||||
) | [inline, static] |
static void Wt::do_nothing | ( | const char * | relay, | |
const char * | msg, | |||
... | ||||
) | [inline, static] |
static bool Wt::isWidget | ( | Object * | w | ) | [static] |
static Widget* Wt::findNextWidget | ( | ITERATOR | start, | |
ITERATOR | finish | |||
) | [static] |
Definition at line 699 of file widget.cpp.
References Wt::FocusEvent::Tab.
Referenced by Wt::Widget::focusNextPrevChild().
00699 { 00700 for (ITERATOR it = start; it != finish; ++it) { 00701 Widget *w = dynamic_cast<Widget *>(*it); 00702 if (w && w->isFocusEnabled(FocusEvent::Tab)) 00703 return w; 00704 } 00705 return 0; 00706 }
static void Wt::postLayoutHintEventRecursively | ( | Widget * | w | ) | [static] |
Definition at line 818 of file widget.cpp.
References Wt::Object::children(), and Wt::Application::postEvent().
Referenced by Wt::Widget::hiddenChanged().
00818 { 00819 for (Object::List::const_iterator child(w->children().begin()), 00820 end(w->children().end()); child != end; ++child) { 00821 Widget* ww = dynamic_cast<Widget *>(*child); 00822 // guard against a non widget (e.g. layout) child. 00823 if (ww) { 00824 postLayoutHintEventRecursively(ww); 00825 } 00826 } 00827 Application::postEvent(w, new LayoutHintEvent()); 00828 }
Here is the call graph for this function:
const unsigned char Wt::BultinFontData[] [static] |
const unsigned int Wt::BultinFontDataSize [static] |
Initial value:
sizeof(BultinFontData) / sizeof(BultinFontData[0])
Definition at line 264 of file builtin_font.h.
Referenced by Wt::Font::open_default_font().
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.