libxputty 0.1
Loading...
Searching...
No Matches
xmeter_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 XMETER_PRIVATE_H_
24#define XMETER_PRIVATE_H_
25
26#include "xmeter.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32
39void _draw_vmeter_scale(void *w_, void* user_data);
40
47void _draw_hmeter_scale(void *w_, void* user_data);
48
55float _log_meter (float db);
56
65void _create_vertical_meter_image(Widget_t *w, int width, int height);
66
75void _create_horizontal_meter_image(Widget_t *w, int width, int height);
76
83void _draw_v_meter(void *w_, void* user_data);
84
91void _draw_h_meter(void *w_, void* user_data);
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif //XMETER_PRIVATE_H_
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
void _draw_vmeter_scale(void *w_, void *user_data)
_draw_meter_scale - draw a meter scale beside the meter widget
void _draw_hmeter_scale(void *w_, void *user_data)
_draw_hmeter_scale - draw a hmeter scale beside the meter widget
void _draw_h_meter(void *w_, void *user_data)
_draw_h_meter - internal draw the meter to the buffer
void _create_vertical_meter_image(Widget_t *w, int width, int height)
_create_vertical_meter_image - internal draw the meter image to the cairo image surface
float _log_meter(float db)
_log_meter - logaritmic meter deflection
void _create_horizontal_meter_image(Widget_t *w, int width, int height)
_create_horizontal_meter_image - internal draw the meter image to the cairo image surface
void _draw_v_meter(void *w_, void *user_data)
_draw_v_meter - internal draw the meter to the buffer