|
| KORE_FUNC int | kore_window_create (kore_window_parameters *win, kore_framebuffer_parameters *frame) |
| | Creates a window.
|
|
KORE_FUNC void | kore_window_destroy (int window) |
| | Closes and destroys a window.
|
|
KORE_FUNC void | kore_window_options_set_defaults (kore_window_parameters *win) |
|
KORE_FUNC void | kore_framebuffer_options_set_defaults (kore_framebuffer_parameters *frame) |
| KORE_FUNC int | kore_count_windows (void) |
| | Counts all windows the program created, including the initial window created by kore_init.
|
|
KORE_FUNC void | kore_window_resize (int window, int width, int height) |
| | Resizes a window.
|
|
KORE_FUNC void | kore_window_move (int window, int x, int y) |
| | Moves a window.
|
|
KORE_FUNC void | kore_window_change_mode (int window, kore_window_mode mode) |
| | Switches between window and fullscreen-modes.
|
|
KORE_FUNC void | kore_window_change_features (int window, int features) |
| | Applies an or-ed combination of KORE_WINDOW_FEATURE values.
|
|
KORE_FUNC void | kore_window_change_framebuffer (int window, kore_framebuffer_parameters *frame) |
| | Changes the framebuffer-options of a window.
|
| KORE_FUNC int | kore_window_x (int window) |
| | Returns the x position of a window.
|
| KORE_FUNC int | kore_window_y (int window) |
| | Returns the y position of a window.
|
| KORE_FUNC int | kore_window_width (int window) |
| | Returns the width of a window.
|
| KORE_FUNC int | kore_window_height (int window) |
| | Returns the height of a window.
|
| KORE_FUNC int | kore_window_display (int window) |
| | Returns the id of the display the window currently is on.
|
| KORE_FUNC kore_window_mode | kore_window_get_mode (int window) |
| | Returns the current window-mode.
|
|
KORE_FUNC void | kore_window_show (int window) |
| | Makes the window visible.
|
|
KORE_FUNC void | kore_window_hide (int window) |
| | Hides a window.
|
|
KORE_FUNC void | kore_window_set_title (int window, const char *title) |
| | Sets the title of a window.
|
|
KORE_FUNC void | kore_window_set_resize_callback (int window, void(*callback)(int x, int y, void *data), void *data) |
| | Sets a resize callback that's called whenever the window is resized.
|
|
KORE_FUNC void | kore_window_set_ppi_changed_callback (int window, void(*callback)(int ppi, void *data), void *data) |
| | Sets a PPI callback that's called whenever the window moves to a display that uses a different PPI-setting.
|
|
KORE_FUNC void | kore_window_set_close_callback (int window, bool(*callback)(void *data), void *data) |
| | Sets a close callback that's called when the window is about to close. Returning false from the callback tries to stop the window from closing.
|
| KORE_FUNC bool | kore_window_vsynced (int window) |
| | Returns whether the window is vsynced or not.
|
Provides functionality for creating and handling windows.