libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xlistbox_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 XLISTBOX_PRIVATE_H_
24 #define XLISTBOX_PRIVATE_H_
25 
26 #include "xlistbox.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
33 /**
34  * @brief _draw_listbox - draw listbox on expose call
35  * @param *w_ - the listbox to draw
36  * @param *user_data - attached user_data
37  * @return void
38  */
39 
40 void _draw_listbox(void *w_, void* user_data);
41 
42 /**
43  * @brief _draw_listbox_item - draw item on expose call
44  * @param *w_ - the item to draw
45  * @param *user_data - attached user_data
46  * @return void
47  */
48 
49 void _draw_listbox_item(void *w_, void* user_data);
50 
51 /**
52  * @brief _draw_listbox_viewslider - draw a slider on the viewport
53  * to indicate the view point
54  * @param *w_ - void pointer to view_port
55  * @param *user_data - attached user_data
56  * @return void
57  */
58 
59 void _draw_listbox_viewslider(void *w_, void* user_data);
60 
61 /**
62  * @brief _reconfigure_listbox_viewport - reconfigure the viewport adjustment
63  * on size changes
64  * @param *w_ - void pointer to view_port
65  * @param *user_data - attached user_data
66  * @return void
67  */
68 
69 void _reconfigure_listbox_viewport(void *w_, void* user_data);
70 
71 /**
72  * @brief _configure_listbox - configure the viewport on mapping
73  * @param *w_ - void pointer to view_port
74  * @param *user_data - attached user_data
75  * @return void
76  */
77 
78 void _configure_listbox(void *w_, void* user_data);
79 
80 /**
81  * @brief _set_listbox_viewpoint - move the view_port to position
82  * @param *w_ - void pointer to view_port
83  * @param *user_data - attached user_data
84  * @return void
85  */
86 
87 void _set_listbox_viewpoint(void *w_, void* user_data);
88 
89 /**
90  * @brief _listbox_entry_released - redraw the slider when buttob released
91  * @param *w_ - void pointer to the Widget_t entry
92  * @param *button_ - void pointer to the XButtonEvent
93  * @param *user_data - void pointer to attached user_data
94  * @return void
95  */
96 
97 void _listbox_entry_released(void *w_, void* button_, void* user_data);
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif //XLISTBOX_PRIVATE_H_
_draw_listbox
void _draw_listbox(void *w_, void *user_data)
_draw_listbox - draw listbox on expose call
Definition: xlistbox_private.c:26
_draw_listbox_viewslider
void _draw_listbox_viewslider(void *w_, void *user_data)
_draw_listbox_viewslider - draw a slider on the viewport to indicate the view point
Definition: xlistbox_private.c:100
xlistbox.h
_reconfigure_listbox_viewport
void _reconfigure_listbox_viewport(void *w_, void *user_data)
_reconfigure_listbox_viewport - reconfigure the viewport adjustment on size changes
Definition: xlistbox_private.c:77
_listbox_entry_released
void _listbox_entry_released(void *w_, void *button_, void *user_data)
_listbox_entry_released - redraw the slider when buttob released
Definition: xlistbox_private.c:132
_configure_listbox
void _configure_listbox(void *w_, void *user_data)
_configure_listbox - configure the viewport on mapping
Definition: xlistbox_private.c:90
_set_listbox_viewpoint
void _set_listbox_viewpoint(void *w_, void *user_data)
_set_listbox_viewpoint - move the view_port to position
Definition: xlistbox_private.c:123
_draw_listbox_item
void _draw_listbox_item(void *w_, void *user_data)
_draw_listbox_item - draw item on expose call
Definition: xlistbox_private.c:33