libxputty 0.1
Loading...
Searching...
No Matches
xwidget_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
26#pragma once
27
28#ifndef XWIDGET_PRIVATE_H_
29#define XWIDGET_PRIVATE_H_
30
31#include "xputty.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
44void _scroll_event(Widget_t * wid, int direction);
51void _toggle_event(Widget_t * wid);
52
60void _check_enum(Widget_t * wid, XButtonEvent *xbutton);
61
69void _button_press(Widget_t * wid, XButtonEvent *xbutton, void* user_data);
70
80void _check_grab(Widget_t * wid, XButtonEvent *xbutton, Xputty *main);
81
91void _check_submenu(Widget_t * wid, XButtonEvent *xbutton, Xputty *main);
92
99
106void _check_keymap (void *w_ , XKeyEvent xkey);
107
114
121void _has_pointer(Widget_t *w, XButtonEvent *button);
122
130void _set_adj_value(void *w_, bool x, int direction);
131
139void _dummy1_callback(void *w_, void* _data, void* user_data);
140
147void _dummy_callback(void *w_, void* user_data);
148
156void _resize_surface(Widget_t *wid, int width, int height);
157
163void _resize_childs(Widget_t *wid);
164
165#ifdef __cplusplus
166}
167#endif
168
169#endif // XWIDGET_PRIVATE_H__
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
Xputty - the main struct. It should be declared before any other call to a Xputty function....
Definition xputty.h:228
This file contains definitions and structs used on all platforms. Platform specific definitions are l...
void _resize_surface(Widget_t *wid, int width, int height)
_resize_surface - intern check if a Widget_t surfaces needs resizing
void _resize_childs(Widget_t *wid)
_resize_childs - intern check if child widgets needs resizing
void _set_adj_value(void *w_, bool x, int direction)
_set_adj_value - set value to adjustment from key event
void _scroll_event(Widget_t *wid, int direction)
_scroll_event - internal check which Adjustment_t change it's value on a motion event (POINTER_MOTION...
void _toggle_event(Widget_t *wid)
_toggle_event - internal check which Adjustment_t change it's value on a Button press event (BUTTON_P...
void _hide_all_tooltips(Widget_t *wid)
_hide_all_tooltips - hide all active tooltips
void _check_enum(Widget_t *wid, XButtonEvent *xbutton)
_check_enum - internal check if Adjustment_t is of type CL_ENUM and handle events acordingly
void _check_grab(Widget_t *wid, XButtonEvent *xbutton, Xputty *main)
_check_grab - internal check if a Widgt_t holds a grab when a BUTTON_PRESS event occur....
void _button_press(Widget_t *wid, XButtonEvent *xbutton, void *user_data)
_button_press - internal check which button is pressed (BUTTON_PRESS)
void _dummy_callback(void *w_, void *user_data)
_dummy1_callback - default debuging callback for xevfunc's
void _propagate_child_expose(Widget_t *wid)
_propagate_child_expose - send expose to any child Widget_t
void _check_submenu(Widget_t *wid, XButtonEvent *xbutton, Xputty *main)
_check_submenu - internal check if a Widgt_t is a submenu when a BUTTON_PRESS event occur....
void _dummy1_callback(void *w_, void *_data, void *user_data)
_dummy1_callback - default debuging callback for evfunc's
void _check_keymap(void *w_, XKeyEvent xkey)
_check_keymap - check if key is in map, send requests if so
void _has_pointer(Widget_t *w, XButtonEvent *button)
_has_pointer - check if the widget has the pointer