libxputty 0.1
Loading...
Searching...
No Matches
xsvgloader.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 XSVGLOADER_H_
24#define XSVGLOADER_H_
25
26#include "xputty.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
38void widget_get_svg(Widget_t *w, const char* name);
39
46void widget_get_scaled_svg(Widget_t *w, const char* name);
47
54void widget_get_svg_from_file(Widget_t *w, const char* filename);
55
64void widget_get_scaled_svg_from_file(Widget_t *w, const char* filename, int width_t, int height_t);
65
66cairo_surface_t *cairo_image_surface_create_from_svg ( const char* name);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif //XSVGLOADER_H_
Widget_t - struct to hold the basic Widget_t info.
Definition xwidget.h:457
This file contains definitions and structs used on all platforms. Platform specific definitions are l...
cairo_surface_t * cairo_image_surface_create_from_svg(const char *name)
Definition xsvgloader.c:336
void widget_get_scaled_svg(Widget_t *w, const char *name)
widget_get_scaled_svg - read svg scaled into Widget_t xlib surface
Definition xsvgloader.c:269
void widget_get_scaled_svg_from_file(Widget_t *w, const char *filename, int width_t, int height_t)
widget_get_scaled_svg_from_file - read svg into Widget_t xlib surface
Definition xsvgloader.c:321
void widget_get_svg_from_file(Widget_t *w, const char *filename)
widget_get_svg_from_file - read svg into Widget_t xlib surface
Definition xsvgloader.c:304
void widget_get_svg(Widget_t *w, const char *name)
widget_get_svg - read svg into Widget_t xlib surface
Definition xsvgloader.c:248