8 #include <gale/key/key.hpp> 9 #include <gale/Application.hpp> 10 #include <gale/context/Context.hpp> 11 #include <gale/context/clipBoard.hpp> 12 #include <gale/context/commandLine.hpp> 14 #include <ewol/debug.hpp> 26 class Context :
public gale::Application {
34 gale::context::CommandLine& getCmd() {
35 return gale::getContext().getCmd();
47 return m_objectManager;
53 return m_widgetManager;
56 gale::resource::Manager& getResourcesManager() {
57 return gale::getContext().getResourcesManager();
65 void onCreate(gale::Context& _context)
override;
66 void onStart(gale::Context& _context)
override;
67 void onResume(gale::Context& _context)
override;
68 void onRegenerateDisplay(gale::Context& _context)
override;
69 void onDraw(gale::Context& _context)
override;
70 void onPause(gale::Context& _context)
override;
71 void onStop(gale::Context& _context)
override;
72 void onDestroy(gale::Context& _context)
override;
73 void onKillDemand(gale::Context& _context)
override;
74 void onPointer(
enum gale::key::type _type,
77 gale::key::status _state)
override;
78 void onKeyboard(
const gale::key::Special& _special,
79 enum gale::key::keyboard _type,
81 gale::key::status _state)
override;
82 void onClipboardEvent(
enum gale::context::clipBoard::clipboardListe _clipboardId)
override;
122 void onResize(
const ivec2& _size)
override;
136 static int main(
int _argc,
const char *_argv[]);
139 size_t m_initTotalStep;
151 void onPeriod(
const echrono::Clock& _time)
override;
Definition: InputManager.hpp:42
ewol::widget::WindowsShared getWindows()
get the current windows that is displayed
void forceRedrawAll()
Redraw all the windows.
void inputEventGrabPointer(ewol::WidgetShared _widget)
This fonction lock the pointer properties to move in relative instead of absolute.
Definition: Application.hpp:12
void requestUpdateSize()
Request a display after call a resize.
void setInitImage(const std::string &_fileName)
Special for init (main) set the start image when loading data.
void setWindows(const ewol::widget::WindowsShared &_windows)
set the current windows to display :
static int main(int _argc, const char *_argv[])
This is the only one things the User might done in his main();.
Definition: ConfigFont.hpp:12
void inputEventUnGrabPointer()
This fonction un-lock the pointer properties to move in relative instead of absolute.
Definition: Context.hpp:26
void inputEventTransfertWidget(ewol::WidgetShared _source, ewol::WidgetShared _destination)
This is to transfert the event from one widget to another one.
void resetIOEvent()
reset event management for the IO like Input ou Mouse or keyborad
Definition: Manager.hpp:18
Context & getContext()
From everyware in the program, we can get the context inteface.