build: Merge submodules into repo
This commit is contained in:
parent
540a30f719
commit
4c64279f90
422 changed files with 106715 additions and 8 deletions
58
other/DinguxCommander/src/window.h
Normal file
58
other/DinguxCommander/src/window.h
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
#ifndef _WINDOW_H_
|
||||
#define _WINDOW_H_
|
||||
|
||||
#include <SDL/SDL.h>
|
||||
|
||||
class CWindow
|
||||
{
|
||||
public:
|
||||
|
||||
// Destructor
|
||||
virtual ~CWindow(void);
|
||||
|
||||
// Execute main loop of the window
|
||||
const int execute(void);
|
||||
|
||||
// Return value
|
||||
const int getReturnValue(void) const;
|
||||
|
||||
// Draw window
|
||||
virtual void render(const bool p_focus) const = 0;
|
||||
|
||||
// Is window full screen?
|
||||
virtual const bool isFullScreen(void) const;
|
||||
|
||||
protected:
|
||||
|
||||
// Constructor
|
||||
CWindow(void);
|
||||
|
||||
// Key press management
|
||||
virtual const bool keyPress(const SDL_Event &p_event);
|
||||
|
||||
// Key hold management
|
||||
virtual const bool keyHold(void);
|
||||
|
||||
// Timer tick
|
||||
const bool tick(const Uint8 p_held);
|
||||
|
||||
// Timer for key hold
|
||||
unsigned int m_timer;
|
||||
#if defined(PLATFORM_RG35XX)
|
||||
uint8_t m_lastPressed;
|
||||
#else
|
||||
SDLKey m_lastPressed;
|
||||
#endif
|
||||
|
||||
// Return value
|
||||
int m_retVal;
|
||||
|
||||
private:
|
||||
|
||||
// Forbidden
|
||||
CWindow(const CWindow &p_source);
|
||||
const CWindow &operator =(const CWindow &p_source);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue