Open 3D Engine AzFramework API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <WindowBus.h>
Inherits AZ::EBusTraits.
Public Types | |
using | BusIdType = NativeWindowHandle |
Public Member Functions | |
virtual void | OnWindowResized (uint32_t width, uint32_t height) |
This is called once when the window is Activated and also called if the user resizes the window. | |
virtual void | OnResolutionChanged (uint32_t width, uint32_t height) |
This is called when the window's desired render resolution is changed. | |
virtual void | OnDpiScaleFactorChanged (float dpiScaleFactor) |
This is called if the window's underyling DPI scaling factor changes. | |
virtual void | OnFullScreenModeChanged ([[maybe_unused]] bool fullscreen) |
This is called when the fullscreen mode of the window changes. | |
virtual void | OnWindowClosed () |
This is called when the window is deactivated from code or if the user closes the window. | |
virtual void | OnVsyncIntervalChanged (uint32_t interval) |
This is called when vsync interval is changed. | |
virtual void | OnRefreshRateChanged ([[maybe_unused]] uint32_t refreshRate) |
This is called if the main display's refresh rate changes. | |
Static Public Attributes | |
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Multiple |
Bus for listening for notifications from a window. It could be a NativeWindow or an Editor window.