NekoWM
A gfxprim proxy backend tiling window manager
Loading...
Searching...
No Matches
neko_ctx.h
Go to the documentation of this file.
1
//SPDX-License-Identifier: GPL-2.0-or-later
2
/*
3
4
Copyright (c) 2019-2024 Cyril Hrubis <metan@ucw.cz>
5
6
*/
7
13
#ifndef NEKO_CTX_H
14
#define NEKO_CTX_H
15
16
#include <text/gp_text.h>
17
#include <core/gp_types.h>
18
#include <backends/gp_types.h>
19
23
struct
neko_ctx
{
27
gp_pixel
col_fg
;
31
gp_pixel
col_bg
;
35
gp_pixel
col_sel
;
36
37
gp_size padd;
38
42
gp_text_style *
font
;
43
47
gp_text_style *
font_bold
;
48
52
gp_backend *
backend
;
53
};
54
55
extern
struct
neko_ctx
ctx;
56
57
void
neko_ctx_init(gp_backend *
backend
,
int
reverse,
const
char
*font_family);
58
59
#endif
/* NEKO_CTX_H */
neko_ctx
A global context.
Definition
neko_ctx.h:23
neko_ctx::backend
gp_backend * backend
Pointer to the current backend.
Definition
neko_ctx.h:52
neko_ctx::col_fg
gp_pixel col_fg
A foreground color.
Definition
neko_ctx.h:27
neko_ctx::col_sel
gp_pixel col_sel
A selected color.
Definition
neko_ctx.h:35
neko_ctx::font_bold
gp_text_style * font_bold
Current bold font.
Definition
neko_ctx.h:47
neko_ctx::col_bg
gp_pixel col_bg
A background color.
Definition
neko_ctx.h:31
neko_ctx::font
gp_text_style * font
Current font.
Definition
neko_ctx.h:42
Generated by
1.9.8