20#include <AUI/View/AViewContainer.h>
21#include "AWindowBase.h"
28class API_AUI_VIEWS AEmbedAuiWrap:
public IEventLoop {
37 void windowInit(_unique<IRenderingContext> context);
38 void windowMakeCurrent();
41 virtual void onNotifyProcessMessages() = 0;
43 explicit AEmbedAuiWrap();
48 virtual void setViewportSize(
int width,
int height);
50 void setCustomDpiRatio(
float r);
52 bool requiresRedraw();
92 void onScroll(
int mouseX,
int mouseY,
int scrollX,
int scrollY);
95 void onKeyPressed(AInput::Key key);
96 void onKeyReleased(AInput::Key key);
100 void loop()
override;
Definition AEmbedAuiWrap.cpp:26
void onCharEntered(wchar_t c)
Handle char entered in UI.
Definition AEmbedAuiWrap.cpp:178
void onPointerMove(int x, int y)
Handle mouse move in UI.
Definition AEmbedAuiWrap.cpp:172
void onPointerReleased(int x, int y, APointerIndex pointerIndex)
Handle mouse released in UI.
Definition AEmbedAuiWrap.cpp:160
void onScroll(int mouseX, int mouseY, int scrollX, int scrollY)
Handle onScroll in UI.
Definition AEmbedAuiWrap.cpp:102
bool isUIConsumesMouseAt(int x, int y)
Definition AEmbedAuiWrap.cpp:168
void onPointerPressed(int x, int y, APointerIndex pointerIndex)
Handle mouse pressed in UI.
Definition AEmbedAuiWrap.cpp:151
Utility wrapper implementing the stack-allocated (fast) optional idiom.
Definition AOptional.h:32
Wrapper class that stores either mouse button index or finger index.
Definition APointerIndex.h:21
Definition AWindowBase.h:33
Definition IEventLoop.h:33
virtual void loop()=0
Do message processing loop.
virtual void notifyProcessMessages()=0
Notifies this IEventLoop that its thread got a new message to process.
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178