|
| 1 | +/* gnome-bg-4.vapi generated by vapigen, do not modify. */ |
| 2 | + |
| 3 | +[CCode (cprefix = "Gnome", gir_namespace = "GnomeBG", gir_version = "4.0", lower_case_cprefix = "gnome_")] |
| 4 | +namespace Gnome { |
| 5 | + [CCode (cheader_filename = "gnome-bg/gnome-bg.h", type_id = "gnome_bg_get_type ()")] |
| 6 | + public class BG : GLib.Object { |
| 7 | + [CCode (has_construct_function = false)] |
| 8 | + public BG (); |
| 9 | + public bool changes_with_time (); |
| 10 | + public Gdk.Pixbuf create_frame_thumbnail (Gnome.DesktopThumbnailFactory factory, Cairo.RectangleInt screen_area, int dest_width, int dest_height, int frame_num); |
| 11 | + public Cairo.Surface create_surface (Gdk.Surface window, int width, int height); |
| 12 | + public Gdk.Pixbuf create_thumbnail (Gnome.DesktopThumbnailFactory factory, Cairo.RectangleInt screen_area, int dest_width, int dest_height); |
| 13 | + public void draw (Gdk.Pixbuf dest); |
| 14 | + public unowned string get_filename (); |
| 15 | + public bool get_image_size (Gnome.DesktopThumbnailFactory factory, int best_width, int best_height, out int width, out int height); |
| 16 | + public GDesktop.BackgroundStyle get_placement (); |
| 17 | + public void get_rgba (out GDesktop.BackgroundShading type, out Gdk.RGBA primary, out Gdk.RGBA secondary); |
| 18 | + public bool has_multiple_sizes (); |
| 19 | + public bool is_dark (int dest_width, int dest_height); |
| 20 | + public void load_from_preferences (GLib.Settings settings); |
| 21 | + public void save_to_preferences (GLib.Settings settings); |
| 22 | + public void set_filename (string filename); |
| 23 | + public void set_placement (GDesktop.BackgroundStyle placement); |
| 24 | + public void set_rgba (GDesktop.BackgroundShading type, Gdk.RGBA primary, Gdk.RGBA secondary); |
| 25 | + public signal void changed (); |
| 26 | + public signal void transitioned (); |
| 27 | + } |
| 28 | + [CCode (cheader_filename = "gnome-bg/gnome-bg-slide-show.h", type_id = "gnome_bg_slide_show_get_type ()")] |
| 29 | + public class BGSlideShow : GLib.Object { |
| 30 | + [CCode (has_construct_function = false)] |
| 31 | + public BGSlideShow (string filename); |
| 32 | + public void get_current_slide (int width, int height, out double progress, out double duration, out bool is_fixed, out unowned string file1, out unowned string file2); |
| 33 | + public bool get_has_multiple_sizes (); |
| 34 | + public int get_num_slides (); |
| 35 | + public bool get_slide (int frame_number, int width, int height, out double progress, out double duration, out bool is_fixed, out unowned string file1, out unowned string file2); |
| 36 | + public double get_start_time (); |
| 37 | + public double get_total_duration (); |
| 38 | + public bool load () throws GLib.Error; |
| 39 | + public void load_async (GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback); |
| 40 | + [NoAccessorMethod] |
| 41 | + [Version (since = "3.34")] |
| 42 | + public GLib.File file { owned get; construct; } |
| 43 | + public bool has_multiple_sizes { get; } |
| 44 | + public double start_time { get; } |
| 45 | + public double total_duration { get; } |
| 46 | + } |
| 47 | +} |
0 commit comments