Home -> IFrameBuffer -> NotifyWindowResized

Description

The NotifyWindowResized method notifies the framebuffer that the drawable pixel size of the bound window target has changed.

Window-backed framebuffers receive their initial size through the platform-specific WindowInfoBase derived structure passed to BindWindow. Call this method whenever the native window, or the requested headless target size, changes so renderer back ends can recreate or resize the underlying presentation resources.

ImportantImportant

The size must be the drawable size in pixels, not a logical window size in display-independent units.

Usage

SuccessToken NotifyWindowResized(const V2UInt32& windowSizeInPixels);

Argument list

windowSizeInPixels [const V2UInt32&]
The updated drawable window size in pixels.

Return value

[SuccessToken]
True if the window resize notification was accepted, false otherwise. An assertion will be raised in debug builds if the result is not tested.

See also