AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AEmbedAuiWrap Class Referenceabstract

#include <AUI/Platform/AEmbedAuiWrap.h>

Classes

class  EmbedWindow
 

Public Member Functions

void clearFocus ()
 
void setContainer (const _< AViewContainer > &container)
 
virtual void setViewportSize (int width, int height)
 
void setCustomDpiRatio (float r)
 
bool requiresRedraw ()
 
void notifyProcessMessages () override
 Notifies this IEventLoop that its thread got a new message to process.
 
bool isUIConsumesMouseAt (int x, int y)
 
void onPointerPressed (int x, int y, APointerIndex pointerIndex)
 Handle mouse pressed in UI.
 
void onPointerReleased (int x, int y, APointerIndex pointerIndex)
 Handle mouse released in UI.
 
void onPointerMove (int x, int y)
 Handle mouse move in UI.
 
void onCharEntered (wchar_t c)
 Handle char entered in UI.
 
void onScroll (int mouseX, int mouseY, int scrollX, int scrollY)
 Handle onScroll in UI.
 
void onKeyPressed (AInput::Key key)
 
void onKeyReleased (AInput::Key key)
 
AWindowBasegetWindow ()
 
void loop () override
 Do message processing loop.
 

Protected Member Functions

void windowInit (_unique< IRenderingContext > context)
 
void windowMakeCurrent ()
 
void windowRender ()
 
virtual void onNotifyProcessMessages ()=0
 

Protected Attributes

_< EmbedWindowmContainer
 
glm::ivec2 mSize
 
AOptional< float > mCustomDpiRatio
 

Detailed Description

Helper for applications with custom window initialization.

Note
This class is abstract; use AGLEmbedAuiWrap or ASoftwareEmbedAuiWrap instead.

Member Function Documentation

◆ isUIConsumesMouseAt()

bool AEmbedAuiWrap::isUIConsumesMouseAt ( int x,
int y )
Returns
true if UI is opaque for mouse at specified position

◆ loop()

void AEmbedAuiWrap::loop ( )
overridevirtual

Do message processing loop.

Implements IEventLoop.

◆ notifyProcessMessages()

void AEmbedAuiWrap::notifyProcessMessages ( )
overridevirtual

Notifies this IEventLoop that its thread got a new message to process.

Implements IEventLoop.

◆ onPointerMove()

void AEmbedAuiWrap::onPointerMove ( int x,
int y )

Handle mouse move in UI.

Parameters
xx position
yy position

◆ onPointerPressed()

void AEmbedAuiWrap::onPointerPressed ( int x,
int y,
APointerIndex pointerIndex )

Handle mouse pressed in UI.

Parameters
xx position
yy position
pointerIndexmouse button or finger index

◆ onPointerReleased()

void AEmbedAuiWrap::onPointerReleased ( int x,
int y,
APointerIndex pointerIndex )

Handle mouse released in UI.

Parameters
xx position
yy position
pointerIndexmouse button or finger index

The documentation for this class was generated from the following files:
Inheritance diagram for AEmbedAuiWrap:
Collaboration diagram for AEmbedAuiWrap: