Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::WindowProps Struct Reference

Struct to hold window properties. More...

#include <Window.h>

Public Attributes

std::string Title = "Raven"
 Title displayed in the window's title bar.
u32 Width = 1920
 Width of the window (in pixels).
u32 Height = 1080
 Height of the window (in pixels).
bool Maximized = false
 Whether the window is maximized on creation (default: false).
EventCallbackFn EventCallback
 The callback function to handle events such as window resizing or input.

Detailed Description

Struct to hold window properties.

This struct contains the properties required for creating a window, such as title, width, height, VSync setting, and an event callback function. These properties are used to configure the window during initialization.

Note
  • Title: The title displayed on the window.
  • Width: The width of the window (in pixels).
  • Height: The height of the window (in pixels).
  • Maximized: A flag indicating whether the window should be maximized on creation (false by default).
  • EventCallback: A function that will be called when an event occurs, such as a window resize or key press.

Member Data Documentation

◆ EventCallback

EventCallbackFn Raven::WindowProps::EventCallback

The callback function to handle events such as window resizing or input.

◆ Height

u32 Raven::WindowProps::Height = 1080

Height of the window (in pixels).

◆ Maximized

bool Raven::WindowProps::Maximized = false

Whether the window is maximized on creation (default: false).

◆ Title

std::string Raven::WindowProps::Title = "Raven"

Title displayed in the window's title bar.

◆ Width

u32 Raven::WindowProps::Width = 1920

Width of the window (in pixels).


The documentation for this struct was generated from the following file: