Module cgl_rs::window

source ·
Expand description

The window manager module is responsible for creating and managing windows. It is also responsible for handling input events and passing them to the appropriate window.

Structs

  • The internal window handle used by GLFW
  • Represents a window, with a handle to the underlying CGL window and a flag indicating whether it has been destroyed.

Enums

  • Represents an action, with each variant corresponding to a specific action code.
  • Represents an event that can be received by a window, with each variant corresponding to a specific type of event.
  • Represents a keyboard key, with each variant corresponding to a specific key code.
  • Represents a mouse button, with each variant corresponding to a specific button code.

Type Definitions

  • Represents a function that handles a window event. Takes a reference to the window and the event, and returns a boolean indicating whether the event was handled successfully. If this function returns false, the event will be passed to the next handler in the chain, or if there are no more handlers, the event will be ignored. If this function returns true, the event will not be passed to any more handlers.