GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
gp_widget_log.h
Go to the documentation of this file.
1
//SPDX-License-Identifier: LGPL-2.0-or-later
2
/*
3
4
Copyright (c) 2014-2024 Cyril Hrubis <metan@ucw.cz>
5
6
*/
7
23
#ifndef GP_WIDGET_LOG_H
24
#define GP_WIDGET_LOG_H
25
26
#include <stdlib.h>
27
#include <
utils/gp_cbuffer.h
>
28
35
void
gp_widget_log_append
(
gp_widget
*self,
const
char
*text);
36
50
gp_widget
*
gp_widget_log_new
(
gp_widget_tattr
tattr,
51
unsigned
int
min_width,
unsigned
int
min_lines,
52
size_t
max_logs);
53
54
#endif
/* GP_WIDGET_LOG_H */
gp_cbuffer.h
Circular buffer indexing and iterators.
gp_widget_log_new
gp_widget * gp_widget_log_new(gp_widget_tattr tattr, unsigned int min_width, unsigned int min_lines, size_t max_logs)
Allocates a log widget.
gp_widget_log_append
void gp_widget_log_append(gp_widget *self, const char *text)
Appends text to the log.
gp_widget_tattr
gp_widget_tattr
Text attribute flags.
Definition
gp_widget_tattr.h:27
gp_widget
A widget base.
Definition
gp_widget.h:28
Generated by
1.9.8