libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xslider_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 XSLIDER_PRIVATE_H_
24 #define XSLIDER_PRIVATE_H_
25 
26 #include "xslider.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /**
33  * @brief _pattern_vslider - set pattern for the slider base
34  * @param *w_ - void pointer to the Widget_t button
35  * @param st - the Widget_t Color_t mode to use
36  * @param width - the width of the base
37  * @return void
38  */
39 
40 void _pattern_vslider(Widget_t *w, Color_state st, int width);
41 
42 /**
43  * @brief _pattern_hslider - set pattern for the slider base
44  * @param *w_ - void pointer to the Widget_t button
45  * @param st - the Widget_t Color_t mode to use
46  * @param width - the width of the base
47  * @return void
48  */
49 
50 void _pattern_hslider(Widget_t *w, Color_state st, int width);
51 
52 /**
53  * @brief _draw_vslider - internal draw the slider to the buffer
54  * @param *w_ - void pointer to the Widget_t button
55  * @param *user_data - void pointer to attached user_data
56  * @return void
57  */
58 
59 void _draw_vslider(void *w_, void* user_data);
60 
61 /**
62  * @brief _draw_hslider - internal draw the slider to the buffer
63  * @param *w_ - void pointer to the Widget_t button
64  * @param *user_data - void pointer to attached user_data
65  * @return void
66  */
67 
68 void _draw_hslider(void *w_, void* user_data);
69 
70 /**
71  * @brief _slider_released - redraw the slider when button released
72  * @param *w_ - void pointer to the Widget_t button
73  * @param *user_data - void pointer to attached user_data
74  * @return void
75  */
76 
77 void _slider_released(void *w_, void* button_, void* user_data);
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif //XSLIDER_PRIVATE_H_
_slider_released
void _slider_released(void *w_, void *button_, void *user_data)
_slider_released - redraw the slider when button released
Definition: xslider_private.c:187
_draw_vslider
void _draw_vslider(void *w_, void *user_data)
_draw_vslider - internal draw the slider to the buffer
Definition: xslider_private.c:47
_pattern_hslider
void _pattern_hslider(Widget_t *w, Color_state st, int width)
_pattern_hslider - set pattern for the slider base
Definition: xslider_private.c:36
xslider.h
_draw_hslider
void _draw_hslider(void *w_, void *user_data)
_draw_hslider - internal draw the slider to the buffer
Definition: xslider_private.c:117
_pattern_vslider
void _pattern_vslider(Widget_t *w, Color_state st, int width)
_pattern_vslider - set pattern for the slider base
Definition: xslider_private.c:25
Widget_t
Widget_t - struct to hold the basic Widget_t info.
Definition: xwidget.h:298
Color_state
Color_state
Color_state - select color mode to use on Widget_t.
Definition: xcolor.h:38