summaryrefslogtreecommitdiff
path: root/src/window.h
blob: df4ee059327472473ec9a23c2d59b2023b5e69c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "utils.h"

struct eventloop_s;
typedef u32 window_id_t;

struct window_s {
  struct eventloop_s *loop;
  window_id_t id;

  wl_surface_t surface;
  xdg_surface_t xdg_surface;
  xdg_toplevel_t xdg_toplevel;
};

bool wayc_window_init(struct window_s *window, const char *name,
                      struct eventloop_s *loop);
void wayc_window_deinit(struct window_s *window);