libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xcombobox_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 XCOMBOBOX_PRIVATE_H_
24 #define XCOMBOBOX_PRIVATE_H_
25 
26 #include "xcombobox.h"
27 #include "xbutton_private.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 /**
34  * @brief _draw_combobox_button - internal draw the combobox button to the buffer
35  * @param *w_ - void pointer to the Widget_t combobox button
36  * @param *user_data - void pointer to attached user_data
37  * @return void
38  */
39 
40 void _draw_combobox_button(void *w_, void* user_data);
41 
42 /**
43  * @brief _draw_combobox - internal draw the combobox to the buffer
44  * @param *w_ - void pointer to the Widget_t combobox
45  * @param *user_data - void pointer to attached user_data
46  * @return void
47  */
48 
49 void _draw_combobox(void *w_, void* user_data);
50 
51 /**
52  * @brief _combobox_button_released - popup menu on right click
53  * @param *w_ - void pointer to the Widget_t button
54  * @param *button - void pointer to XEvent.xbutton struct
55  * @param *user_data - void pointer to attached user_data
56  * @return void
57  */
58 
59 void _combobox_button_released(void *w_, void* button_, void* user_data);
60 
61 /**
62  * @brief _button_combobox_released - popup the combobox menu
63  * @param *w_ - void pointer to the Widget_t button
64  * @param *button - void pointer to XEvent.xbutton struct
65  * @param *user_data - void pointer to attached user_data
66  * @return void
67  */
68 
69 void _button_combobox_released(void *w_, void* button_, void* user_data);
70 
71 /**
72  * @brief _entry_released - the combobox menu release func
73  * @param *w_ - void pointer to the Widget_t menu
74  * @param *item - void pointer to the selected item *(int*)
75  * @param *user_data - void pointer to the item label *(const char**)
76  * @return void
77  */
78 
79 void _entry_released(void *w_, void* item_, void* user_data);
80 
81 /**
82  * @brief _set_entry - set the active combobox entry on adjustment change
83  * @param *w_ - void pointer to the Widget_t combobox
84  * @param *user_data - void pointer to the item label *(const char**)
85  * @return void
86  */
87 
88 void _set_entry(void *w_, void* user_data);
89 
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
95 #endif //XCOMBOBOX_PRIVATE_H_
_button_combobox_released
void _button_combobox_released(void *w_, void *button_, void *user_data)
_button_combobox_released - popup the combobox menu
Definition: xcombobox_private.c:173
_set_entry
void _set_entry(void *w_, void *user_data)
_set_entry - set the active combobox entry on adjustment change
Definition: xcombobox_private.c:198
xbutton_private.h
_combobox_button_released
void _combobox_button_released(void *w_, void *button_, void *user_data)
_combobox_button_released - popup menu on right click
Definition: xcombobox_private.c:162
xcombobox.h
_entry_released
void _entry_released(void *w_, void *item_, void *user_data)
_entry_released - the combobox menu release func
Definition: xcombobox_private.c:184
_draw_combobox_button
void _draw_combobox_button(void *w_, void *user_data)
_draw_combobox_button - internal draw the combobox button to the buffer
Definition: xcombobox_private.c:26
_draw_combobox
void _draw_combobox(void *w_, void *user_data)
_draw_combobox - internal draw the combobox to the buffer
Definition: xcombobox_private.c:100