kiba-engine
|
Linux specific implementation of windowing functionality. More...
#include <kiba/platform/window.h>
#include <kiba/core/event.h>
#include <kiba/core/input.h>
#include <kiba/core/log.h>
#include <kiba/platform/linux/window.h>
#include <stdlib.h>
#include <string.h>
#include <xcb/xkb.h>
Go to the source code of this file.
Functions | |
b8 | window_create (platform_window *window, const char *title, u32 x, u32 y, u32 w, u32 h, allocator *alloc) |
Create a platform window. More... | |
void | window_destroy (platform_window *window) |
Destroy platform window and clean up internal state. More... | |
key_code | translate_keysym (xcb_keysym_t key_code) |
Translates xcb keysym to kiba key code. More... | |
key_code | translate_button (xcb_button_t button) |
Translates xcb button to kiba key code. More... | |
b8 | window_poll_events (platform_window *window) |
Poll for events emited by the window. More... | |
Linux specific implementation of windowing functionality.
Definition in file window.c.
key_code translate_button | ( | xcb_button_t | button | ) |
key_code translate_keysym | ( | xcb_keysym_t | key_code | ) |
b8 window_create | ( | platform_window * | window, |
const char * | title, | ||
u32 | x, | ||
u32 | y, | ||
u32 | w, | ||
u32 | h, | ||
allocator * | alloc | ||
) |
Create a platform window.
window | the window to populate with data |
title | the text to display as the window title |
x | initial horizontal position on the screen |
y | initial vertical position on the screen |
w | initial width of the window |
h | initial height of the window |
Definition at line 17 of file window.c.
void window_destroy | ( | platform_window * | window | ) |
b8 window_poll_events | ( | platform_window * | window | ) |