Branch data Line data Source code
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 <gtk/gtk.h> 21 : : 22 : : G_BEGIN_DECLS 23 : : 24 : : #define SHUMATE_TYPE_VECTOR_SPRITE shumate_vector_sprite_get_type() 25 [ + + + - : 3582 : G_DECLARE_FINAL_TYPE(ShumateVectorSprite, shumate_vector_sprite, SHUMATE, VECTOR_SPRITE, GObject) + + + + + - + - - + ] 26 : : 27 : : 28 : : ShumateVectorSprite *shumate_vector_sprite_new (GdkPaintable *source_paintable); 29 : : ShumateVectorSprite *shumate_vector_sprite_new_full (GdkPaintable *source_paintable, 30 : : int width, 31 : : int height, 32 : : double scale_factor, 33 : : GdkRectangle *source_rect); 34 : : 35 : : GdkPaintable *shumate_vector_sprite_get_source_paintable (ShumateVectorSprite *self); 36 : : int shumate_vector_sprite_get_width (ShumateVectorSprite *self); 37 : : int shumate_vector_sprite_get_height (ShumateVectorSprite *self); 38 : : double shumate_vector_sprite_get_scale_factor (ShumateVectorSprite *self); 39 : : GdkRectangle *shumate_vector_sprite_get_source_rect (ShumateVectorSprite *self); 40 : : 41 : : G_END_DECLS