libxputty 0.1
Loading...
Searching...
No Matches
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
30extern "C" {
31#endif
32
39void _draw_combobox_button(void *w_, void* user_data);
40
47void _draw_combobox(void *w_, void* user_data);
48
55void _draw_combobox_menu(void *w_, void* user_data);
56
63void _draw_combobox_entrys(void *w_, void* user_data);
64
72void _combobox_motion(void *w_, void* xmotion_, void* user_data);
73
81void _combobox_key_pressed(void *w_, void* xkey_, void* user_data);
82
90void _combobox_entry_released(void *w_, void* button_, void* user_data);
91
98void _leave_combobox(void *w_, void* user_data);
99
106void _reconfigure_combobox_viewport(void *w_, void* user_data);
107
114void _set_combobox_viewpoint(void *w_, void* user_data);
115
122void _draw_combobox_menu_slider(void *w_, void* user_data);
123
130void _set_combobox_menu_viewport(void *w_, void* user_data);
131
139void _combobox_button_released(void *w_, void* button_, void* user_data);
140
148void _button_combobox_released(void *w_, void* button_, void* user_data);
149
157void _entry_released(void *w_, void* item_, void* user_data);
158
165void _set_entry(void *w_, void* user_data);
166
175void _configure_combobox_menu(Widget_t *parent, Widget_t *menu, int elem, bool above);
176
177
178#ifdef __cplusplus
179}
180#endif
181
182#endif //XCOMBOBOX_PRIVATE_H_
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
void _set_combobox_menu_viewport(void *w_, void *user_data)
_set_combobox_menu_viewport - set the viewport position from slider state
void _draw_combobox(void *w_, void *user_data)
_draw_combobox - internal draw the combobox to the buffer
void _leave_combobox(void *w_, void *user_data)
_leave_combobox - mouse pointer leave the combobox
void _draw_combobox_entrys(void *w_, void *user_data)
_draw_combobox_entrys - internal draw the combobox entrys to the buffer
void _combobox_motion(void *w_, void *xmotion_, void *user_data)
_combobox_motion - mouse pointer move in viewport
void _set_combobox_viewpoint(void *w_, void *user_data)
_set_combobox_viewpoint - set the slider state from viewport position
void _draw_combobox_menu_slider(void *w_, void *user_data)
_draw_combobox_menu_slider - internal draw the combobox menu slider
void _combobox_entry_released(void *w_, void *button_, void *user_data)
_combobox_entry_released - viewport entry released mouse button
void _draw_combobox_menu(void *w_, void *user_data)
_draw_combobox_menu - internal draw the combobox menu to the buffer
void _combobox_button_released(void *w_, void *button_, void *user_data)
_combobox_button_released - popup menu on right click
void _reconfigure_combobox_viewport(void *w_, void *user_data)
_reconfigure_combobox_viewport - set slider scale and step to match viewport entrys
void _draw_combobox_button(void *w_, void *user_data)
_draw_combobox_button - internal draw the combobox button to the buffer
void _configure_combobox_menu(Widget_t *parent, Widget_t *menu, int elem, bool above)
_configure_combobox_menu - set final size and position of menu to a Widget_t
void _button_combobox_released(void *w_, void *button_, void *user_data)
_button_combobox_released - popup the combobox menu
void _combobox_key_pressed(void *w_, void *xkey_, void *user_data)
_combobox_key_released - viewport entry released key
void _entry_released(void *w_, void *item_, void *user_data)
_entry_released - the combobox menu release func
void _set_entry(void *w_, void *user_data)
_set_entry - set the active combobox entry on adjustment change