Banjo API 1.0.0-rc.2
Low-level C99 game development API
Loading...
Searching...
No Matches
window.h File Reference
#include <banjo/api.h>
#include <banjo/error.h>
#include <banjo/rect.h>
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* bj_window_draw_fn) (struct bj_window *window, struct bj_render_target *target, const struct bj_rect *dirty, void *user_data)
typedef void(* bj_window_resize_fn) (struct bj_window *window, int width, int height, void *user_data)
typedef enum bj_window_flag bj_window_flag

Enumerations

enum  bj_window_flag {
  BJ_WINDOW_FLAG_NONE = 0x00 , BJ_WINDOW_FLAG_CLOSE = 0x01 , BJ_WINDOW_FLAG_KEY_REPEAT = 0x02 , BJ_WINDOW_FLAG_RESIZABLE = 0x04 ,
  BJ_WINDOW_FLAG_FULLSCREEN = 0x08 , BJ_WINDOW_FLAG_ALL = 0xFF
}

Functions

struct bj_windowbj_bind_window (const char *title, uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t flags, struct bj_error **error)
void bj_unbind_window (struct bj_window *window)
void bj_set_window_should_close (struct bj_window *window)
bj_bool bj_should_close_window (struct bj_window *window)
uint8_t bj_get_window_flags (struct bj_window *window, uint8_t flags)
int bj_get_key (const struct bj_window *window, int key)
int bj_get_window_size (const struct bj_window *window, int *width, int *height)
void bj_set_draw_callback (struct bj_window *window, bj_window_draw_fn fn, void *user_data)
void bj_set_resize_callback (struct bj_window *window, bj_window_resize_fn fn, void *user_data)
void bj_set_window_fullscreen (struct bj_window *window, bj_bool enable)
bj_bool bj_is_window_fullscreen (struct bj_window *window)
void bj_invalidate_rect (struct bj_window *window, const struct bj_rect *rect)
static void bj_invalidate_window (struct bj_window *window)
struct bj_bitmapbj_render_target_bitmap (struct bj_render_target *target)

Detailed Description

Header file for bj_window type.

Definition in file window.h.