libxputty 0.1
Loading...
Searching...
No Matches
xbutton.h
Go to the documentation of this file.
1/*
2 * 0BSD
3 *
4 * BSD Zero Clause License
5 *
6 * Copyright (c) 2019 Hermann Meyer
7 *
8 * Permission to use, copy, modify, and/or distribute this software for any
9 * purpose with or without fee is hereby granted.
10
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
18 *
19 */
20
21#pragma once
22
23#ifndef XBUTTON_H_
24#define XBUTTON_H_
25
26#include "xputty.h"
27
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33
43Widget_t* add_button(Widget_t *parent, const char * label,
44 int x, int y, int width, int height);
54Widget_t* add_image_button(Widget_t *parent, const char * label,
55 int x, int y, int width, int height);
65Widget_t* add_on_off_button(Widget_t *parent, const char * label,
66 int x, int y, int width, int height);
67
77Widget_t* add_toggle_button(Widget_t *parent, const char * label,
78 int x, int y, int width, int height);
79
89Widget_t* add_image_toggle_button(Widget_t *parent, const char * label,
90 int x, int y, int width, int height);
91
101Widget_t* add_switch_image_button(Widget_t *parent, const char * label,
102 int x, int y, int width, int height);
103
113Widget_t* add_check_button(Widget_t *parent, const char * label,
114 int x, int y, int width, int height);
115
125Widget_t* add_check_box(Widget_t *parent, const char * label,
126 int x, int y, int width, int height);
127
128#ifdef __cplusplus
129}
130#endif
131
132#endif // XBUTTON_H_
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
Widget_t * add_toggle_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_toggle_button - add a button to a Widget_t connect to func.value_changed_callback to implement yo...
Definition xbutton.c:73
Widget_t * add_switch_image_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_switch_image_button - add a button to a Widget_t connect to func.value_changed_callback to implem...
Definition xbutton.c:105
Widget_t * add_check_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_check_button - add a button to a Widget_t connect to func.value_changed_callback to implement you...
Definition xbutton.c:121
Widget_t * add_on_off_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_on_off_button - add a button with default on/off label to a Widget_t connect to func....
Definition xbutton.c:58
Widget_t * add_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_button - add a button to a Widget_t connect to func.value_changed_callback to implement your acti...
Definition xbutton.c:26
Widget_t * add_image_toggle_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_image_toggle_button - add a button to a Widget_t connect to func.value_changed_callback to implem...
Definition xbutton.c:89
Widget_t * add_check_box(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_check_box - add a check box to a Widget_t connect to func.value_changed_callback to implement you...
Definition xbutton.c:141
Widget_t * add_image_button(Widget_t *parent, const char *label, int x, int y, int width, int height)
add_image_button - add a image button to a Widget_t connect to func.value_changed_callback to impleme...
Definition xbutton.c:42
This file contains definitions and structs used on all platforms. Platform specific definitions are l...