libxputty
0.1
A damn tiny abstraction Layer to create X11 window/widgets with cairo surfaces
xplayhead_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 XPLAYHEAD_PRIVATE_H_
24
#define XPLAYHEAD_PRIVATE_H_
25
26
#include "
xplayhead.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
33
/**
34
* @brief _create_playhead_image - internal draw the playhead image
35
* to the cairo image surface
36
* @param *w - pointer to the Widget_t meter
37
* @param width - widget width
38
* @param height - widget height
39
* @return void
40
*/
41
42
void
_create_playhead_image
(
Widget_t
*w,
int
width,
int
height);
43
44
/**
45
* @brief _draw_playhead - internal draw the playhead to the buffer
46
* @param *w_ - void pointer to the Widget_t button
47
* @param *user_data - void pointer to attached user_data
48
* @return void
49
*/
50
51
void
_draw_playhead
(
void
*w_,
void
* user_data);
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif //XPLAYHEAD_PRIVATE_H_
_create_playhead_image
void _create_playhead_image(Widget_t *w, int width, int height)
_create_playhead_image - internal draw the playhead image to the cairo image surface
Definition:
xplayhead_private.c:25
xplayhead.h
_draw_playhead
void _draw_playhead(void *w_, void *user_data)
_draw_playhead - internal draw the playhead to the buffer
Definition:
xplayhead_private.c:59
Widget_t
Widget_t - struct to hold the basic Widget_t info.
Definition:
xwidget.h:298
libxputty
xputty
header
widgets
xplayhead_private.h
Generated by
1.8.17