#include <WindowBus.h>
Inherits EBusTraits.
|
using | BusIdType = NativeWindowHandle |
|
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
|
Bus for sending requests to any kind of window. It could be a NativeWindow or an Editor window.
virtual bool AzFramework::WindowRequests::CanToggleFullScreenState |
( |
| ) |
const |
|
pure virtual |
Can the full screen state of the window be changed/toggled?
- Returns
- True if the window can enter/exit full screen, false otherwise.
virtual WindowSize AzFramework::WindowRequests::GetClientAreaSize |
( |
| ) |
const |
|
pure virtual |
Get the client area size. This is the size that can be rendered to. On some platforms this may not be the correct size until Activate is called.
virtual float AzFramework::WindowRequests::GetDpiScaleFactor |
( |
| ) |
const |
|
pure virtual |
Returns a scalar multiplier representing how many dots-per-inch this window has, compared to a "standard" value of 96, the default for Windows in a DPI unaware setting. This can be used to scale user interface elements to ensure legibility on high density displays.
virtual bool AzFramework::WindowRequests::GetFullScreenState |
( |
| ) |
const |
|
pure virtual |
Get the full screen state of the window.
- Returns
- True if the window is currently in full screen, false otherwise.
Set the client area size. This is the size that can be rendered to.
- Parameters
-
[in] | clientAreaSize | Size of the client area in pixels |
[in] | options | Options for resizing and moving the window. |
virtual void AzFramework::WindowRequests::SetFullScreenState |
( |
bool |
fullScreenState | ) |
|
|
pure virtual |
Set the full screen state of the window.
- Parameters
-
[in] | fullScreenState | The full screen state to set. |
virtual bool AzFramework::WindowRequests::SetSyncInterval |
( |
uint32_t |
newSyncInterval | ) |
|
|
pure virtual |
Sets the sync interval which tells the drivers the number of v-blanks to synchronize with Returns if the sync interval was successfully set
virtual bool AzFramework::WindowRequests::SupportsClientAreaResize |
( |
| ) |
const |
|
pure virtual |
Does this platform support window resizing. Generally desktop platforms support resizing, mobile platforms don't.
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Windowing/WindowBus.h