libxputty 0.1
Loading...
Searching...
No Matches
xslider_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 XSLIDER_PRIVATE_H_
24#define XSLIDER_PRIVATE_H_
25
26#include "xslider.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
39void _pattern_vslider(Widget_t *w, Color_state st, int width);
40
48void _pattern_hslider(Widget_t *w, Color_state st, int width);
49
57void _draw_image_slider(Widget_t *w, int width_t, int height_t);
58
65void _draw_vslider(void *w_, void* user_data);
66
73void _draw_hslider(void *w_, void* user_data);
74
82void _slider_released(void *w_, void* button_, void* user_data);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif //XSLIDER_PRIVATE_H_
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
Color_state
Color_state - select color mode to use on Widget_t.
Definition xcolor.h:43
void _slider_released(void *w_, void *button_, void *user_data)
_slider_released - redraw the slider when button released
void _draw_hslider(void *w_, void *user_data)
_draw_hslider - internal draw the slider to the buffer
void _draw_vslider(void *w_, void *user_data)
_draw_vslider - internal draw the slider to the buffer
void _draw_image_slider(Widget_t *w, int width_t, int height_t)
_draw_image_slider - draw slider from a horizontal sprite image
void _pattern_hslider(Widget_t *w, Color_state st, int width)
_pattern_hslider - set pattern for the slider base
void _pattern_vslider(Widget_t *w, Color_state st, int width)
_pattern_vslider - set pattern for the slider base