libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xknob_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 XKNOB_PRIVATE_H_
24 #define XKNOB_PRIVATE_H_
25 
26 #include "xknob.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /**
33  * @brief _draw_image_knob - internal draw the knob from image
34  * to the buffer
35  * @param *w - pointer to the Widget_t knob
36  * @return void
37  */
38 
39 void _draw_image_knob(Widget_t *w, int width_t, int height_t);
40 
41 /**
42  * @brief _draw_knob_image - internal draw the knob to the buffer
43  * @param *w_ - void pointer to the Widget_t button
44  * @param *user_data - void pointer to attached user_data
45  * @return void
46  */
47 
48 void _draw_knob_image(void *w_, void* user_data);
49 
50 /**
51  * @brief _draw_knob - internal draw the knob to the buffer
52  * @param *w_ - void pointer to the Widget_t button
53  * @param *user_data - void pointer to attached user_data
54  * @return void
55  */
56 
57 void _draw_knob(void *w_, void* user_data);
58 
59 /**
60  * @brief _knob_released - redraw the slider when buttob released
61  * @param *w_ - void pointer to the Widget_t button
62  * @param *user_data - void pointer to attached user_data
63  * @return void
64  */
65 
66 void _knob_released(void *w_, void* button_, void* user_data);
67 
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif //XKNOB_PRIVATE_H_
_draw_knob_image
void _draw_knob_image(void *w_, void *user_data)
_draw_knob_image - internal draw the knob to the buffer
Definition: xknob_private.c:51
_draw_image_knob
void _draw_image_knob(Widget_t *w, int width_t, int height_t)
_draw_image_knob - internal draw the knob from image to the buffer
Definition: xknob_private.c:35
_knob_released
void _knob_released(void *w_, void *button_, void *user_data)
_knob_released - redraw the slider when buttob released
Definition: xknob_private.c:141
xknob.h
_draw_knob
void _draw_knob(void *w_, void *user_data)
_draw_knob - internal draw the knob to the buffer
Definition: xknob_private.c:57
Widget_t
Widget_t - struct to hold the basic Widget_t info.
Definition: xwidget.h:298