libxputty
0.1
Loading...
Searching...
No Matches
xputty
header
widgets
xmenu_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 XMENU_PRIVATE_H_
24
#define XMENU_PRIVATE_H_
25
26
#include "
xmenu.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
38
void
_draw_menu_label
(
void
*w_,
void
* user_data);
39
46
void
_check_menu_state
(
void
*w_,
void
* user_data);
47
55
void
_menu_released
(
void
*w_,
void
* button_,
void
* user_data);
56
64
void
_menu_entry_released
(
void
*w_,
void
* item_,
void
* user_data);
65
72
void
_draw_menu
(
void
*w_,
void
* user_data);
73
80
void
_draw_menu_slider
(
void
*w_,
void
* user_data);
81
88
void
_draw_submenu
(
void
*w_,
void
* user_data);
89
96
void
_enter_submenu
(
void
*w_,
void
* user_data);
97
104
void
_leave_submenu
(
void
*w_,
void
* user_data);
105
112
void
_draw_item
(
void
*w_,
void
* user_data);
113
120
void
_draw_value_item
(
void
*w_,
void
* user_data);
121
128
void
_draw_accel_item
(
void
*w_,
void
* user_data);
129
136
void
_draw_check_item
(
void
*w_,
void
* user_data);
137
144
void
_draw_accel_check_item
(
void
*w_,
void
* user_data);
145
152
void
_set_viewpoint
(
void
*w_,
void
* user_data);
153
160
void
_set_menu_viewpoint
(
void
*w_,
void
* user_data);
161
169
void
_check_item_button_pressed
(
void
*w_,
void
* button_,
void
* user_data);
170
178
void
_radio_item_button_pressed
(
void
*w_,
void
* button_,
void
* user_data);
179
187
void
_value_item_released
(
void
*w_,
void
* button_,
void
* user_data);
188
197
void
_configure_menu
(
Widget_t
*parent,
Widget_t
*menu,
int
elem,
bool
above);
198
199
#ifdef __cplusplus
200
}
201
#endif
202
203
#endif
//XMENU_PRIVATE_H_
Widget_t
Widget_t - struct to hold the basic Widget_t info.
Definition
xwidget.h:457
xmenu.h
_draw_submenu
void _draw_submenu(void *w_, void *user_data)
_draw_submenu - draw submenu on expose call
Definition
xmenu_private.c:159
_set_menu_viewpoint
void _set_menu_viewpoint(void *w_, void *user_data)
_set_menu_viewpoint - move the view_port to position by slider
Definition
xmenu_private.c:451
_configure_menu
void _configure_menu(Widget_t *parent, Widget_t *menu, int elem, bool above)
_configure_menu - set final size and position of menu to a Widget_t
Definition
xmenu_private.c:478
_check_menu_state
void _check_menu_state(void *w_, void *user_data)
_check_menu_state - follow the mouse pointer when a menu is active
Definition
xmenu_private.c:79
_draw_item
void _draw_item(void *w_, void *user_data)
_draw_item - draw item on expose call
Definition
xmenu_private.c:266
_draw_value_item
void _draw_value_item(void *w_, void *user_data)
_draw_value_item - draw item on expose call
Definition
xmenu_private.c:299
_value_item_released
void _value_item_released(void *w_, void *button_, void *user_data)
_value_item_released - redraw item on button released
Definition
xmenu_private.c:473
_radio_item_button_pressed
void _radio_item_button_pressed(void *w_, void *button_, void *user_data)
_radio_item_button_pressed - redraw item on button press
Definition
xmenu_private.c:466
_draw_menu_slider
void _draw_menu_slider(void *w_, void *user_data)
_draw_menu_slider - draw the menu slider on expose call
Definition
xmenu_private.c:132
_menu_entry_released
void _menu_entry_released(void *w_, void *item_, void *user_data)
_menu_entry_released - the menu release func
Definition
xmenu_private.c:114
_check_item_button_pressed
void _check_item_button_pressed(void *w_, void *button_, void *user_data)
_check_item_button_pressed - redraw item on button press
Definition
xmenu_private.c:458
_set_viewpoint
void _set_viewpoint(void *w_, void *user_data)
_set_viewpoint - move the view_port to position
Definition
xmenu_private.c:439
_draw_accel_item
void _draw_accel_item(void *w_, void *user_data)
_draw_accel_item - draw accel item on expose call
Definition
xmenu_private.c:341
_menu_released
void _menu_released(void *w_, void *button_, void *user_data)
_menu_released - popup the menu on click
Definition
xmenu_private.c:106
_draw_accel_check_item
void _draw_accel_check_item(void *w_, void *user_data)
_accel_draw_check_item - draw item on expose call
Definition
xmenu_private.c:391
_draw_menu_label
void _draw_menu_label(void *w_, void *user_data)
_draw_menu_label - draw the menu label on expose call
Definition
xmenu_private.c:44
_enter_submenu
void _enter_submenu(void *w_, void *user_data)
_enter_submenu - enter submenu
Definition
xmenu_private.c:211
_draw_check_item
void _draw_check_item(void *w_, void *user_data)
_draw_check_item - draw item on expose call
Definition
xmenu_private.c:415
_draw_menu
void _draw_menu(void *w_, void *user_data)
_draw_menu - draw menu on expose call
Definition
xmenu_private.c:152
_leave_submenu
void _leave_submenu(void *w_, void *user_data)
_leave_submenu - leave submenu
Definition
xmenu_private.c:228
Generated by
1.9.8