79 lines
2.2 KiB
C++
79 lines
2.2 KiB
C++
/**
|
|
*******************************************************************************
|
|
* @file ewol/ewol.h
|
|
* @brief Main include of ewol (header)
|
|
* @author Edouard DUPIN
|
|
* @date 17/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 __EWOL_H__
|
|
#define __EWOL_H__
|
|
|
|
#include <etk/Types.h>
|
|
#include <etk/UString.h>
|
|
#include <etk/File.h>
|
|
#include <ewol/Widget.h>
|
|
#include <ewol/Windows.h>
|
|
|
|
|
|
namespace ewol {
|
|
void Stop(void);
|
|
void DisplayWindows(ewol::Windows * windows);
|
|
// only on computer
|
|
void ChangeSize(int32_t w, int32_t h);
|
|
void ChangePos(int32_t x, int32_t y);
|
|
// TODO : Deprecated used FOR???
|
|
void GetAbsPos(int32_t & x, int32_t & y);
|
|
|
|
// TODO : Deprecated remove it ...
|
|
bool IsPressedInput(int32_t inputID);
|
|
void KeyboardShow(ewol::keyboardMode_te mode);
|
|
void KeyboardHide(void);
|
|
void ForceRedrawAll(void);
|
|
void PopUpWidgetPush(ewol::Widget * tmpWidget);
|
|
|
|
int32_t CmdLineNb(void);
|
|
etk::UString CmdLineGet(int32_t id);
|
|
// TODO : This might be deprecated ...
|
|
bool IsSetCapsLock(void);
|
|
bool IsSetShift(void);
|
|
bool IsSetCtrl(void);
|
|
bool IsSetMeta(void);
|
|
bool IsSetAlt(void);
|
|
bool IsSetAltGr(void);
|
|
bool IsSetVerNum(void);
|
|
bool IsSetInsert(void);
|
|
// basic shortcut setting (set default value, the configutration file will overloaded it automaticly
|
|
namespace shortCut {
|
|
void Add(bool shift, bool control, bool alt, bool meta, uniChar_t unicodeValue, const char * generateEventId, etk::UString data);
|
|
void Add(const char * descriptiveString, const char * generateEventId, etk::UString data);
|
|
};
|
|
// TODO : This is dangerous and might be deprecated ... Soon
|
|
int32_t GetCurrentWidth(void);
|
|
int32_t GetCurrentHeight(void);
|
|
|
|
void SetTitle(etk::UString title);
|
|
};
|
|
// get current time in ms...
|
|
int64_t GetCurrentTime(void);
|
|
|
|
|
|
#endif
|