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


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 :


getWindows ()

ewol::Windows * getWindows(void);

get the current windows that is displayed


getSize ()

const vec2 & getSize(void);

get the current windows size


OS_Resize ()

void OS_Resize(const vec2 & _size);

The OS inform that the current windows has change his size.


setSize ()

void setSize(const vec2 & _size);

The application request a change of his curent size.


OS_Move ()

void OS_Move(const vec2 & _pos);

The OS inform that the current windows has change his position.


setPos ()

void setPos(const vec2 & _pos);

The Application request that the current windows will change his position.


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


inputEventGrabPointer ()

void inputEventGrabPointer(ewol::Widget * _widget);

This fonction lock the pointer properties to move in relative instead of absolute


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


clipBoardSet ()

void clipBoardSet(enum ewol::clipBoard::clipboardListe _clipboardID);

Inform the Gui that we are the new owner of the clipboard


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)


setTitle ()

void setTitle(const std::string & _title);

set the new title of the windows


forceOrientation ()

void forceOrientation(enum ewol::orientation _orientation);

force the screen orientation (availlable on portable elements ...


grabPointerEvents ()

void grabPointerEvents(bool _isGrabbed,
                       const vec2 & _forcedPosition);

get all the event from the X system


setCursor ()

void setCursor(enum ewol::cursorDisplay _newCursor);

set the cursor display type.


setIcon ()

void setIcon(const std::string & _inputFile);

set the Icon of the program


ewol::getTime ()

static int64_t getTime(void);

get the curent time in micro-second
Notes: : must be implemented in all system OS implementation


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


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)