ewol::Context Class Reference
Inheritance diagram for ewol::Context:
Public Member Functions | |
ememory::SharedPtr< ewol::context::Application > | getApplication () |
gale::context::CommandLine & | getCmd () |
ewol::context::ConfigFont & | getFontDefault () |
ewol::object::Manager & | getEObjectManager () |
ewol::widget::Manager & | getWidgetManager () |
gale::resource::Manager & | getResourcesManager () |
Context (ewol::context::Application *_application) | |
void | onCreate (gale::Context &_context) override |
void | onStart (gale::Context &_context) override |
void | onResume (gale::Context &_context) override |
void | onRegenerateDisplay (gale::Context &_context) override |
void | onDraw (gale::Context &_context) override |
void | onPause (gale::Context &_context) override |
void | onStop (gale::Context &_context) override |
void | onDestroy (gale::Context &_context) override |
void | onKillDemand (gale::Context &_context) override |
void | onPointer (enum gale::key::type _type, int32_t _pointerID, const vec2 &_pos, gale::key::status _state) override |
void | onKeyboard (const gale::key::Special &_special, enum gale::key::keyboard _type, char32_t _value, gale::key::status _state) override |
void | onClipboardEvent (enum gale::context::clipBoard::clipboardListe _clipboardId) override |
void | resetIOEvent () |
void | setWindows (const ewol::widget::WindowsShared &_windows) |
ewol::widget::WindowsShared | getWindows () |
void | forceRedrawAll () |
void | inputEventTransfertWidget (ewol::WidgetShared _source, ewol::WidgetShared _destination) |
void | inputEventGrabPointer (ewol::WidgetShared _widget) |
void | inputEventUnGrabPointer () |
void | onResize (const ivec2 &_size) override |
void | setInitImage (const std::string &_fileName) |
void | requestUpdateSize () |
void | onPeriod (const echrono::Clock &_time) override |
Static Public Member Functions | |
static int | main (int _argc, const char *_argv[]) |
Member Function Documentation
§ forceRedrawAll()
void ewol::Context::forceRedrawAll | ( | ) |
Redraw all the windows.
§ getWindows()
ewol::widget::WindowsShared ewol::Context::getWindows | ( | ) |
get the current windows that is displayed
- Returns
- the current handle on the windows (can be null)
§ inputEventGrabPointer()
void ewol::Context::inputEventGrabPointer | ( | ewol::WidgetShared | _widget | ) |
This fonction lock the pointer properties to move in relative instead of absolute.
- Parameters
-
[in] widget The widget that lock the pointer events
§ inputEventTransfertWidget()
void ewol::Context::inputEventTransfertWidget | ( | ewol::WidgetShared | _source, |
ewol::WidgetShared | _destination | ||
) |
This is to transfert the event from one widget to another one.
- Parameters
-
source the widget where the event came from destination the widget where the event mitgh be generated now
§ inputEventUnGrabPointer()
void ewol::Context::inputEventUnGrabPointer | ( | ) |
This fonction un-lock the pointer properties to move in relative instead of absolute.
§ main()
|
static |
This is the only one things the User might done in his main();.
- Note
- : must be implemented in all system OPS implementation
- 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
- The main can not be in the ewol, due to the fact thet is an librairy
- Parameters
-
[in] _argc Standard argc [in] _argv Standard argv
- Returns
- normal error int for the application error management
§ requestUpdateSize()
void ewol::Context::requestUpdateSize | ( | ) |
Request a display after call a resize.
§ resetIOEvent()
void ewol::Context::resetIOEvent | ( | ) |
reset event management for the IO like Input ou Mouse or keyborad
§ setInitImage()
void ewol::Context::setInitImage | ( | const std::string & | _fileName | ) |
Special for init (main) set the start image when loading data.
- Parameters
-
[in] _fileName Name of the image to load
§ setWindows()
void ewol::Context::setWindows | ( | const ewol::widget::WindowsShared & | _windows | ) |
set the current windows to display :
- Parameters
-
_windows Windows that might be displayed
The documentation for this class was generated from the following file:
- framework/atria-soft/ewol/ewol/context/Context.hpp