2011-10-20 10:17:00 +02:00
|
|
|
/**
|
|
|
|
*******************************************************************************
|
2011-12-04 13:34:24 +01:00
|
|
|
* @file gui.h
|
2011-10-20 10:17:00 +02:00
|
|
|
* @brief Gui abstraction layer (header)
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @date 20/10/2011
|
|
|
|
* @par Project
|
|
|
|
* ewol
|
|
|
|
*
|
|
|
|
* @par Copyright
|
|
|
|
* Copyright 2011 Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* This software is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY.
|
|
|
|
*
|
|
|
|
* Licence summary :
|
|
|
|
* You can modify and redistribute the sources code and binaries.
|
|
|
|
* You can send me the bug-fix
|
|
|
|
*
|
|
|
|
* Term of the licence in in the file licence.txt.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GUI_ABSTRACTION_H__
|
|
|
|
#define __GUI_ABSTRACTION_H__
|
|
|
|
|
2011-11-23 11:37:38 +01:00
|
|
|
#include <etk/Types.h>
|
2011-12-02 17:23:45 +01:00
|
|
|
#include <ewol/Windows.h>
|
2011-10-20 10:17:00 +02:00
|
|
|
|
|
|
|
namespace guiAbstraction
|
|
|
|
{
|
|
|
|
void Init(int32_t argc, char *argv[]);
|
|
|
|
void Run(void);
|
2011-12-02 17:23:45 +01:00
|
|
|
void Stop(void);
|
2011-10-20 10:17:00 +02:00
|
|
|
void UnInit(void);
|
2011-12-02 17:23:45 +01:00
|
|
|
void SetDisplayOnWindows(ewol::Windows * newOne);
|
|
|
|
void ChangeSize(int32_t w, int32_t h);
|
|
|
|
void ChangePos(int32_t x, int32_t y);
|
|
|
|
void GetAbsPos(int32_t & x, int32_t & y);
|
|
|
|
void StartResizeSystem(void);
|
|
|
|
void StartMoveSystem(void);
|
|
|
|
bool IsPressedInput(int32_t inputID);
|
2011-12-09 13:14:30 +01:00
|
|
|
void ForceRedrawAll(void);
|
2011-10-20 10:17:00 +02:00
|
|
|
};
|
|
|
|
|
2011-12-04 13:34:24 +01:00
|
|
|
//!< must be define in CPP by the application ...
|
|
|
|
void APP_Init(int argc, char *argv[]);
|
|
|
|
void APP_UnInit(void);
|
2011-10-20 10:17:00 +02:00
|
|
|
|
2011-12-10 11:02:00 +01:00
|
|
|
#define NB_MAX_INPUT (20)
|
|
|
|
#define SEPARATED_CLICK_TIME (30)
|
|
|
|
|
2011-10-20 10:17:00 +02:00
|
|
|
#endif
|