libxputty 0.1
Loading...
Searching...
No Matches
xbutton_private.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_PRIVATE_H_
24#define XBUTTON_PRIVATE_H_
25
26#include "xbutton.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32
42void _rounded_rectangle(cairo_t *cr,float x, float y, float width, float height);
43
51void _pattern_out(Widget_t *w, Color_state st, int height);
52
60void _pattern_in(Widget_t *w, Color_state st, int height);
61
68void _draw_switch_image_button(void *w_, void* user_data);
69
76void _draw_button(void *w_, void* user_data);
77
84void _draw_base_button(void *w_, void* user_data);
85
92void _draw_on_off_button(void *w_, void* user_data);
93
100void _draw_ti_button(void *w_, void* user_data);
101
108void _draw_check_button(void *w_, void* user_data);
109
116void _draw_check_box(void *w_, void* user_data);
117
118/*---------------------------------------------------------------------
119-----------------------------------------------------------------------
120 button
121-----------------------------------------------------------------------
122----------------------------------------------------------------------*/
123
131void _button_pressed(void *w_, void* button_, void* user_data);
132
140void _button_released(void *w_, void* button_, void* user_data);
141
142/*---------------------------------------------------------------------
143-----------------------------------------------------------------------
144 toggle button
145-----------------------------------------------------------------------
146----------------------------------------------------------------------*/
147
155void _toggle_button_pressed(void *w_, void* button_, void* user_data);
156
164void _toggle_button_released(void *w_, void* button_, void* user_data);
165
166#ifdef __cplusplus
167}
168#endif
169
170#endif // XBUTTON_PRIVATE_H_
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
void _button_released(void *w_, void *button_, void *user_data)
_button_released - redraw the button and send state via user_callback
void _draw_switch_image_button(void *w_, void *user_data)
draw switch_image_button - internal draw the button to the buffer
void _toggle_button_released(void *w_, void *button_, void *user_data)
_toggle_button_released - redraw the button and send state via user_callback
void _pattern_out(Widget_t *w, Color_state st, int height)
_pattern_in - a little pattern to make press state more visible
void _draw_base_button(void *w_, void *user_data)
_draw_base_button - internal draw the button with base to the buffer
void _draw_check_button(void *w_, void *user_data)
_draw_check_button - internal draw the button to the buffer
void _draw_button(void *w_, void *user_data)
_draw_button - internal draw the button to the buffer
void _toggle_button_pressed(void *w_, void *button_, void *user_data)
_toggle_button_pressed - redraw the button and send state via user_callback
void _pattern_in(Widget_t *w, Color_state st, int height)
_pattern_in - a little pattern to make press state more visible
void _button_pressed(void *w_, void *button_, void *user_data)
_button_pressed - redraw the button and send state via user_callback
void _draw_on_off_button(void *w_, void *user_data)
_draw_on_off_button - internal draw the on/off button to the buffer
void _draw_check_box(void *w_, void *user_data)
_draw_check_box - internal draw the check box to the buffer
void _draw_ti_button(void *w_, void *user_data)
_draw_ti_button - internal draw the button to the buffer
void _rounded_rectangle(cairo_t *cr, float x, float y, float width, float height)
_rounded_rectangle - internal draw a rounded button
Color_state
Color_state - select color mode to use on Widget_t.
Definition xcolor.h:43