Project Alice
Loading...
Searching...
No Matches
window Namespace Reference

Classes

struct  creation_parameters
 
class  window_data_impl
 

Enumerations

enum class  window_state : uint8_t { normal , maximized , minimized }
 
enum class  cursor_type : uint8_t {
  normal , busy , drag_select , hostile_move ,
  friendly_move , no_move
}
 

Functions

void create_window (sys::state &game_state, creation_parameters const &params)
 
void close_window (sys::state &game_state)
 
void set_borderless_full_screen (sys::state &game_state, bool fullscreen)
 
bool is_in_fullscreen (sys::state const &game_state)
 
bool is_key_depressed (sys::state const &game_state, sys::virtual_key key)
 
void change_cursor (sys::state &state, cursor_type type)
 
void get_window_size (sys::state const &game_state, int &width, int &height)
 
void emit_error_message (std::string const &content, bool fatal)
 
sys::key_modifiers get_current_modifiers (GLFWwindow *window)
 
sys::key_modifiers get_current_modifiers (int glfw_mods)
 
void mouse_button_callback (GLFWwindow *window, int button, int action, int mods)
 
void scroll_callback (GLFWwindow *window, double xoffset, double yoffset)
 
void character_callback (GLFWwindow *window, unsigned int codepoint)
 
void on_window_change (GLFWwindow *window)
 
void window_size_callback (GLFWwindow *window, int width, int height)
 
void framebuffer_size_callback (GLFWwindow *window, int width, int height)
 
void window_iconify_callback (GLFWwindow *window, int iconified)
 
void window_maximize_callback (GLFWwindow *window, int maximized)
 
void focus_callback (GLFWwindow *window, int focused)
 
sys::key_modifiers get_current_modifiers ()
 
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 

Enumeration Type Documentation

◆ cursor_type

enum class window::cursor_type : uint8_t
strong
Enumerator
normal 
busy 
drag_select 
hostile_move 
friendly_move 
no_move 

Definition at line 61 of file window.hpp.

◆ window_state

enum class window::window_state : uint8_t
strong
Enumerator
normal 
maximized 
minimized 

Definition at line 46 of file window.hpp.

Function Documentation

◆ change_cursor()

void window::change_cursor ( sys::state state,
cursor_type  type 
)

Definition at line 351 of file window_nix.cpp.

Here is the caller graph for this function:

◆ character_callback()

void window::character_callback ( GLFWwindow *  window,
unsigned int  codepoint 
)

Definition at line 224 of file window_nix.cpp.

Here is the caller graph for this function:

◆ close_window()

void window::close_window ( sys::state game_state)

Definition at line 101 of file window_nix.cpp.

Here is the caller graph for this function:

◆ create_window()

void window::create_window ( sys::state game_state,
creation_parameters const &  params 
)

Definition at line 278 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ emit_error_message()

void window::emit_error_message ( std::string const &  content,
bool  fatal 
)

Definition at line 355 of file window_nix.cpp.

Here is the caller graph for this function:

◆ focus_callback()

void window::focus_callback ( GLFWwindow *  window,
int  focused 
)

Definition at line 265 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ framebuffer_size_callback()

void window::framebuffer_size_callback ( GLFWwindow *  window,
int  width,
int  height 
)

Definition at line 253 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_current_modifiers() [1/3]

sys::key_modifiers window::get_current_modifiers ( )

Definition at line 92 of file window_win.cpp.

Here is the caller graph for this function:

◆ get_current_modifiers() [2/3]

sys::key_modifiers window::get_current_modifiers ( GLFWwindow *  window)

Definition at line 106 of file window_nix.cpp.

◆ get_current_modifiers() [3/3]

sys::key_modifiers window::get_current_modifiers ( int  glfw_mods)

Definition at line 118 of file window_nix.cpp.

◆ get_window_size()

void window::get_window_size ( sys::state const &  game_state,
int &  width,
int &  height 
)

Definition at line 68 of file window_nix.cpp.

◆ is_in_fullscreen()

bool window::is_in_fullscreen ( sys::state const &  game_state)

Definition at line 72 of file window_nix.cpp.

◆ is_key_depressed()

bool window::is_key_depressed ( sys::state const &  game_state,
sys::virtual_key  key 
)

Definition at line 60 of file window_nix.cpp.

◆ mouse_button_callback()

void window::mouse_button_callback ( GLFWwindow *  window,
int  button,
int  action,
int  mods 
)

Definition at line 175 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_window_change()

void window::on_window_change ( GLFWwindow *  window)

Definition at line 231 of file window_nix.cpp.

Here is the caller graph for this function:

◆ scroll_callback()

void window::scroll_callback ( GLFWwindow *  window,
double  xoffset,
double  yoffset 
)

Definition at line 211 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_borderless_full_screen()

void window::set_borderless_full_screen ( sys::state game_state,
bool  fullscreen 
)

Definition at line 76 of file window_nix.cpp.

Here is the caller graph for this function:

◆ window_iconify_callback()

void window::window_iconify_callback ( GLFWwindow *  window,
int  iconified 
)

Definition at line 257 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ window_maximize_callback()

void window::window_maximize_callback ( GLFWwindow *  window,
int  maximized 
)

Definition at line 261 of file window_nix.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ window_size_callback()

void window::window_size_callback ( GLFWwindow *  window,
int  width,
int  height 
)

Definition at line 248 of file window_nix.cpp.

Here is the caller graph for this function:

◆ WndProc()

LRESULT CALLBACK window::WndProc ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 100 of file window_win.cpp.

Here is the call graph for this function: