Class: ewol::eContext
Synopsis:
+ ewol::CommandLine & getCmd (void);
+ ewol::ConfigFont & getFontDefault (void);
+ ewol::WidgetManager & getWidgetManager (void);
+ ewol::EObjectManager & getEObjectManager (void);
+ ewol::ResourceManager & getResourcesManager (void);
+ eContext (int32_t _argc,
const char * _argv);
+ ~eContext (void);
+ void setArchiveDir (int _mode,
const char * _str);
+ void OS_SetInputMotion (int _pointerID,
const vec2 & _pos);
+ void OS_SetInputState (int _pointerID,
bool _isDown,
const vec2 & _pos);
+ void OS_SetMouseMotion (int _pointerID,
const vec2 & _pos);
+ void OS_SetMouseState (int _pointerID,
bool _isDown,
const vec2 & _pos);
+ void OS_SetKeyboard (ewol::SpecialKey & _special,
char32_t _myChar,
bool _isDown,
bool _isARepeateKey);
+ void OS_SetKeyboardMove (ewol::SpecialKey & _special,
enum ewol::keyEvent::keyboard _move,
bool _isDown,
bool _isARepeateKey);
+ void OS_Suspend (void);
+ void OS_Resume (void);
+ void requestUpdateSize (void);
+ bool OS_Draw (bool _displayEveryTime);
+ void onObjectRemove (ewol::EObject * _removeObject);
+ void resetIOEvent (void);
+ void OS_OpenGlContextDestroy (void);
+ void OS_Stop (void);
+ void stop (void);
+ void setWindows (ewol::Windows * _windows);
+ ewol::Windows * getWindows (void);
+ const vec2 & getSize (void);
+ void OS_Resize (const vec2 & _size);
+ void setSize (const vec2 & _size);
+ void OS_Move (const vec2 & _pos);
+ void setPos (const vec2 & _pos);
+ void OS_Hide (void);
+ void hide (void);
+ void OS_Show (void);
+ void show (void);
+ void forceRedrawAll (void);
+ void inputEventTransfertWidget (ewol::Widget * _source,
ewol::Widget * _destination);
+ void inputEventGrabPointer (ewol::Widget * _widget);
+ void inputEventUnGrabPointer (void);
+ void keyboardShow (void);
+ void keyboardHide (void);
+ void clipBoardGet (enum ewol::clipBoard::clipboardListe _clipboardID);
+ void clipBoardSet (enum ewol::clipBoard::clipboardListe _clipboardID);
+ void OS_ClipBoardArrive (enum ewol::clipBoard::clipboardListe _clipboardID);
+ void setTitle (const std::string & _title);
+ void forceOrientation (enum ewol::orientation _orientation);
+ void grabPointerEvents (bool _isGrabbed,
const vec2 & _forcedPosition);
+ void setCursor (enum ewol::cursorDisplay _newCursor);
+ void setIcon (const std::string & _inputFile);
+ static int64_t getTime (void);
+ static int main (int _argc,
const char * _argv);
# void lockContext (void);
# void unLockContext (void);
- void processEvents (void);
Detail:
getCmd ()
ewol::CommandLine & getCmd(void);
getFontDefault ()
ewol::ConfigFont & getFontDefault(void);
getWidgetManager ()
ewol::WidgetManager & getWidgetManager(void);
getEObjectManager ()
ewol::EObjectManager & getEObjectManager(void);
getResourcesManager ()
ewol::ResourceManager & getResourcesManager(void);
ewol::eContext ()
eContext(int32_t _argc,
const char * _argv);
ewol::~eContext ()
~eContext(void);
setArchiveDir ()
void setArchiveDir(int _mode,
const char * _str);
OS_SetInputMotion ()
void OS_SetInputMotion(int _pointerID,
const vec2 & _pos);
OS_SetInputState ()
void OS_SetInputState(int _pointerID,
bool _isDown,
const vec2 & _pos);
OS_SetMouseMotion ()
void OS_SetMouseMotion(int _pointerID,
const vec2 & _pos);
OS_SetMouseState ()
void OS_SetMouseState(int _pointerID,
bool _isDown,
const vec2 & _pos);
OS_SetKeyboard ()
void OS_SetKeyboard(ewol::SpecialKey & _special,
char32_t _myChar,
bool _isDown,
bool _isARepeateKey);
OS_SetKeyboardMove ()
void OS_SetKeyboardMove(ewol::SpecialKey & _special,
enum ewol::keyEvent::keyboard _move,
bool _isDown,
bool _isARepeateKey);
OS_Suspend ()
void OS_Suspend(void);
The current context is suspended
OS_Resume ()
void OS_Resume(void);
The current context is resumed
requestUpdateSize ()
void requestUpdateSize(void);
OS_Draw ()
bool OS_Draw(bool _displayEveryTime);
onObjectRemove ()
void onObjectRemove(ewol::EObject * _removeObject);
Inform object that an other object is removed ...
Notes: : Sub classes must call this class
Parameter [input]: removeObject Pointer on the EObject removed == > the user must remove all reference on this EObject
resetIOEvent ()
void resetIOEvent(void);
reset event management for the IO like Input ou Mouse or keyborad
OS_OpenGlContextDestroy ()
void OS_OpenGlContextDestroy(void);
The OS inform that the openGL constext has been destroy == > use to automaticly reload the texture and other thinks ...
OS_Stop ()
void OS_Stop(void);
The OS Inform that the Window has been killed
stop ()
void stop(void);
The application request that the Window will be killed
setWindows ()
void setWindows(ewol::Windows * _windows);
set the current windows to display :
Parameter: _windows Windows that might be displayed
getWindows ()
ewol::Windows * getWindows(void);
get the current windows that is displayed
Return: the current handle on the windows (can be null)
getSize ()
const vec2 & getSize(void);
get the current windows size
Return: the current size ...
OS_Resize ()
void OS_Resize(const vec2 & _size);
The OS inform that the current windows has change his size.
Parameter [input]: _size new size of the windows.
setSize ()
void setSize(const vec2 & _size);
The application request a change of his curent size.
Parameter [input]: _size new Requested size of the windows.
OS_Move ()
void OS_Move(const vec2 & _pos);
The OS inform that the current windows has change his position.
Parameter [input]: _pos New position of the Windows.
setPos ()
void setPos(const vec2 & _pos);
The Application request that the current windows will change his position.
Parameter [input]: _pos New position of the Windows requested.
OS_Hide ()
void OS_Hide(void);
The OS inform that the Windows is now Hidden.
hide ()
void hide(void);
The Application request that the Windows will be Hidden.
OS_Show ()
void OS_Show(void);
The OS inform that the Windows is now visible.
show ()
void show(void);
The Application request that the Windows will be visible.
forceRedrawAll ()
void forceRedrawAll(void);
Redraw all the windows
inputEventTransfertWidget ()
void inputEventTransfertWidget(ewol::Widget * _source,
ewol::Widget * _destination);
This is to transfert the event from one widget to another one
Parameter: source the widget where the event came from
Parameter: destination the widget where the event mitgh be generated now
inputEventGrabPointer ()
void inputEventGrabPointer(ewol::Widget * _widget);
This fonction lock the pointer properties to move in relative instead of absolute
Parameter [input]: widget The widget that lock the pointer events
inputEventUnGrabPointer ()
void inputEventUnGrabPointer(void);
This fonction un-lock the pointer properties to move in relative instead of absolute
keyboardShow ()
void keyboardShow(void);
display the virtal keyboard (for touch system only)
keyboardHide ()
void keyboardHide(void);
Hide the virtal keyboard (for touch system only)
clipBoardGet ()
void clipBoardGet(enum ewol::clipBoard::clipboardListe _clipboardID);
Inform the Gui that we want to have a copy of the clipboard
Parameter [input]: _clipboardID ID of the clipboard (STD/SELECTION) only apear here
clipBoardSet ()
void clipBoardSet(enum ewol::clipBoard::clipboardListe _clipboardID);
Inform the Gui that we are the new owner of the clipboard
Parameter [input]: _clipboardID ID of the clipboard (STD/SELECTION) only apear here
OS_ClipBoardArrive ()
void OS_ClipBoardArrive(enum ewol::clipBoard::clipboardListe _clipboardID);
Call by the OS when a clipboard arrive to US (previously requested by a widget)
Parameter [input]: Id of the clipboard
setTitle ()
void setTitle(const std::string & _title);
set the new title of the windows
Parameter [input]: title New desired title
forceOrientation ()
void forceOrientation(enum ewol::orientation _orientation);
force the screen orientation (availlable on portable elements ...
Parameter [input]: _orientation Selected orientation.
grabPointerEvents ()
void grabPointerEvents(bool _isGrabbed,
const vec2 & _forcedPosition);
get all the event from the X system
Parameter [input]: _isGrabbed "true" if all the event will be get, false if we want only ours.
Parameter [input]: _forcedPosition the position where the mouse might be reset at every events ...
setCursor ()
void setCursor(enum ewol::cursorDisplay _newCursor);
set the cursor display type.
Parameter [input]: _newCursor selected new cursor.
setIcon ()
void setIcon(const std::string & _inputFile);
set the Icon of the program
Parameter [input]: _inputFile new filename icon of the curent program.
ewol::getTime ()
static int64_t getTime(void);
get the curent time in micro-second
Notes: : must be implemented in all system OS implementation
Return: The curent time of the process
ewol::main ()
static int main(int _argc,
const char * _argv);
This is the only one things the User might done in his main();
Notes: : must be implemented in all system OPS implementation
Notes: To answare you before you ask the question, this is really simple:
Due to the fect that the current system is multiple-platform, you "main"
Does not exist in the android platform, then ewol call other start
and stop function, to permit to have only one code
Notes: The main can not be in the ewol, due to the fact thet is an librairy
Parameter [input]: _argc Standard argc
Parameter [input]: _argv Standard argv
Return: normal error int for the application error management
lockContext ()
void lockContext(void);
set the curent interface.
Notes: this lock the main mutex
unLockContext ()
void unLockContext(void);
set the curent interface at NULL.
Notes: this un-lock the main mutex
processEvents ()
void processEvents(void);
Processing all the event arrived ... (commoly called in draw function)
getCmd ()
ewol::CommandLine & getCmd(void);
getFontDefault ()
ewol::ConfigFont & getFontDefault(void);
getWidgetManager ()
ewol::WidgetManager & getWidgetManager(void);
getEObjectManager ()
ewol::EObjectManager & getEObjectManager(void);
getResourcesManager ()
ewol::ResourceManager & getResourcesManager(void);
ewol::eContext ()
eContext(int32_t _argc, const char * _argv);
ewol::~eContext ()
~eContext(void);
setArchiveDir ()
void setArchiveDir(int _mode, const char * _str);
OS_SetInputMotion ()
void OS_SetInputMotion(int _pointerID, const vec2 & _pos);
OS_SetInputState ()
void OS_SetInputState(int _pointerID, bool _isDown, const vec2 & _pos);
OS_SetMouseMotion ()
void OS_SetMouseMotion(int _pointerID, const vec2 & _pos);
OS_SetMouseState ()
void OS_SetMouseState(int _pointerID, bool _isDown, const vec2 & _pos);
OS_SetKeyboard ()
void OS_SetKeyboard(ewol::SpecialKey & _special, char32_t _myChar, bool _isDown, bool _isARepeateKey);
OS_SetKeyboardMove ()
void OS_SetKeyboardMove(ewol::SpecialKey & _special, enum ewol::keyEvent::keyboard _move, bool _isDown, bool _isARepeateKey);
OS_Suspend ()
void OS_Suspend(void);
The current context is suspended
OS_Resume ()
void OS_Resume(void);
The current context is resumed
requestUpdateSize ()
void requestUpdateSize(void);
OS_Draw ()
bool OS_Draw(bool _displayEveryTime);
onObjectRemove ()
void onObjectRemove(ewol::EObject * _removeObject);
Inform object that an other object is removed ...
Notes: : Sub classes must call this class
-
Parameter [input]: removeObject Pointer on the EObject removed == > the user must remove all reference on this EObject
resetIOEvent ()
void resetIOEvent(void);
reset event management for the IO like Input ou Mouse or keyborad
OS_OpenGlContextDestroy ()
void OS_OpenGlContextDestroy(void);
The OS inform that the openGL constext has been destroy == > use to automaticly reload the texture and other thinks ...
OS_Stop ()
void OS_Stop(void);
The OS Inform that the Window has been killed
stop ()
void stop(void);
The application request that the Window will be killed
setWindows ()
void setWindows(ewol::Windows * _windows);
set the current windows to display :
-
Parameter: _windows Windows that might be displayed
getWindows ()
ewol::Windows * getWindows(void);
get the current windows that is displayed
-
Return: the current handle on the windows (can be null)
getSize ()
const vec2 & getSize(void);
get the current windows size
-
Return: the current size ...
OS_Resize ()
void OS_Resize(const vec2 & _size);
The OS inform that the current windows has change his size.
-
Parameter [input]: _size new size of the windows.
setSize ()
void setSize(const vec2 & _size);
The application request a change of his curent size.
-
Parameter [input]: _size new Requested size of the windows.
OS_Move ()
void OS_Move(const vec2 & _pos);
The OS inform that the current windows has change his position.
-
Parameter [input]: _pos New position of the Windows.
setPos ()
void setPos(const vec2 & _pos);
The Application request that the current windows will change his position.
-
Parameter [input]: _pos New position of the Windows requested.
OS_Hide ()
void OS_Hide(void);
The OS inform that the Windows is now Hidden.
hide ()
void hide(void);
The Application request that the Windows will be Hidden.
OS_Show ()
void OS_Show(void);
The OS inform that the Windows is now visible.
show ()
void show(void);
The Application request that the Windows will be visible.
forceRedrawAll ()
void forceRedrawAll(void);
Redraw all the windows
inputEventTransfertWidget ()
void inputEventTransfertWidget(ewol::Widget * _source, ewol::Widget * _destination);
This is to transfert the event from one widget to another one
-
Parameter: source the widget where the event came from
Parameter: destination the widget where the event mitgh be generated now
inputEventGrabPointer ()
void inputEventGrabPointer(ewol::Widget * _widget);
This fonction lock the pointer properties to move in relative instead of absolute
-
Parameter [input]: widget The widget that lock the pointer events
inputEventUnGrabPointer ()
void inputEventUnGrabPointer(void);
This fonction un-lock the pointer properties to move in relative instead of absolute
keyboardShow ()
void keyboardShow(void);
display the virtal keyboard (for touch system only)
keyboardHide ()
void keyboardHide(void);
Hide the virtal keyboard (for touch system only)
clipBoardGet ()
void clipBoardGet(enum ewol::clipBoard::clipboardListe _clipboardID);
Inform the Gui that we want to have a copy of the clipboard
-
Parameter [input]: _clipboardID ID of the clipboard (STD/SELECTION) only apear here
clipBoardSet ()
void clipBoardSet(enum ewol::clipBoard::clipboardListe _clipboardID);
Inform the Gui that we are the new owner of the clipboard
-
Parameter [input]: _clipboardID ID of the clipboard (STD/SELECTION) only apear here
OS_ClipBoardArrive ()
void OS_ClipBoardArrive(enum ewol::clipBoard::clipboardListe _clipboardID);
Call by the OS when a clipboard arrive to US (previously requested by a widget)
-
Parameter [input]: Id of the clipboard
setTitle ()
void setTitle(const std::string & _title);
set the new title of the windows
-
Parameter [input]: title New desired title
forceOrientation ()
void forceOrientation(enum ewol::orientation _orientation);
force the screen orientation (availlable on portable elements ...
-
Parameter [input]: _orientation Selected orientation.
grabPointerEvents ()
void grabPointerEvents(bool _isGrabbed, const vec2 & _forcedPosition);
get all the event from the X system
-
Parameter [input]: _isGrabbed "true" if all the event will be get, false if we want only ours.
Parameter [input]: _forcedPosition the position where the mouse might be reset at every events ...
setCursor ()
void setCursor(enum ewol::cursorDisplay _newCursor);
set the cursor display type.
-
Parameter [input]: _newCursor selected new cursor.
setIcon ()
void setIcon(const std::string & _inputFile);
set the Icon of the program
-
Parameter [input]: _inputFile new filename icon of the curent program.
ewol::getTime ()
static int64_t getTime(void);
get the curent time in micro-second
Notes: : must be implemented in all system OS implementation
-
Return: The curent time of the process
ewol::main ()
static int main(int _argc, const char * _argv);
This is the only one things the User might done in his main();
Notes: : must be implemented in all system OPS implementation
Notes: To answare you before you ask the question, this is really simple: Due to the fect that the current system is multiple-platform, you "main" Does not exist in the android platform, then ewol call other start and stop function, to permit to have only one code
Notes: The main can not be in the ewol, due to the fact thet is an librairy
-
Parameter [input]: _argc Standard argc
Parameter [input]: _argv Standard argv
Return: normal error int for the application error management
lockContext ()
void lockContext(void);
set the curent interface.
Notes: this lock the main mutex
unLockContext ()
void unLockContext(void);
set the curent interface at NULL.
Notes: this un-lock the main mutex
processEvents ()
void processEvents(void);
Processing all the event arrived ... (commoly called in draw function)