libxputty
0.1
Loading...
Searching...
No Matches
xputty
header
widgets
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
29
extern
"C"
{
30
#endif
31
32
42
void
_rounded_rectangle
(cairo_t *cr,
float
x,
float
y,
float
width,
float
height);
43
51
void
_pattern_out
(
Widget_t
*w,
Color_state
st,
int
height);
52
60
void
_pattern_in
(
Widget_t
*w,
Color_state
st,
int
height);
61
68
void
_draw_switch_image_button
(
void
*w_,
void
* user_data);
69
76
void
_draw_button
(
void
*w_,
void
* user_data);
77
84
void
_draw_base_button
(
void
*w_,
void
* user_data);
85
92
void
_draw_on_off_button
(
void
*w_,
void
* user_data);
93
100
void
_draw_ti_button
(
void
*w_,
void
* user_data);
101
108
void
_draw_check_button
(
void
*w_,
void
* user_data);
109
116
void
_draw_check_box
(
void
*w_,
void
* user_data);
117
118
/*---------------------------------------------------------------------
119
-----------------------------------------------------------------------
120
button
121
-----------------------------------------------------------------------
122
----------------------------------------------------------------------*/
123
131
void
_button_pressed
(
void
*w_,
void
* button_,
void
* user_data);
132
140
void
_button_released
(
void
*w_,
void
* button_,
void
* user_data);
141
142
/*---------------------------------------------------------------------
143
-----------------------------------------------------------------------
144
toggle button
145
-----------------------------------------------------------------------
146
----------------------------------------------------------------------*/
147
155
void
_toggle_button_pressed
(
void
*w_,
void
* button_,
void
* user_data);
156
164
void
_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
Widget_t - struct to hold the basic Widget_t info.
Definition
xwidget.h:457
xbutton.h
_button_released
void _button_released(void *w_, void *button_, void *user_data)
_button_released - redraw the button and send state via user_callback
Definition
xbutton_private.c:425
_draw_switch_image_button
void _draw_switch_image_button(void *w_, void *user_data)
draw switch_image_button - internal draw the button to the buffer
Definition
xbutton_private.c:114
_toggle_button_released
void _toggle_button_released(void *w_, void *button_, void *user_data)
_toggle_button_released - redraw the button and send state via user_callback
Definition
xbutton_private.c:442
_pattern_out
void _pattern_out(Widget_t *w, Color_state st, int height)
_pattern_in - a little pattern to make press state more visible
Definition
xbutton_private.c:35
_draw_base_button
void _draw_base_button(void *w_, void *user_data)
_draw_base_button - internal draw the button with base to the buffer
Definition
xbutton_private.c:220
_draw_check_button
void _draw_check_button(void *w_, void *user_data)
_draw_check_button - internal draw the button to the buffer
Definition
xbutton_private.c:341
_draw_button
void _draw_button(void *w_, void *user_data)
_draw_button - internal draw the button to the buffer
Definition
xbutton_private.c:191
_toggle_button_pressed
void _toggle_button_pressed(void *w_, void *button_, void *user_data)
_toggle_button_pressed - redraw the button and send state via user_callback
Definition
xbutton_private.c:437
_pattern_in
void _pattern_in(Widget_t *w, Color_state st, int height)
_pattern_in - a little pattern to make press state more visible
Definition
xbutton_private.c:46
_button_pressed
void _button_pressed(void *w_, void *button_, void *user_data)
_button_pressed - redraw the button and send state via user_callback
Definition
xbutton_private.c:420
_draw_on_off_button
void _draw_on_off_button(void *w_, void *user_data)
_draw_on_off_button - internal draw the on/off button to the buffer
Definition
xbutton_private.c:274
_draw_check_box
void _draw_check_box(void *w_, void *user_data)
_draw_check_box - internal draw the check box to the buffer
Definition
xbutton_private.c:374
_draw_ti_button
void _draw_ti_button(void *w_, void *user_data)
_draw_ti_button - internal draw the button to the buffer
Definition
xbutton_private.c:316
_rounded_rectangle
void _rounded_rectangle(cairo_t *cr, float x, float y, float width, float height)
_rounded_rectangle - internal draw a rounded button
Definition
xbutton_private.c:25
Color_state
Color_state
Color_state - select color mode to use on Widget_t.
Definition
xcolor.h:43
Generated by
1.9.8