el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

ContainerWidget Class Reference

ContainerWidget Class Reference

Simple container hold widgets side-by-side and draws a border It will expand as needed to hold the widgets. More...

#include <ContainerWidget.h>

Inherits Window.

Inherited by OKCancelDialog, and SpinnerWidget.

Public Member Functions

virtual void setSize (int width, int height)
 Overrides.
virtual void setOffset (int x, int y)
 const Rectangle &Widget::outer() { return _outer; }
virtual void setPadding (int pixels)
 Set the amount of padding between the border and a widget edge.
virtual void draw ()
 Cause the widget to redraw itself if is is dirty or damaged.
void dirty ()
 Mark the widget as needing to be redrawn.
void damage ()
 Mark the widget as having changed dimensions or location.
GraphicsDisplay * display ()
 Convenience method.

Protected Member Functions

virtual void _adjust ()
 Override.
virtual void _draw ()
 Override to draw all the children.
bool _isEventTarget (Event e)
 Methods to help with event handling.

Detailed Description

Simple container hold widgets side-by-side and draws a border It will expand as needed to hold the widgets.

Definition at line 11 of file ContainerWidget.h.


Member Function Documentation

void _adjust (  ) [protected, virtual]

Override.

Reimplemented from Widget.

Definition at line 36 of file ContainerWidget.cpp.

void _draw (  ) [protected, virtual, inherited]

Override to draw all the children.

Definition at line 46 of file Window.cpp.

bool _isEventTarget ( Event  e ) [protected, inherited]

Methods to help with event handling.

Definition at line 188 of file Widget.cpp.

void damage (  ) [inherited]

Mark the widget as having changed dimensions or location.

Definition at line 253 of file Widget.cpp.

void dirty (  ) [inherited]

Mark the widget as needing to be redrawn.

Definition at line 235 of file Widget.cpp.

GraphicsDisplay * display (  ) [inherited]

Convenience method.

Definition at line 274 of file Widget.cpp.

void draw (  ) [virtual, inherited]

Cause the widget to redraw itself if is is dirty or damaged.

Definition at line 144 of file Widget.cpp.

void setOffset ( int  x,
int  y 
) [virtual, inherited]

const Rectangle &Widget::outer() { return _outer; }

const Rectangle &Widget::inner() { return _inner; }

Definition at line 89 of file Widget.cpp.

void setPadding ( int  pixels ) [virtual, inherited]

Set the amount of padding between the border and a widget edge.

Definition at line 127 of file Widget.cpp.

void setSize ( int  width,
int  height 
) [virtual]

Overrides.

Reimplemented from Widget.

Reimplemented in SpinnerWidget.

Definition at line 17 of file ContainerWidget.cpp.