GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
gp_widget_switch.h
1
//SPDX-License-Identifier: LGPL-2.0-or-later
2
/*
3
4
Copyright (c) 2014-2020 Cyril Hrubis <metan@ucw.cz>
5
6
*/
7
8
#ifndef GP_WIDGET_SWITCH_H
9
#define GP_WIDGET_SWITCH_H
10
11
struct
gp_widget_switch {
12
unsigned
int
active_layout;
13
gp_widget
**layouts;
14
};
15
23
gp_widget
*gp_widget_switch_new(
unsigned
int
layouts);
24
32
unsigned
int
gp_widget_switch_layouts(
gp_widget
*self);
33
40
void
gp_widget_switch_layout(
gp_widget
*self,
unsigned
int
layout_nr);
41
48
void
gp_widget_switch_move(
gp_widget
*self,
int
where);
49
56
gp_widget
*gp_widget_switch_active(
gp_widget
*self);
57
67
gp_widget
*gp_widget_switch_put(
gp_widget
*self,
unsigned
int
layout_nr,
68
gp_widget
*child);
69
70
#endif
/* GP_WIDGET_SWITCH_H */
gp_widget
A widget base.
Definition
gp_widget.h:28
Generated by
1.9.8