![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WindowsWindow.h>
Inheritance diagram for FWindowsWindow:Static Public Member Functions | |
| static APPLICATIONCORE_API TSharedRef< FWindowsWindow > | Make () |
Static Public Attributes | |
| static APPLICATIONCORE_API const TCHAR | AppWindowClass [] = TEXT("UnrealWindow") |
Additional Inherited Members | |
Protected Attributes inherited from FGenericWindow | |
| TSharedPtr< FGenericWindowDefinition > | Definition |
A platform specific implementation of FNativeWindow.
Native Windows provide platform-specific backing for and are always owned by an SWindow.
| FWindowsWindow::~FWindowsWindow | ( | ) |
Destructor.
Reimplemented from FGenericWindow.
Sets the window region to specified dimensions.
| Width | The width of the window region (in pixels). |
| Height | The height of the window region (in pixels). |
Native windows should implement BringToFront by making this window the top-most window (i.e. focused).
| bForce | Forces the window to the top of the Z order, even if that means stealing focus from other windows In general do not pass true for this. It is really only useful for some windows, like game windows where not forcing it to the front could cause mouse capture and mouse lock to happen but without the window visible |
Reimplemented from FGenericWindow.
|
overridevirtual |
Native windows should implement this function by asking the OS to destroy OS-specific resource associated with the window (e.g. Win32 window handle)
Reimplemented from FGenericWindow.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Attempts to draw the user's attention to this window in whatever way is appropriate for the platform if this window is not the current active window.
| Parameters | The parameters for drawing attention. Depending on the platform, not all parameters may be supported. |
Reimplemented from FGenericWindow.
|
overridevirtual |
Enables or disables this window. When disabled, a window will receive no input.
| bEnable | true to enable the window, false to disable it. |
Reimplemented from FGenericWindow.
|
inline |
Reimplemented from FGenericWindow.
|
overridevirtual |
Returns the rectangle of the screen the window is associated with
Reimplemented from FGenericWindow.
| HWND FWindowsWindow::GetHWnd | ( | ) | const |
Gets the Window's handle.
Gets the OS Window handle in the form of a void pointer for other API's
Reimplemented from FGenericWindow.
|
overridevirtual |
Returns the size and location of the window when it is restored
Reimplemented from FGenericWindow.
|
overridevirtual |
Gets OS specific window border size. This is necessary because Win32 does not give control over this size.
Reimplemented from FGenericWindow.
|
inlineoverridevirtual |
Reimplemented from FGenericWindow.
|
overridevirtual |
Gets OS specific window title bar size
Reimplemented from FGenericWindow.
|
overridevirtual |
@hack Force a window to front even if a different application is in front.
Reimplemented from FGenericWindow.
|
overridevirtual |
Native window should hide itself
Reimplemented from FGenericWindow.
| void FWindowsWindow::Initialize | ( | class FWindowsApplication *const | Application, |
| const TSharedRef< FGenericWindowDefinition > & | InDefinition, | ||
| HINSTANCE | InHInstance, | ||
| const TSharedPtr< FWindowsWindow > & | InParent, | ||
| const bool | bShowImmediately | ||
| ) |
| bool FWindowsWindow::IsEnabled | ( | ) |
|
overridevirtual |
Reimplemented from FGenericWindow.
|
overridevirtual |
Reimplemented from FGenericWindow.
|
overridevirtual |
determines whether or not this window does its own DPI management
Reimplemented from FGenericWindow.
|
overridevirtual |
Reimplemented from FGenericWindow.
|
overridevirtual |
Reimplemented from FGenericWindow.
Reimplemented from FGenericWindow.
| bool FWindowsWindow::IsRegularWindow | ( | ) | const |
Sets the window text (usually the title but can also be text content for things like controls).
| Text | The window's title or content text |
|
overridevirtual |
Reimplemented from FGenericWindow.
|
static |
Create a new FWin32Window.
|
overridevirtual |
Native window should implement this function by performing the equivalent of the Win32 maximize operation
Reimplemented from FGenericWindow.
|
overridevirtual |
Native window should implement this function by performing the equivalent of the Win32 minimize-to-taskbar operation
Reimplemented from FGenericWindow.
Native windows should implement MoveWindowTo by relocating the client area of the platform-specific window to (X,Y).
Reimplemented from FGenericWindow.
| void FWindowsWindow::OnParentWindowMinimized | ( | ) |
Called when our parent window is minimized (which will in turn cause us to become minimized).
| void FWindowsWindow::OnParentWindowRestored | ( | ) |
Called when our parent window is restored (which will in turn cause us to become restored).
| void FWindowsWindow::OnTransparencySupportChanged | ( | EWindowTransparency | NewTransparency | ) |
Called by the owning application when the level of transparency support has changed
Native windows should implement ReshapeWindow by changing the platform-specific window to be located at (X,Y) and be the dimensions Width x Height.
Reimplemented from FGenericWindow.
|
overridevirtual |
Native window should implement this function by performing the equivalent of the Win32 maximize operation
Reimplemented from FGenericWindow.
sets a new DPI scale factor
Reimplemented from FGenericWindow.
call with a true argument if this window need to do its custom size management in response to DPI variations
Reimplemented from FGenericWindow.
Sets the opacity of this window
| InOpacity | The new window opacity represented as a floating point scalar |
Reimplemented from FGenericWindow.
Sets the window text - usually the title but can also be text content for things like controls
| Text | The window's title or content text |
Reimplemented from FGenericWindow.
|
overridevirtual |
Sets focus on the native window
Reimplemented from FGenericWindow.
|
overridevirtual |
Toggle native window between fullscreen and normal mode
Reimplemented from FGenericWindow.
|
overridevirtual |
Native window should make itself visible
Reimplemented from FGenericWindow.
Win32 requirement: see CreateWindowEx and RegisterClassEx.