Project Alice
|
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 ¶ms) |
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) |
|
strong |
Enumerator | |
---|---|
normal | |
busy | |
drag_select | |
hostile_move | |
friendly_move | |
no_move |
Definition at line 61 of file window.hpp.
|
strong |
Enumerator | |
---|---|
normal | |
maximized | |
minimized |
Definition at line 46 of file window.hpp.
void window::change_cursor | ( | sys::state & | state, |
cursor_type | type | ||
) |
void window::character_callback | ( | GLFWwindow * | window, |
unsigned int | codepoint | ||
) |
void window::close_window | ( | sys::state & | game_state | ) |
void window::create_window | ( | sys::state & | game_state, |
creation_parameters const & | params | ||
) |
Definition at line 278 of file window_nix.cpp.
void window::emit_error_message | ( | std::string const & | content, |
bool | fatal | ||
) |
void window::focus_callback | ( | GLFWwindow * | window, |
int | focused | ||
) |
Definition at line 265 of file window_nix.cpp.
void window::framebuffer_size_callback | ( | GLFWwindow * | window, |
int | width, | ||
int | height | ||
) |
Definition at line 253 of file window_nix.cpp.
sys::key_modifiers window::get_current_modifiers | ( | ) |
sys::key_modifiers window::get_current_modifiers | ( | GLFWwindow * | window | ) |
Definition at line 106 of file window_nix.cpp.
sys::key_modifiers window::get_current_modifiers | ( | int | glfw_mods | ) |
Definition at line 118 of file window_nix.cpp.
void window::get_window_size | ( | sys::state const & | game_state, |
int & | width, | ||
int & | height | ||
) |
Definition at line 68 of file window_nix.cpp.
bool window::is_in_fullscreen | ( | sys::state const & | game_state | ) |
Definition at line 72 of file window_nix.cpp.
bool window::is_key_depressed | ( | sys::state const & | game_state, |
sys::virtual_key | key | ||
) |
Definition at line 60 of file window_nix.cpp.
void window::mouse_button_callback | ( | GLFWwindow * | window, |
int | button, | ||
int | action, | ||
int | mods | ||
) |
Definition at line 175 of file window_nix.cpp.
void window::on_window_change | ( | GLFWwindow * | window | ) |
void window::scroll_callback | ( | GLFWwindow * | window, |
double | xoffset, | ||
double | yoffset | ||
) |
Definition at line 211 of file window_nix.cpp.
void window::set_borderless_full_screen | ( | sys::state & | game_state, |
bool | fullscreen | ||
) |
void window::window_iconify_callback | ( | GLFWwindow * | window, |
int | iconified | ||
) |
Definition at line 257 of file window_nix.cpp.
void window::window_maximize_callback | ( | GLFWwindow * | window, |
int | maximized | ||
) |
Definition at line 261 of file window_nix.cpp.
void window::window_size_callback | ( | GLFWwindow * | window, |
int | width, | ||
int | height | ||
) |
LRESULT CALLBACK window::WndProc | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |