libxputty  0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xlistview_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 XLISTVIEW_PRIVATE_H_
24 #define XLISTVIEW_PRIVATE_H_
25 
26 #include "xlistview.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
33 /**
34  * @brief _draw_listview - draw listview on expose call
35  * @param *w_ - the listview to draw
36  * @param *user_data - attached user_data
37  * @return void
38  */
39 
40 void _draw_listview(void *w_, void* user_data);
41 
42 /**
43  * @brief _draw_list - draw list on expose call
44  * @param *w_ - the Widget_t to draw
45  * @param *user_data - attached user_data
46  * @return void
47  */
48 
49 void _draw_list(void *w_, void* user_data);
50 
51 /**
52  * @brief _list_motion - follow mouse pointer to set prelight item
53  * @param *w_ - void pointer to the Widget_t listview
54  * @param *xmotion_ - void pointer to the XMotionEvent
55  * @param *user_data - void pointer to attached user_data
56  * @return void
57  */
58 
59 void _list_motion(void *w_, void* xmotion_, void* user_data);
60 
61 /**
62  * @brief _list_key_pressed - move listview or set active entry
63  * @param *w_ - void pointer to the Widget_t listview
64  * @param *button_ - void pointer to the XButtonEvent
65  * @param *user_data - void pointer to attached user_data
66  * @return void
67  */
68 
69 void _list_key_pressed(void *w_, void* xkey_, void* user_data);
70 
71 /**
72  * @brief _list_entry_released - move listview or set active entry
73  * @param *w_ - void pointer to the Widget_t listview
74  * @param *button_ - void pointer to the XButtonEvent
75  * @param *user_data - void pointer to attached user_data
76  * @return void
77  */
78 
79 void _list_entry_released(void *w_, void* button_, void* user_data);
80 
81 /**
82  * @brief _leave_list - draw list on pointer leave
83  * @param *w_ - the Widget_t to draw
84  * @param *user_data - attached user_data
85  * @return void
86  */
87 
88 void _leave_list(void *w_, void* user_data);
89 
90 /**
91  * @brief _reconfigure_listview_viewport - reconfigure the viewport adjustment
92  * on size changes
93  * @param *w_ - void pointer to view_port
94  * @param *user_data - attached user_data
95  * @return void
96  */
97 
98 void _reconfigure_listview_viewport(void *w_, void* user_data);
99 
100 /**
101  * @brief _configure_listview - configure the viewport on mapping
102  * @param *w_ - void pointer to view_port
103  * @param *user_data - attached user_data
104  * @return void
105  */
106 
107 void _configure_listview(void *w_, void* user_data);
108 
109 /**
110  * @brief _draw_listview_viewslider - draw a slider on the viewport
111  * to indicate the view point
112  * @param *w_ - void pointer to view_port
113  * @param *user_data - attached user_data
114  * @return void
115  */
116 
117 void _draw_listview_viewslider(void *w_, void* user_data);
118 
119 /**
120  * @brief _set_listview_viewpoint - move the view_port to position
121  * @param *w_ - void pointer to view_port
122  * @param *user_data - attached user_data
123  * @return void
124  */
125 
126 void _set_listview_viewpoint(void *w_, void* user_data);
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif //XLISTVIEW_PRIVATE_H_
_reconfigure_listview_viewport
void _reconfigure_listview_viewport(void *w_, void *user_data)
_reconfigure_listview_viewport - reconfigure the viewport adjustment on size changes
Definition: xlistview_private.c:169
_list_entry_released
void _list_entry_released(void *w_, void *button_, void *user_data)
_list_entry_released - move listview or set active entry
Definition: xlistview_private.c:134
_list_motion
void _list_motion(void *w_, void *xmotion_, void *user_data)
_list_motion - follow mouse pointer to set prelight item
Definition: xlistview_private.c:93
xlistview.h
_draw_list
void _draw_list(void *w_, void *user_data)
_draw_list - draw list on expose call
Definition: xlistview_private.c:33
_set_listview_viewpoint
void _set_listview_viewpoint(void *w_, void *user_data)
_set_listview_viewpoint - move the view_port to position
Definition: xlistview_private.c:215
_configure_listview
void _configure_listview(void *w_, void *user_data)
_configure_listview - configure the viewport on mapping
Definition: xlistview_private.c:182
_draw_listview_viewslider
void _draw_listview_viewslider(void *w_, void *user_data)
_draw_listview_viewslider - draw a slider on the viewport to indicate the view point
Definition: xlistview_private.c:192
_leave_list
void _leave_list(void *w_, void *user_data)
_leave_list - draw list on pointer leave
Definition: xlistview_private.c:162
_list_key_pressed
void _list_key_pressed(void *w_, void *xkey_, void *user_data)
_list_key_pressed - move listview or set active entry
Definition: xlistview_private.c:108
_draw_listview
void _draw_listview(void *w_, void *user_data)
_draw_listview - draw listview on expose call
Definition: xlistview_private.c:26