GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 2 / 0 / 2
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 11 / 0 / 22

shumate/shumate-vector-sprite.h
Line Branch Exec Source
1 /*
2 * Copyright (C) 2022 James Westman <james@jwestman.net>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
16 */
17
18 #pragma once
19
20 #include <gdk/gdk.h>
21 #include <shumate/shumate-version.h>
22
23 G_BEGIN_DECLS
24
25 SHUMATE_AVAILABLE_MACRO_IN_1_1
26 #define SHUMATE_TYPE_VECTOR_SPRITE shumate_vector_sprite_get_type()
27
11/22
None:
✗ Branch 16 → 17 not taken.
✓ Branch 16 → 18 taken 4 times.
✗ Branch 38 → 185 not taken.
✗ Branch 38 → 186 not taken.
✓ Branch 423 → 424 taken 2 times.
✓ Branch 423 → 643 taken 2 times.
SHUMATE_IS_VECTOR_SPRITE:
✓ Branch 3 → 4 taken 284 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 284 times.
✗ Branch 4 → 6 not taken.
✗ Branch 5 → 6 not taken.
✓ Branch 5 → 7 taken 284 times.
✓ Branch 24 → 25 taken 2 times.
✗ Branch 24 → 26 not taken.
✓ Branch 30 → 31 taken 10 times.
✗ Branch 30 → 32 not taken.
✓ Branch 59 → 60 taken 200 times.
✗ Branch 59 → 61 not taken.
✓ Branch 65 → 66 taken 2 times.
✗ Branch 65 → 67 not taken.
✓ Branch 71 → 72 taken 2 times.
✗ Branch 71 → 73 not taken.
2404 G_DECLARE_FINAL_TYPE(ShumateVectorSprite, shumate_vector_sprite, SHUMATE, VECTOR_SPRITE, GObject)
28
29 SHUMATE_AVAILABLE_IN_1_1
30 ShumateVectorSprite *shumate_vector_sprite_new (GdkPaintable *source_paintable);
31 SHUMATE_AVAILABLE_IN_1_1
32 ShumateVectorSprite *shumate_vector_sprite_new_full (GdkPaintable *source_paintable,
33 int width,
34 int height,
35 double scale_factor,
36 GdkRectangle *source_rect);
37 SHUMATE_AVAILABLE_IN_1_1
38 GdkPaintable *shumate_vector_sprite_get_source_paintable (ShumateVectorSprite *self);
39 SHUMATE_AVAILABLE_IN_1_1
40 int shumate_vector_sprite_get_width (ShumateVectorSprite *self);
41 SHUMATE_AVAILABLE_IN_1_1
42 int shumate_vector_sprite_get_height (ShumateVectorSprite *self);
43 SHUMATE_AVAILABLE_IN_1_1
44 double shumate_vector_sprite_get_scale_factor (ShumateVectorSprite *self);
45 SHUMATE_AVAILABLE_IN_1_1
46 GdkRectangle *shumate_vector_sprite_get_source_rect (ShumateVectorSprite *self);
47
48 G_END_DECLS
49