From c77ff4ae9c1e97f8da5b6a02d7d6ab53c906e816 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Tue, 12 May 2009 17:08:47 +0700 Subject: [PATCH] vapi-files: remove vapi files needed for vala 0.5.7 --- cairo.vapi | 568 ------------------------------------------------------- gobject-2.0.vapi | 440 ------------------------------------------ 2 files changed, 1008 deletions(-) delete mode 100644 cairo.vapi delete mode 100644 gobject-2.0.vapi diff --git a/cairo.vapi b/cairo.vapi deleted file mode 100644 index f7f15f9..0000000 --- a/cairo.vapi +++ /dev/null @@ -1,568 +0,0 @@ -/* cairo.vala - * - * Copyright (C) 2006-2009 Jürg Billeter - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Author: - * Jürg Billeter - */ - -[CCode (cheader_filename = "cairo.h")] -namespace Cairo { - [Compact] - [CCode (ref_function = "cairo_reference", unref_function = "cairo_destroy", cname = "cairo_t", cprefix = "cairo_", cheader_filename = "cairo.h")] - public class Context { - [CCode (cname = "cairo_create")] - public Context (Surface target); - public Status status (); - public void save (); - public void restore (); - - public weak Surface get_target (); - public void push_group (); - public void push_group_with_content (Content content); - public Pattern pop_group (); - public void pop_group_to_source (); - public weak Surface get_group_target (); - - public void set_source_rgb (double red, double green, double blue); - public void set_source_rgba (double red, double green, double blue, double alpha); - public void set_source (Pattern source); - public void set_source_surface (Surface surface, double x, double y); - public weak Pattern get_source (); - - public void set_matrix (Matrix matrix); - public void get_matrix (out Matrix matrix); - - public void set_antialias (Antialias antialias); - public Antialias get_antialias (); - - public void set_dash (double[]? dashes, double offset); - - public void set_fill_rule (FillRule fill_rule); - public FillRule get_fill_rule (); - - public void set_line_cap (LineCap line_cap); - public LineCap get_line_cap (); - - public void set_line_join (LineJoin line_join); - public LineJoin get_line_join (); - - public void set_line_width (double width); - public double get_line_width (); - - public void set_miter_limit (double limit); - public double get_miter_limit (); - - public void set_operator (Operator op); - public Operator get_operator (); - - public void set_tolerance (double tolerance); - public double get_tolerance (); - - public void clip (); - public void clip_preserve (); - public void reset_clip (); - - public void fill (); - public void fill_preserve (); - public void fill_extents (ref double x1, ref double y1, ref double x2, ref double y2); - public bool in_fill (double x, double y); - - public void mask (Pattern pattern); - public void mask_surface (Surface surface, double surface_x, double surface_y); - - public void paint (); - public void paint_with_alpha (double alpha); - - public void stroke (); - public void stroke_preserve (); - public void stroke_extents (ref double x1, ref double y1, ref double x2, ref double y2); - public bool in_stroke (double x, double y); - - public void copy_page (); - public void show_page (); - - public Path copy_path (); - public Path copy_path_flat (); - - public void append_path (Path path); - - public void get_current_point (ref double x, ref double y); - - public void new_path (); - public void new_sub_path (); - public void close_path (); - - public void arc (double xc, double yc, double radius, double angle1, double angle2); - public void arc_negative (double xc, double yc, double radius, double angle1, double angle2); - - public void curve_to (double x1, double y1, double x2, double y2, double x3, double y3); - public void line_to (double x, double y); - public void move_to (double x, double y); - - public void rectangle (double x, double y, double width, double height); - - public void glyph_path (Glyph[] glyphs); - public void text_path (string utf8); - - public void rel_curve_to (double dx1, double dy1, double dx2, double dy2, double dx3, double dy3); - public void rel_line_to (double dx, double dy); - public void rel_move_to (double dx, double dy); - - public void translate (double tx, double ty); - public void scale (double sx, double sy); - public void rotate (double angle); - public void transform (Matrix matrix); - public void identity_matrix (); - - public void user_to_device (ref double x, ref double y); - public void user_to_device_distance (ref double dx, ref double dy); - public void device_to_user (ref double x, ref double y); - public void device_to_user_distance (ref double dx, ref double dy); - - public void select_font_face (string family, FontSlant slant, FontWeight weight); - public void set_font_size (double size); - public void set_font_matrix (Matrix matrix); - public void get_font_matrix (out Matrix matrix); - public void set_font_options (ref FontOptions options); - public void get_font_options (ref FontOptions options); - - public void show_text (string utf8); - public void show_glyphs (Glyph[] glyphs); - - public weak FontFace get_font_face (); - public void font_extents (out FontExtents extents); - public void set_font_face (FontFace font_face); - public void set_scaled_font (ScaledFont font); - public void text_extents (string utf8, out TextExtents extents); - public void glyph_extents (Glyph[] glyphs, out TextExtents extents); - } - - public enum Antialias { - DEFAULT, - NONE, - GRAY, - SUBPIXEL - } - - public enum FillRule { - WINDING, - EVEN_ODD - } - - public enum LineCap { - BUTT, - ROUND, - SQUARE - } - - public enum LineJoin { - MITER, - ROUND, - BEVEL - } - - public enum Operator { - CLEAR, - SOURCE, - OVER, - IN, - OUT, - ATOP, - DEST, - DEST_OVER, - DEST_IN, - DEST_OUT, - DEST_ATOP, - XOR, - ADD, - SATURATE - } - - [Compact] - [CCode (free_function = "cairo_path_destroy", cname = "cairo_path_t")] - public class Path { - public Status status; - [CCode (array_length = false)] - public PathData[] data; - public int num_data; - } - - [CCode (cname = "cairo_path_data_t")] - public struct PathData { - public PathDataHeader header; - public PathDataPoint point; - } - - public struct PathDataHeader { - public PathDataType type; - public int length; - } - - public struct PathDataPoint { - public double x; - public double y; - } - - [CCode (cprefix = "CAIRO_PATH_")] - public enum PathDataType { - MOVE_TO, - LINE_TO, - CURVE_TO, - CLOSE_PATH - } - - [Compact] - [CCode (ref_function = "cairo_pattern_reference", unref_function = "cairo_pattern_destroy", cname = "cairo_pattern_t")] - public class Pattern { - public void add_color_stop_rgb (double offset, double red, double green, double blue); - public void add_color_stop_rgba (double offset, double red, double green, double blue, double alpha); - - [CCode (cname = "cairo_pattern_create_rgb")] - public Pattern.rgb (double red, double green, double blue); - [CCode (cname = "cairo_pattern_create_rgba")] - public Pattern.rgba (double red, double green, double blue, double alpha); - [CCode (cname = "cairo_pattern_create_for_surface")] - public Pattern.for_surface (Surface surface); - [CCode (cname = "cairo_pattern_create_linear")] - public Pattern.linear (double x0, double y0, double x1, double y1); - [CCode (cname = "cairo_pattern_create_radial")] - public Pattern.radial (double cx0, double cy0, double radius0, double cx1, double cy1, double radius1); - - public Status status (); - - public void set_extend (Extend extend); - public Extend get_extend (); - - public void set_filter (Filter filter); - public Filter get_filter (); - - public void set_matrix (Matrix matrix); - public void get_matrix (out Matrix matrix); - - public PatternType get_type (); - } - - [CCode (cname = "cairo_extend_t")] - public enum Extend { - NONE, - REPEAT, - REFLECT, - PAD - } - - [CCode (cname = "cairo_filter_t")] - public enum Filter { - FAST, - GOOD, - BEST, - NEAREST, - BILINEAR, - GAUSSIAN - } - - [CCode (cname = "cairo_pattern_type_t")] - public enum PatternType { - SOLID, - SURFACE, - LINEAR, - RADIAL - } - - [CCode (cname = "cairo_glyph_t")] - public class Glyph { - } - - [CCode (cname = "cairo_font_slant_t")] - public enum FontSlant { - NORMAL, - ITALIC, - OBLIQUE - } - - [CCode (cname = "cairo_font_weight_t")] - public enum FontWeight { - NORMAL, - BOLD - } - - [Compact] - [CCode (ref_function = "cairo_font_face_reference", unref_function = "cairo_font_face_destroy", cname = "cairo_font_face_t")] - public class FontFace { - public Status status (); - public FontType get_type (); - } - - [CCode (cname = "cairo_font_type_t")] - public enum FontType { - TOY, - FT, - WIN32, - ATSUI - } - - [Compact] - [CCode (ref_function = "cairo_scaled_font_reference", unref_function = "cairo_scaled_font_destroy", cname = "cairo_scaled_font_t")] - public class ScaledFont { - [CCode (cname = "cairo_scaled_font_create")] - public ScaledFont (Matrix font_matrix, Matrix ctm, ref FontOptions options); - public Status status (); - public void extents (ref FontExtents extents); - public void text_extents (string utf8, ref TextExtents extents); - public void glyph_extents (Glyph[] glyphs, ref TextExtents extents); - public weak FontFace get_font_face (); - public void get_font_options (ref FontOptions options); - public void get_font_matrix (out Matrix font_matrix); - public void get_ctm (out Matrix ctm); - public FontType get_type (); - } - - [CCode (cname = "cairo_font_extents_t")] - public struct FontExtents { - public double ascent; - public double descent; - public double height; - public double max_x_advance; - public double max_y_advance; - } - - [CCode (cname = "cairo_text_extents_t")] - public struct TextExtents { - public double x_bearing; - public double y_bearing; - public double width; - public double height; - public double x_advance; - public double y_advance; - } - - [Compact] - [CCode (copy_function = "cairo_font_options_copy", free_function = "cairo_font_options_destroy", cname = "cairo_font_options_t")] - public class FontOptions { - [CCode (cname = "cairo_font_options_create")] - public FontOptions (); - public Status status (); - public void merge (FontOptions other); - public ulong hash (); - public bool equal (FontOptions other); - public void set_antialias (Antialias antialias); - public Antialias get_antialias (); - public void set_subpixel_order (SubpixelOrder subpixel_order); - public SubpixelOrder get_subpixel_order (); - public void set_hint_style (HintStyle hint_style); - public HintStyle get_hint_style (); - public void set_hint_metrics (HintMetrics hint_metrics); - public HintMetrics get_hint_metrics (); - } - - [CCode (cname = "cairo_subpixel_order_t")] - public enum SubpixelOrder { - DEFAULT, - RGB, - BGR, - VRGB, - VBGR - } - - [CCode (cname = "cairo_hint_style_t")] - public enum HintStyle { - DEFAULT, - NONE, - SLIGHT, - MEDIUM, - FULL - } - - [CCode (cname = "cairo_hint_metrics_t")] - public enum HintMetrics { - DEFAULT, - OFF, - ON - } - - [Compact] - [CCode (ref_function = "cairo_surface_reference", unref_function = "cairo_surface_destroy", cname = "cairo_surface_t", cheader_filename = "cairo.h")] - public class Surface { - [CCode (cname = "cairo_surface_create_similar")] - public Surface.similar (Surface other, Content content, int width, int height); - public void finish (); - public void flush (); - public void get_font_options (ref FontOptions options); - public Content get_content (); - public void mark_dirty (); - public void mark_dirty_rectangle (int x, int y, int width, int height); - public void set_device_offset (double x_offset, double y_offset); - public void get_device_offset (ref double x_offset, ref double y_offset); - public void set_fallback_resolution (double x_pixels_per_inch, double y_pixels_per_inch); - public Status status (); - public SurfaceType get_type (); - - public Status write_to_png (string filename); - public Status write_to_png_stream (WriteFunc write_func, void* closure); - } - - public enum Content { - COLOR, - ALPHA, - COLOR_ALPHA - } - - public enum SurfaceType { - IMAGE, - PDF, - PS, - XLIB, - XCB, - GLITZ, - QUARTZ, - WIN32, - BEOS, - DIRECTFB, - SVG - } - - public enum Format { - ARGB32, - RGB24, - A8, - A1, - RGB16_565 - } - - [Compact] - [CCode (cname = "cairo_surface_t")] - public class ImageSurface : Surface { - [CCode (cname = "cairo_image_surface_create")] - public ImageSurface (Format format, int width, int height); - [CCode (cname = "cairo_image_surface_create_for_data")] - public ImageSurface.for_data ([CCode (array_length = false)] uchar[] data, Format format, int width, int height, int stride); - public uchar[] get_data (); - public Format get_format (); - public int get_width (); - public int get_height (); - public int get_stride (); - - [CCode (cname = "cairo_image_surface_create_from_png")] - public ImageSurface.from_png (string filename); - [CCode (cname = "cairo_image_surface_create_from_png_stream")] - public ImageSurface.from_png_stream (ReadFunc read_func, void* closure); - } - - [Compact] - [CCode (cname = "cairo_surface_t", cheader_filename = "cairo-pdf.h")] - public class PdfSurface : Surface { - [CCode (cname = "cairo_pdf_surface_create")] - public PdfSurface (string filename, double width_in_points, double height_in_points); - [CCode (cname = "cairo_pdf_surface_create_for_stream")] - public PdfSurface.for_stream (WriteFunc write_func, void* closure, double width_in_points, double height_in_points); - public void set_size (double width_in_points, double height_in_points); - } - - public static delegate Status ReadFunc (void* closure, uchar[] data); - public static delegate Status WriteFunc (void* closure, uchar[] data); - - [Compact] - [CCode (cname = "cairo_surface_t", cheader_filename = "cairo-ps.h")] - public class PsSurface : Surface { - [CCode (cname = "cairo_ps_surface_create")] - public PsSurface (string filename, double width_in_points, double height_in_points); - [CCode (cname = "cairo_ps_surface_create_for_stream")] - public PsSurface.for_stream (WriteFunc write_func, void* closure, double width_in_points, double height_in_points); - public void set_size (double width_in_points, double height_in_points); - public void dsc_begin_setup (); - public void dsc_begin_page_setup (); - public void dsc_comment (string comment); - } - - [Compact] - [CCode (cname = "cairo_surface_t", cheader_filename = "cairo-svg.h")] - public class SvgSurface : Surface { - [CCode (cname = "cairo_svg_surface_create")] - public SvgSurface (string filename, double width_in_points, double height_in_points); - [CCode (cname = "cairo_svg_surface_create_for_stream")] - public SvgSurface.for_stream (WriteFunc write_func, void* closure, double width_in_points, double height_in_points); - public void restrict_to_version (SvgVersion version); - public static void get_versions (out SvgVersion[] versions); - } - - [CCode (cname = "cairo_svg_version_t", cprefix = "CAIRO_SVG_")] - public enum SvgVersion { - VERSION_1_1, - VERSION_1_2 - } - - [Compact] - [CCode (cname = "cairo_surface_t", cheader_filename = "cairo-xlib.h")] - public class XlibSurface : Surface { - [CCode (cname = "cairo_xlib_surface_create")] - public XlibSurface (void* dpy, int drawable, void* visual, int width, int height); - [CCode (cname = "cairo_xlib_surface_create_for_bitmap")] - public XlibSurface.for_bitmap (void* dpy, int bitmap, void* screen, int width, int height); - public void set_size (int width, int height); - public void* get_display (); - public void* get_screen (); - public void set_drawable (int drawable, int width, int height); - public int get_drawable (); - public void* get_visual (); - public int get_width (); - public int get_height (); - public int get_depth (); - } - - [CCode (cname = "cairo_matrix_t")] - public struct Matrix { - [CCode (cname = "cairo_matrix_init")] - public Matrix (double xx, double yx, double xy, double yy, double x0, double y0); - [CCode (cname = "cairo_matrix_init_identity")] - public Matrix.identity (); - - public void translate (double tx, double ty); - public void scale (double sx, double sy); - public void rotate (double radians); - public Status invert (); - public void multiply (Matrix a, Matrix b); - public void transform_distance (ref double dx, ref double dy); - public void transform_point (ref double x, ref double y); - } - - public enum Status { - SUCCESS, - NO_MEMORY, - INVALID_RESTORE, - INVALID_POP_GROUP, - NO_CURRENT_POINT, - INVALID_MATRIX, - INVALID_STATUS, - NULL_POINTER, - INVALID_STRING, - INVALID_PATH_DATA, - READ_ERROR, - WRITE_ERROR, - SURFACE_FINISHED, - SURFACE_TYPE_MISMATCH, - PATTERN_TYPE_MISMATCH, - INVALID_CONTENT, - INVALID_FORMAT, - INVALID_VISUAL, - FILE_NOT_FOUND, - INVALID_DASH, - INVALID_DSC_COMMENT - } - - public int version (); - public weak string version_string (); -} diff --git a/gobject-2.0.vapi b/gobject-2.0.vapi deleted file mode 100644 index 8d3916b..0000000 --- a/gobject-2.0.vapi +++ /dev/null @@ -1,440 +0,0 @@ -/* gobject-2.0.vala - * - * Copyright (C) 2006-2009 Jürg Billeter - * Copyright (C) 2006-2008 Raffaele Sandrini - * Copyright (C) 2007 Mathias Hasselmann - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * Author: - * Jürg Billeter - * Raffaele Sandrini - * Mathias Hasselmann - */ - -[CCode (cprefix = "G", lower_case_cprefix = "g_", cheader_filename = "glib.h")] -namespace GLib { - [CCode (type_id = "G_TYPE_GTYPE", marshaller_type_name = "GTYPE", get_value_function = "g_value_get_gtype", set_value_function = "g_value_set_gtype")] - public struct Type : ulong { - [CCode (cname = "G_TYPE_IS_OBJECT")] - public bool is_object (); - [CCode (cname = "G_TYPE_IS_ABSTRACT")] - public bool is_abstract (); - [CCode (cname = "G_TYPE_IS_CLASSED")] - public bool is_classed (); - [CCode (cname = "G_TYPE_IS_DERIVABLE")] - public bool is_derivable (); - [CCode (cname = "G_TYPE_IS_DEEP_DERIVABLE")] - public bool is_deep_derivable (); - [CCode (cname = "G_TYPE_IS_DERIVED")] - public bool is_derived (); - [CCode (cname = "G_TYPE_IS_FUNDAMENTAL")] - public bool is_fundamental (); - [CCode (cname = "G_TYPE_IS_INSTANTIATABLE")] - public bool is_instantiatable (); - [CCode (cname = "G_TYPE_IS_INTERFACE")] - public bool is_interface (); - [CCode (cname = "G_TYPE_IS_VALUE_TYPE")] - public bool is_value_type (); - - [CCode (cname = "G_TYPE_FROM_INSTANCE")] - public static Type from_instance (void* instance); - - public Type[] children (); - public uint depth (); - public static Type from_name (string name); - public Type[] interfaces (); - public bool is_a (Type is_a_type); - public weak string name (); - public Quark qname (); - public Type parent (); - - public void query (out TypeQuery query); - - public TypeClass class_ref (); - public weak TypeClass class_peek (); - - [CCode (cname = "G_TYPE_INVALID")] - public static Type INVALID; - } - - public struct TypeQuery { - public Type type; - public weak string type_name; - public uint class_size; - public uint instance_size; - } - - [Compact] - [CCode (ref_function = "g_type_class_ref", unref_function = "g_type_class_unref")] - public class TypeClass { - [CCode (cname = "G_TYPE_FROM_CLASS")] - public Type get_type (); - } - - [CCode (cprefix = "G_TYPE_DEBUG_", has_type_id = false)] - public enum TypeDebugFlags { - NONE, - OBJECTS, - SIGNALS, - MASK - } - - public interface TypePlugin { - } - - [CCode (lower_case_csuffix = "type_module")] - public class TypeModule : Object, TypePlugin { - public bool use (); - public void unuse (); - public void set_name (string name); - [NoWrapper] - public virtual bool load (); - [NoWrapper] - public virtual void unload (); - } - - [CCode (ref_function = "g_param_spec_ref", unref_function = "g_param_spec_unref")] - public class ParamSpec { - public string name; - public ParamFlags flags; - public Type value_type; - public Type owner_type; - public weak string get_blurb (); - public weak string get_name (); - public weak string get_nick (); - } - - public class ParamSpecEnum : ParamSpec { - [CCode (cname = "g_param_spec_enum")] - public ParamSpecEnum (string name, string nick, string blurb, Type enum_type, int default_value, ParamFlags flags); - } - - public class ParamSpecFloat : ParamSpec { - [CCode (cname = "g_param_spec_float")] - public ParamSpecFloat (string name, string nick, string blurb, float minimum, float maximum, float default_value, ParamFlags flags); - } - - public class ParamSpecInt : ParamSpec { - [CCode (cname = "g_param_spec_int")] - public ParamSpecInt (string name, string nick, string blurb, int minimum, int maximum, int default_value, ParamFlags flags); - } - - public class ParamSpecUInt : ParamSpec { - [CCode (cname = "g_param_spec_uint")] - public ParamSpecUInt (string name, string nick, string blurb, uint minimum, uint maximum, uint default_value, ParamFlags flags); - } - - public class ParamSpecBoolean : ParamSpec { - [CCode (cname = "g_param_spec_boolean")] - public ParamSpecBoolean (string name, string nick, string blurb, bool defaultvalue, ParamFlags flags); - } - - [CCode (cprefix = "G_PARAM_", has_type_id = false)] - public enum ParamFlags { - READABLE, - WRITABLE, - CONSTRUCT, - CONSTRUCT_ONLY, - LAX_VALIDATION, - STATIC_NAME, - STATIC_NICK, - STATIC_BLURB, - READWRITE, - STATIC_STRINGS - } - - [CCode (lower_case_csuffix = "object_class")] - public class ObjectClass : TypeClass { - public weak ParamSpec? find_property (string property_name); - public weak ParamSpec[] list_properties (); - public void install_property (uint property_id, ParamSpec pspec); - } - - public struct ObjectConstructParam { - } - - public static delegate void ObjectGetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec); - public static delegate void ObjectSetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec); - public static delegate void WeakNotify (void *data, Object object); - - [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", marshaller_type_name = "OBJECT", get_value_function = "g_value_get_object", set_value_function = "g_value_set_object", param_spec_function = "g_param_spec_object", cheader_filename = "glib-object.h")] - public class Object { - public uint ref_count; - - public static Object @new (Type type, ...); - - [CCode (cname = "G_TYPE_FROM_INSTANCE")] - public Type get_type (); - public weak Object @ref (); - public void unref (); - public Object ref_sink (); - public void weak_ref (WeakNotify notify, void *data); - public void weak_unref (WeakNotify notify, void *data); - public void add_weak_pointer (void **data); - public void remove_weak_pointer (void **data); - public void get (string first_property_name, ...); - public void set (string first_property_name, ...); - public void get_property (string property_name, ref Value value); - public void set_property (string property_name, Value value); - public void* get_data (string key); - public void set_data (string key, void* data); - public void set_data_full (string key, void* data, DestroyNotify? destroy); - public void* steal_data (string key); - public void* get_qdata (Quark quark); - public void set_qdata (Quark quark, void* data); - public void set_qdata_full (Quark quark, void* data, DestroyNotify? destroy); - public void* steal_qdata (Quark quark); - public void freeze_notify (); - public void thaw_notify (); - public virtual void dispose (); - public virtual void finalize (); - public virtual void constructed (); - - public signal void notify (ParamSpec pspec); - - public weak Object connect (string signal_spec, ...); - - public void add_toggle_ref (ToggleNotify notify); - public void remove_toggle_ref (ToggleNotify notify); - } - - [CCode (instance_pos = 0)] - public delegate void ToggleNotify (GLib.Object object, bool is_last_ref); - - public struct Parameter { - public string name; - public Value value; - } - - [CCode (ref_sink_function = "g_object_ref_sink")] - public class InitiallyUnowned : Object { - } - - [CCode (lower_case_csuffix = "enum")] - public class EnumClass : TypeClass { - public weak EnumValue? get_value (int value); - public weak EnumValue? get_value_by_name (string name); - public weak EnumValue? get_value_by_nick (string name); - } - - [Compact] - public class EnumValue { - public int value; - public weak string value_name; - public weak string value_nick; - } - - [CCode (lower_case_csuffix = "flags")] - public class FlagsClass : TypeClass { - public weak FlagsValue? get_first_value (uint value); - public weak FlagsValue? get_value_by_name (string name); - public weak FlagsValue? get_value_by_nick (string name); - } - - [Compact] - public class FlagsValue { - public int value; - public weak string value_name; - public weak string value_nick; - } - - [Compact] - [CCode (cname = "gpointer", has_type_id = true, type_id = "G_TYPE_BOXED", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed")] - public abstract class Boxed { - } - - public static delegate void ValueTransform (Value src_value, out Value dest_value); - - [CCode (copy_function = "g_value_copy", destroy_function = "g_value_unset", type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", type_signature = "v")] - public struct Value { - [CCode (cname = "G_VALUE_HOLDS")] - public bool holds (Type type); - [CCode (cname = "G_VALUE_TYPE")] - public Type type (); - [CCode (cname = "G_VALUE_TYPE_NAME")] - public weak string type_name (); - - public Value (Type g_type); - public void copy (ref Value dest_value); - public weak Value? reset (); - public void init (Type g_type); - public void unset (); - public void set_instance (void* instance); - public bool fits_pointer (); - public void* peek_pointer (); - public static bool type_compatible (Type src_type, Type dest_type); - public static bool type_transformable (Type src_type, Type dest_type); - public bool transform (ref Value dest_value); - [CCode (cname = "g_strdup_value_contents")] - public string strdup_contents (); - public static void register_transform_func (Type src_type, Type dest_type, ValueTransform transform); - public void set_boolean (bool v_boolean); - public bool get_boolean (); - public void set_char (char v_char); - public char get_char (); - public void set_uchar (uchar v_uchar); - public uchar get_uchar (); - public void set_int (int v_int); - public int get_int (); - public void set_uint (uint v_uint); - public uint get_uint (); - public void set_long (long v_long); - public long get_long (); - public void set_ulong (ulong v_ulong); - public ulong get_ulong (); - public void set_int64 (int64 v_int64); - public int64 get_int64 (); - public void set_uint64 (uint64 v_uint64); - public uint64 get_uint64 (); - public void set_float (float v_float); - public float get_float (); - public void set_double (double v_double); - public double get_double (); - public void set_enum (int v_enum); - public int get_enum (); - public void set_flags (uint v_flags); - public uint get_flags (); - public void set_string (string v_string); - public void set_static_string (string v_string); - public void take_string (string# v_string); - public weak string get_string (); - public string dup_string (); - public void set_pointer (void* v_pointer); - public void* get_pointer (); - public void set_boxed (void* v_boxed); - public weak Boxed get_boxed (); - public Boxed dup_boxed (); - public void set_object (Object v_object); - public void take_object (Object# v_object); - public weak Object get_object (); - public Object dup_object (); - public void set_gtype (Type v_gtype); - public Type get_gtype (); - } - - public struct SignalInvocationHint { - public uint signal_id; - public Quark detail; - public SignalFlags run_type; - } - - public delegate bool SignalEmissionHook (SignalInvocationHint ihint, [CCode (array_length_pos = 1.9)] Value[] param_values); - - [CCode (cprefix = "G_SIGNAL_", has_type_id = false)] - public enum SignalFlags { - RUN_FIRST, - RUN_LAST, - RUN_CLEANUP, - DETAILED, - ACTION, - NO_HOOKS - } - - [CCode (cprefix = "G_CONNECT_", has_type_id = false)] - public enum ConnectFlags { - AFTER, - SWAPPED - } - - public static delegate void Callback (); - - [Compact] - public class Closure : Boxed { - } - - public static delegate void ClosureNotify (void* data, Closure closure); - - [Compact] - [CCode (type_id = "G_TYPE_VALUE_ARRAY")] - public class ValueArray : Boxed { - public uint n_values; - public Value[] values; - public ValueArray (uint n_prealloced); - public weak Value? get_nth (uint index_); - public void append (Value value); - public void prepend (Value value); - public void insert (uint index_, Value value); - public void remove (uint index_); - public void sort (CompareFunc compare_func); - public void sort_with_data (CompareDataFunc compare_func); - } - - namespace Signal { - public static void query (uint signal_id, out SignalQuery query); - public static uint lookup (string name, Type itype); - public static weak string name (uint signal_id); - public static uint[] list_ids (Type itype); - public static void emit (void* instance, uint signal_id, Quark detail, ...); - public static void emit_by_name (void* instance, string detailed_signal, ...); - public static ulong connect (void* instance, string detailed_signal, Callback handler, void* data); - public static ulong connect_after (void* instance, string detailed_signal, Callback handler, void* data); - public static ulong connect_swapped (void* instance, string detailed_signal, Callback handler, void* data); - public static ulong connect_object (void* instance, string detailed_signal, Callback handler, Object gobject, ConnectFlags flags); - public static ulong connect_data (void* instance, string detailed_signal, Callback handler, void* data, ClosureNotify destroy_data, ConnectFlags flags); - public static ulong connect_closure (void* instance, string detailed_signal, Closure closure, bool after); - public static ulong connect_closure_by_id (void* instance, uint signal_id, Quark detail, Closure closure, bool after); - public static bool has_handler_pending (void* instance, uint signal_id, Quark detail, bool may_be_blocked); - public static void stop_emission (void* instance, uint signal_id, Quark detail); - public static void stop_emission_by_name (void* instance, string detailed_signal); - public static void override_class_closure (uint signal_id, Type instance_type, Closure class_closure); - public static void chain_from_overridden ([CCode (array_length = false)] Value[] instance_and_params, out Value return_value); - public static ulong add_emission_hook (uint signal_id, Quark detail, SignalEmissionHook hook_func, DestroyNotify? data_destroy); - public static void remove_emission_hook (uint signal_id, ulong hook_id); - public static bool parse_name (string detailed_signal, Type itype, out uint signal_id, out Quark detail, bool force_detail_quark); - } - - namespace SignalHandler { - public static void block (void* instance, ulong handler_id); - public static void unblock (void* instance, ulong handler_id); - public static void disconnect (void* instance, ulong handler_id); - public static ulong find (void* instance, SignalMatchType mask, uint signal_id, Quark detail, Closure? closure, void* func, void* data); - public static bool is_connected (void* instance, ulong handler_id); - - [CCode (cname = "g_signal_handlers_block_matched")] - public static uint block_matched (void* instance, SignalMatchType mask, uint signal_id, Quark detail, Closure? closure, void* func, void* data); - [CCode (cname = "g_signal_handlers_unblock_matched")] - public static uint unblock_matched (void* instance, SignalMatchType mask, uint signal_id, Quark detail, Closure? closure, void* func, void* data); - [CCode (cname = "g_signal_handlers_disconnect_matched")] - public static uint disconnect_matched (void* instance, SignalMatchType mask, uint signal_id, Quark detail, Closure? closure, void* func, void* data); - [CCode (cname = "g_signal_handlers_block_by_func")] - public static uint block_by_func (void* instance, void* func, void* data); - [CCode (cname = "g_signal_handlers_unblock_by_func")] - public static uint unblock_by_func (void* instance, void* func, void* data); - [CCode (cname = "g_signal_handlers_disconnect_by_func")] - public static uint disconnect_by_func (void* instance, void* func, void* data); - } - - public struct SignalQuery { - public uint signal_id; - public weak string signal_name; - public Type itype; - public SignalFlags signal_flags; - public Type return_type; - public uint n_params; - [CCode (array_length = false)] - public weak Type[] param_types; - } - - [CCode (cprefix = "G_SIGNAL_MATCH_", has_type_id = false)] - public enum SignalMatchType { - ID, - DETAIL, - CLOSURE, - FUNC, - DATA, - UNBLOCKED - } -} -- 2.11.4.GIT