Magnum::Platform::AndroidApplication::ViewportEvent class

Viewport event.

Constructors, destructors, conversion operators

ViewportEvent(const ViewportEvent&) deleted
Copying is not allowed.
ViewportEvent(ViewportEvent&&) deleted
Moving is not allowed.

Public functions

auto operator=(const ViewportEvent&) -> ViewportEvent& deleted
Copying is not allowed.
auto operator=(ViewportEvent&&) -> ViewportEvent& deleted
Moving is not allowed.
auto windowSize() const -> Vector2i
Window size.
auto framebufferSize() const -> Vector2i
Framebuffer size.
auto dpiScaling() const -> Vector2
DPI scaling.

Function documentation

Vector2i Magnum::Platform::AndroidApplication::ViewportEvent::windowSize() const

Window size.

The same as framebufferSize(). See AndroidApplication::windowSize() for possible caveats.

Vector2i Magnum::Platform::AndroidApplication::ViewportEvent::framebufferSize() const

Framebuffer size.

The same as windowSize(). See AndroidApplication::framebufferSize() for possible caveats.

Vector2 Magnum::Platform::AndroidApplication::ViewportEvent::dpiScaling() const

DPI scaling.

Always {1.0f, 1.0f}.