In file uta/programmer.doc:

namespace uta class Application : public SigC Object


Inheritance:


Public Fields

SigC::Signal0 <void> timer
50 ms timer tick
SigC::Signal0 <void> timer100
100ms
static SigC::Signal1 <bool, const KeyEvent*, SigC::FixedMarshal<bool, false> > keystroke
key has been pressed signal
static SigC::Signal1 <bool, const MouseEvent*, SigC::FixedMarshal<bool, false> > mousemove
mouse has been moved
static SigC::Signal1 <bool, const ButtonEvent*, SigC::FixedMarshal<bool, false> > mouseclick
mousebutton has been pressed or released
static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > sigterm
static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > iconified
static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > restored
static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > lostfocus
static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > gotfocus
static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > exposed
static SigC::Signal2 <bool,int,int,SigC::FixedMarshal<bool, false> > resized
static Application* Instance

Public Methods

Application(int argc, char **argv)
~Application()
void quit()
virtual void infoMsg(const char*)
void init(int resX, int resY, int bpp, bool fullscreen = false, bool resizeable = false, const Surface* icon=0)
bool modeAvailable(int resX, int resY, int bpp, bool fullscreen, int* true_bpp = NULL)
Check if this video mode is possible
int exec()
virtual int startupProc()
virtual int shutdownProc()
virtual int eventloopProc()
virtual bool handleEvent(const Event* )
static bool startingUp()
static bool shutingDown()
static bool running()
static RootWindow* rootWindow()
static Mouse* mouse()
static Mixer* mixer()
static SoundMapper* soundMapper()
static void useHardwareCursor(bool flag)
static bool hardwareCursor()
static unsigned long int ticks()
static bool isIconified()
static bool hasFocus()
static bool keepAlive()
static unsigned int sleep(unsigned int n)
Sleep for at least n milliseconds
static void setIdleTime(unsigned int)
Set mainloop delay time

Protected Classes

enum

Protected Fields

RootWindow* rootWindow_
Mouse* mouse_
Mixer* mixer_
SoundMapper* soundMapper_
bool shutdown_
bool running_
int argc_
char** argv_
unsigned int ticks_

Protected Methods

bool checkHotKey(const KeyEvent*)
void updateScreen()
void processKeys()
void updateMouse()
int eventloop()

Documentation

Application(int argc, char **argv)

~Application()

void quit()

virtual void infoMsg(const char*)

SigC::Signal0 <void> timer
50 ms timer tick

SigC::Signal0 <void> timer100
100ms

static SigC::Signal1 <bool, const KeyEvent*, SigC::FixedMarshal<bool, false> > keystroke
key has been pressed signal. Emitted whenever a key is pressed. Slots connected to this signal may swallow the event by returning true. If a slot returns false, the rest of the application has a chance to "see" this keystroke as well.

static SigC::Signal1 <bool, const MouseEvent*, SigC::FixedMarshal<bool, false> > mousemove
mouse has been moved

static SigC::Signal1 <bool, const ButtonEvent*, SigC::FixedMarshal<bool, false> > mouseclick
mousebutton has been pressed or released

static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > sigterm

static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > iconified

static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > restored

static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > lostfocus

static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > gotfocus

static SigC::Signal0 <bool,SigC::FixedMarshal<bool, false> > exposed

static SigC::Signal2 <bool,int,int,SigC::FixedMarshal<bool, false> > resized

void init(int resX, int resY, int bpp, bool fullscreen = false, bool resizeable = false, const Surface* icon=0)

bool modeAvailable(int resX, int resY, int bpp, bool fullscreen, int* true_bpp = NULL)
Check if this video mode is possible. If SDL will emulate the requested pixeldepth, true_bpp (if != NULL) will contain the bitdepth of the acutally used video mode.

int exec()

virtual int startupProc()

virtual int shutdownProc()

virtual int eventloopProc()

virtual bool handleEvent(const Event* )

static bool startingUp()

static bool shutingDown()

static bool running()

static RootWindow* rootWindow()

static Mouse* mouse()

static Mixer* mixer()

static SoundMapper* soundMapper()

static Application* Instance

static void useHardwareCursor(bool flag)

static bool hardwareCursor()

static unsigned long int ticks()

static bool isIconified()

static bool hasFocus()

static bool keepAlive()

static unsigned int sleep(unsigned int n)
Sleep for at least n milliseconds. Application can only sleep in multiples of loop delay. (set via SetIdleTime) The actual time sleeped is returned. When sleeping only basic event handling is active, all keystroke- and mouseclick-events are discarded. (not scheduled !) Timer events still occur. The screen refresh is done as usual, sound playback is still active. The mouse still moves, but movement events are not passed to the application itself. --> all user input is ignored, while the application itself is still running.

static void setIdleTime(unsigned int)
Set mainloop delay time. Set the maximum time to spend idle. The default is 25ms which results in a maximum screen refresh rate of 40 frames per second.

bool checkHotKey(const KeyEvent*)

void updateScreen()

void processKeys()

void updateMouse()

enum

int eventloop()

RootWindow* rootWindow_

Mouse* mouse_

Mixer* mixer_

SoundMapper* soundMapper_

bool shutdown_

bool running_

int argc_

char** argv_

unsigned int ticks_


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de