libelec
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
libelec_drawing.h
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5  */
6 /*
7  * Copyright 2023 Saso Kiselkov. All rights reserved.
8  */
25 #ifndef __LIBELEC_DRAWING_H__
26 #define __LIBELEC_DRAWING_H__
27 
28 #include <cairo.h>
29 
30 #include "libelec.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 void libelec_draw_layout(const elec_sys_t *sys, cairo_t *cr, double pos_scale,
37  double font_sz);
38 void libelec_draw_comp_info(const elec_comp_t *comp, cairo_t *cr,
39  double pos_scale, double font_sz, vect2_t pos);
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* __LIBELEC_DRAWING_H__ */
void libelec_draw_comp_info(const elec_comp_t *comp, cairo_t *cr, double pos_scale, double font_sz, vect2_t pos)
void libelec_draw_layout(const elec_sys_t *sys, cairo_t *cr, double pos_scale, double font_sz)