el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

SpinnerWidget Class Reference

SpinnerWidget Class Reference

A spinner widget shows up and down arrows to set a value It automatically sizes itself to fit the screen dimensions when created. More...

#include <SpinnerWidget.h>

Inherits ContainerWidget.

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 _dirty ()
 Overrides.
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

A spinner widget shows up and down arrows to set a value It automatically sizes itself to fit the screen dimensions when created.

Definition at line 13 of file SpinnerWidget.h.


Member Function Documentation

void _adjust (  ) [protected, virtual, inherited]

Override.

Reimplemented from Widget.

Definition at line 36 of file ContainerWidget.cpp.

void _dirty (  ) [protected, virtual]

Overrides.

Reimplemented from Widget.

Definition at line 140 of file SpinnerWidget.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 ContainerWidget.

Definition at line 135 of file SpinnerWidget.cpp.