AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AEmbedAuiWrap Class Referenceabstract

Detailed Description

Helper for applications with custom window initialization.

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

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. More...
 
bool isUIConsumesMouseAt (int x, int y)
 
void onPointerPressed (int x, int y, APointerIndex pointerIndex)
 
void onPointerReleased (int x, int y, APointerIndex pointerIndex)
 
void onPointerMove (int x, int y)
 
void onCharEntered (wchar_t c)
 
void onScroll (int mouseX, int mouseY, int scrollX, int scrollY)
 
void onKeyPressed (AInput::Key key)
 
void onKeyReleased (AInput::Key key)
 
AWindowBasegetWindow ()
 
void loop () override
 Do message processing loop. More...
 

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
 

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.

◆ onCharEntered()

void AEmbedAuiWrap::onCharEntered ( wchar_t  c)

Handle mouse move in UI.

Parameters
xx position
yy position

◆ 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

#include <AUI/Platform/AEmbedAuiWrap.h>


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