From aeda65cd3cd964526b21546900d609f2b4a2541a Mon Sep 17 00:00:00 2001 From: Artur Skawina Date: Fri, 3 Feb 2012 21:55:51 +0100 Subject: [PATCH] Regenerate. Cogl works now. Cogl module exposes experimental APIs. Also, needs patches to upstream so that all the necessary data structures are included in the GIR file. The D cogl module in this commit was generated from a patched cogl-1.9.4 git version. --- gtk2/atk.d | 92 +- gtk2/cally.d | 16 + gtk2/clutter.d | 1345 ++++++++++++++- gtk2/clutterx11.d | 41 +- gtk2/cogl.d | 4797 ++++++++++++++++++++++++++++++++++++++++++++++------- gtk2/coglpango.d | 10 + gtk2/gdk2.d | 385 ++++- gtk2/gdkpixbuf2.d | 50 +- gtk2/gio2.d | 1025 +++++++++++- gtk2/glib2.d | 814 +++++++++ gtk2/gmodule2.d | 3 + gtk2/gobject2.d | 107 +- gtk2/gtk2.d | 2628 ++++++++++++++++++++++++----- gtk2/json.d | 117 +- gtk2/pango.d | 138 ++ gtk2/pangocairo.d | 29 + 16 files changed, 10427 insertions(+), 1170 deletions(-) diff --git a/gtk2/atk.d b/gtk2/atk.d index af3df08..fce4a18 100644 --- a/gtk2/atk.d +++ b/gtk2/atk.d @@ -154,6 +154,7 @@ struct Component /* Interface */ { return atk_component_contains(cast(Component*)&this, x, y, coord_type); } + // VERSION: 1.12 // Returns the alpha value (i.e. the opacity) for this // (fully opaque). // RETURNS: An alpha value from 0 to 1.0, inclusive. @@ -259,7 +260,7 @@ struct Component /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"bounds-changed", CB/*:signal_bounds_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"bounds-changed", CB:signal_bounds_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"bounds-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -341,6 +342,7 @@ enum CoordType { } struct Document /* Interface */ { mixin template __interface__() { + // VERSION: 1.12 // document, or NULL if a value for #attribute_name has not been specified // for this document. // RETURNS: a string value associated with the named attribute for this @@ -349,6 +351,7 @@ struct Document /* Interface */ { return atk_document_get_attribute_value(cast(Document*)&this, attribute_name); } + // VERSION: 1.12 // Gets an AtkAttributeSet which describes document-wide // attributes as name-value pairs. // set name-value-pair attributes associated with this document @@ -384,6 +387,7 @@ struct Document /* Interface */ { return atk_document_get_locale(cast(Document*)&this); } + // VERSION: 1.12 // for this document, FALSE otherwise (e.g. if the document does not // allow the attribute to be modified). // RETURNS: TRUE if #value is successfully associated with #attribute_name @@ -398,17 +402,17 @@ struct Document /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"load-complete", CB/*:signal_load_complete*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"load-complete", CB:signal_load_complete)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"load-complete", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Document* this_, void* user_data=null) signal_load_stopped; - ulong signal_connect(string name:"load-stopped", CB/*:signal_load_stopped*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"load-stopped", CB:signal_load_stopped)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"load-stopped", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Document* this_, void* user_data=null) signal_reload; - ulong signal_connect(string name:"reload", CB/*:signal_reload*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"reload", CB:signal_reload)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"reload", cast(GObject2.Callback)cb, data, null, cf); } @@ -626,7 +630,7 @@ struct Hyperlink /* : GObject.Object */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"link-activated", CB/*:signal_link_activated*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"link-activated", CB:signal_link_activated)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"link-activated", cast(GObject2.Callback)cb, data, null, cf); } @@ -658,6 +662,7 @@ struct HyperlinkClass { struct HyperlinkImpl /* Interface */ { mixin template __interface__() { + // VERSION: 1.12 // Gets the hyperlink associated with this object. // implementing AtkObject. // RETURNS: an AtkHyperlink object which points to this @@ -708,7 +713,7 @@ struct Hypertext /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"link-selected", CB/*:signal_link_selected*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"link-selected", CB:signal_link_selected)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"link-selected", cast(GObject2.Callback)cb, data, null, cf); } @@ -856,12 +861,14 @@ struct Misc /* : GObject.Object */ { GObject2.Object parent; + // VERSION: 1.13 // Obtain the singleton instance of AtkMisc for this application. // RETURNS: The singleton instance of AtkMisc for this application. static Misc* get_instance()() { return atk_misc_get_instance(); } + // VERSION: 1.13 // Take the thread mutex for the GUI toolkit, // if one exists. // (This method is implemented by the toolkit ATK implementation layer; @@ -870,6 +877,7 @@ struct Misc /* : GObject.Object */ { atk_misc_threads_enter(&this); } + // VERSION: 1.13 // Release the thread mutex for the GUI toolkit, // if one exists. This method, and atk_misc_threads_enter, // are needed in some situations by threaded application code which @@ -970,6 +978,7 @@ struct Object /* : GObject.Object */ { return atk_object_connect_property_change_handler(&this, handler); } + // VERSION: 1.12 // Get a list of properties applied to this object as a whole, as an #AtkAttributeSet consisting of // name-value pairs. As such these attributes may be considered weakly-typed properties or annotations, // as distinct from strongly-typed object data available via other get/set methods. @@ -1105,32 +1114,32 @@ struct Object /* : GObject.Object */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"active-descendant-changed", CB/*:signal_active_descendant_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"active-descendant-changed", CB:signal_active_descendant_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"active-descendant-changed", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Object* this_, c_uint object, void* p0, void* user_data=null) signal_children_changed; - ulong signal_connect(string name:"children-changed", CB/*:signal_children_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"children-changed", CB:signal_children_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"children-changed", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Object* this_, c_int object, void* user_data=null) signal_focus_event; - ulong signal_connect(string name:"focus-event", CB/*:signal_focus_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"focus-event", CB:signal_focus_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"focus-event", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Object* this_, void* object, void* user_data=null) signal_property_change; - ulong signal_connect(string name:"property-change", CB/*:signal_property_change*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"property-change", CB:signal_property_change)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"property-change", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Object* this_, char* object, c_int p0, void* user_data=null) signal_state_change; - ulong signal_connect(string name:"state-change", CB/*:signal_state_change*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"state-change", CB:signal_state_change)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"state-change", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Object* this_, void* user_data=null) signal_visible_data_changed; - ulong signal_connect(string name:"visible-data-changed", CB/*:signal_visible_data_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"visible-data-changed", CB:signal_visible_data_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"visible-data-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -1309,6 +1318,7 @@ struct Relation /* : GObject.Object */ { return atk_relation_new(targets, n_targets, relationship); } + // VERSION: 1.9 // Adds the specified AtkObject to the target for the relation, if it is // not already present. See also atk_object_add_relationship(). // : an #AtkObject @@ -1364,6 +1374,7 @@ struct RelationSet /* : GObject.Object */ { atk_relation_set_add(&this, relation); } + // VERSION: 1.9 // Add a new relation of the specified type with the specified target to // the current relation set if the relation set does not contain a relation // of that type. If it is does contain a relation of that typea the target @@ -1612,7 +1623,7 @@ struct Selection /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"selection-changed", CB/*:signal_selection_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"selection-changed", CB:signal_selection_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"selection-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -1660,6 +1671,7 @@ struct Socket /* : Object */ { return atk_socket_new(); } + // VERSION: 1.30 // Embeds the children of an #AtkPlug as the children of the #AtkSocket. The // plug may be in the same process or in a different process. // THe class item used by this function should be filled in by the IPC layer @@ -1672,6 +1684,7 @@ struct Socket /* : Object */ { atk_socket_embed(&this, plug_id); } + // VERSION: 1.30 // Determines whether or not the socket has an embedded plug. // RETURNS: TRUE if a plug is embedded in the socket int is_occupied()() { @@ -1845,6 +1858,7 @@ struct StreamableContent /* Interface */ { return atk_streamable_content_get_stream(cast(StreamableContent*)&this, mime_type); } + // VERSION: 1.12 // Get a string representing a URI in IETF standard format // (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content // may be streamed in the specified mime-type, if one is available. @@ -2121,37 +2135,37 @@ struct Table /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"column-deleted", CB/*:signal_column_deleted*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"column-deleted", CB:signal_column_deleted)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"column-deleted", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) signal_column_inserted; - ulong signal_connect(string name:"column-inserted", CB/*:signal_column_inserted*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"column-inserted", CB:signal_column_inserted)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"column-inserted", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Table* this_, void* user_data=null) signal_column_reordered; - ulong signal_connect(string name:"column-reordered", CB/*:signal_column_reordered*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"column-reordered", CB:signal_column_reordered)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"column-reordered", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Table* this_, void* user_data=null) signal_model_changed; - ulong signal_connect(string name:"model-changed", CB/*:signal_model_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"model-changed", CB:signal_model_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"model-changed", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) signal_row_deleted; - ulong signal_connect(string name:"row-deleted", CB/*:signal_row_deleted*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"row-deleted", CB:signal_row_deleted)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"row-deleted", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) signal_row_inserted; - ulong signal_connect(string name:"row-inserted", CB/*:signal_row_inserted*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"row-inserted", CB:signal_row_inserted)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"row-inserted", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Table* this_, void* user_data=null) signal_row_reordered; - ulong signal_connect(string name:"row-reordered", CB/*:signal_row_reordered*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"row-reordered", CB:signal_row_reordered)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"row-reordered", cast(GObject2.Callback)cb, data, null, cf); } @@ -2290,6 +2304,7 @@ struct Text /* Interface */ { return atk_text_add_selection(cast(Text*)&this, start_offset, end_offset); } + // VERSION: 1.3 // Get the ranges of text in the specified bounding box. // element of the array returned by this function will be NULL. // RETURNS: Array of AtkTextRange. The last @@ -2362,6 +2377,7 @@ struct Text /* Interface */ { return atk_text_get_offset_at_point(cast(Text*)&this, x, y, coords); } + // VERSION: 1.3 // Get the bounding box for text within the specified range. // : The offset of the first text character for which boundary information is required. // : The offset of the text character after the last character for which boundary information is required. @@ -2555,37 +2571,37 @@ struct Text /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"text-attributes-changed", CB/*:signal_text_attributes_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-attributes-changed", CB:signal_text_attributes_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-attributes-changed", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Text* this_, int object, void* user_data=null) signal_text_caret_moved; - ulong signal_connect(string name:"text-caret-moved", CB/*:signal_text_caret_moved*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-caret-moved", CB:signal_text_caret_moved)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-caret-moved", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Text* this_, int object, int p0, void* user_data=null) signal_text_changed; - ulong signal_connect(string name:"text-changed", CB/*:signal_text_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-changed", CB:signal_text_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-changed", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Text* this_, int object, int p0, char* p1, void* user_data=null) signal_text_insert; - ulong signal_connect(string name:"text-insert", CB/*:signal_text_insert*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-insert", CB:signal_text_insert)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-insert", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Text* this_, int object, int p0, char* p1, void* user_data=null) signal_text_remove; - ulong signal_connect(string name:"text-remove", CB/*:signal_text_remove*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-remove", CB:signal_text_remove)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-remove", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Text* this_, void* user_data=null) signal_text_selection_changed; - ulong signal_connect(string name:"text-selection-changed", CB/*:signal_text_selection_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-selection-changed", CB:signal_text_selection_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-selection-changed", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Text* this_, int object, int p0, int p1, char* p2, void* user_data=null) signal_text_update; - ulong signal_connect(string name:"text-update", CB/*:signal_text_update*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"text-update", CB:signal_text_update)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"text-update", cast(GObject2.Callback)cb, data, null, cf); } @@ -2785,6 +2801,7 @@ struct Value /* Interface */ { atk_value_get_maximum_value(cast(Value*)&this, value); } + // VERSION: 1.12 // Gets the minimum increment by which the value of this object may be changed. If zero, // the minimum increment is undefined, which may mean that it is limited only by the // floating point precision of the platform. @@ -2833,47 +2850,47 @@ struct Window /* Interface */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"activate", CB/*:signal_activate*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"activate", CB:signal_activate)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"activate", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_create; - ulong signal_connect(string name:"create", CB/*:signal_create*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"create", CB:signal_create)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"create", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_deactivate; - ulong signal_connect(string name:"deactivate", CB/*:signal_deactivate*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"deactivate", CB:signal_deactivate)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"deactivate", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_destroy; - ulong signal_connect(string name:"destroy", CB/*:signal_destroy*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"destroy", CB:signal_destroy)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"destroy", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_maximize; - ulong signal_connect(string name:"maximize", CB/*:signal_maximize*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"maximize", CB:signal_maximize)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"maximize", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_minimize; - ulong signal_connect(string name:"minimize", CB/*:signal_minimize*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"minimize", CB:signal_minimize)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"minimize", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_move; - ulong signal_connect(string name:"move", CB/*:signal_move*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"move", CB:signal_move)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"move", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_resize; - ulong signal_connect(string name:"resize", CB/*:signal_resize*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"resize", CB:signal_resize)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"resize", cast(GObject2.Callback)cb, data, null, cf); } extern (C) alias static void function (Window* this_, void* user_data=null) signal_restore; - ulong signal_connect(string name:"restore", CB/*:signal_restore*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"restore", CB:signal_restore)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"restore", cast(GObject2.Callback)cb, data, null, cf); } @@ -2982,6 +2999,7 @@ static Registry* /*new*/ get_default_registry()() { } +// VERSION: 1.6 // Gets the currently focused object. // application // RETURNS: the currently focused object for the current @@ -3012,6 +3030,7 @@ static char* get_toolkit_version()() { } +// VERSION: 1.20 // Gets the current version for ATK. // RETURNS: version string for ATK static char* get_version()() { @@ -3158,6 +3177,7 @@ static TextAttribute text_attribute_register()(char* name) { } +// VERSION: 1.3 // Frees the memory associated with an array of AtkTextRange. It is assumed // that the array was returned by the function atk_text_get_bounded_ranges // and is NULL terminated. diff --git a/gtk2/cally.d b/gtk2/cally.d index 88e1373..0db6e9f 100644 --- a/gtk2/cally.d +++ b/gtk2/cally.d @@ -42,6 +42,7 @@ alias gtk2.freetype2 freetype2; // module Cally; +// VERSION: 1.6 // Action function, to be used on #AtkAction implementations as // an individual action. Unlike #CallyActionFunc, this function // uses the @user_data argument passed to cally_actor_add_action_full(). @@ -50,6 +51,7 @@ alias gtk2.freetype2 freetype2; extern (C) alias void function (Actor* cally_actor, void* user_data) ActionCallback; +// VERSION: 1.4 // Action function, to be used on #AtkAction implementations as a individual // action // : a #CallyActor @@ -68,6 +70,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { private ActorPrivate* priv; + // VERSION: 1.4 // Creates a new #CallyActor for the given @actor // RETURNS: the newly created #AtkObject // : a #ClutterActor @@ -76,6 +79,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { } // Unintrospectable method: add_action() / cally_actor_add_action() + // VERSION: 1.4 // Adds a new action to be accessed with the #AtkAction interface. // RETURNS: added action id, or -1 if failure // : the action name @@ -86,6 +90,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { return cally_actor_add_action(&this, action_name, action_description, action_keybinding, action_func); } + // VERSION: 1.6 // Adds a new action to be accessed with the #AtkAction interface. // RETURNS: added action id, or -1 if failure // : the action name @@ -98,6 +103,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { return cally_actor_add_action_full(&this, action_name, action_description, action_keybinding, callback, user_data, notify); } + // VERSION: 1.4 // Removes a action, using the @action_id returned by cally_actor_add_action() // RETURNS: %TRUE if the operation was succesful, %FALSE otherwise // : the action id @@ -105,6 +111,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { return cally_actor_remove_action(&this, action_id); } + // VERSION: 1.4 // Removes an action, using the @action_name used when the action was added // with cally_actor_add_action() // RETURNS: %TRUE if the operation was succesful, %FALSE otherwise @@ -142,6 +149,7 @@ struct Clone /* : Actor */ /* Version 1.4 */ { private ClonePrivate* priv; + // VERSION: 1.4 // Creates a new #CallyClone for the given @actor. @actor must be a // #ClutterClone. // RETURNS: the newly created #AtkObject @@ -175,6 +183,7 @@ struct Group /* : Actor */ /* Version 1.4 */ { private GroupPrivate* priv; + // VERSION: 1.4 // Creates a #CallyGroup for @actor // RETURNS: the newly created #CallyGroup // : a #ClutterGroup @@ -207,6 +216,7 @@ struct Rectangle /* : Actor */ /* Version 1.4 */ { private RectanglePrivate* priv; + // VERSION: 1.4 // Creates a new #CallyRectangle for the given @actor. @actor must be // a #ClutterRectangle. // RETURNS: the newly created #AtkObject @@ -238,6 +248,7 @@ struct Root /* : Atk.GObjectAccessible */ /* Version 1.4 */ { private RootPrivate* priv; + // VERSION: 1.4 // Creates a new #CallyRoot object. // RETURNS: the newly created #AtkObject static Root* /*new*/ new_()() { @@ -270,6 +281,7 @@ struct Stage /* : Group */ /* Version 1.4 */ { private StagePrivate* priv; + // VERSION: 1.4 // Creates a new #CallyStage for the given @actor. @actor should be a // #ClutterStage. // RETURNS: the newly created #AtkObject @@ -305,6 +317,7 @@ struct Text /* : Actor */ /* Version 1.4 */ { private TextPrivate* priv; + // VERSION: 1.4 // Creates a new #CallyText for the given @actor. @actor must be a // #ClutterText. // RETURNS: the newly created #AtkObject @@ -338,6 +351,7 @@ struct Texture /* : Actor */ /* Version 1.4 */ { private TexturePrivate* priv; + // VERSION: 1.4 // Creates a new #CallyTexture for the given @actor. @actor must be // a #ClutterTexture. // RETURNS: the newly created #AtkObject @@ -381,6 +395,7 @@ struct UtilPrivate { } +// VERSION: 1.4 // Initializes the accessibility support. // // initialized. @@ -390,6 +405,7 @@ static int accessibility_init()() { } +// VERSION: 1.4 // Returns if the accessibility support using cally is enabled. // // initialized. diff --git a/gtk2/clutter.d b/gtk2/clutter.d index 232a46e..f533f4b 100644 --- a/gtk2/clutter.d +++ b/gtk2/clutter.d @@ -136,6 +136,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { private ActorPrivate* priv; + // VERSION: 1.4 // Adds @action to the list of actions applied to @self // // A #ClutterAction can only belong to one actor at a time @@ -148,6 +149,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_add_action(&this, action); } + // VERSION: 1.4 // A convenience function for setting the name of a #ClutterAction // while adding it to the list of actions applied to @self // @@ -163,6 +165,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_add_action_with_name(&this, name, action); } + // VERSION: 1.4 // Adds @constraint to the list of #ClutterConstraints applied // to @self // @@ -174,6 +177,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_add_constraint(&this, constraint); } + // VERSION: 1.4 // A convenience function for setting the name of a #ClutterConstraint // while adding it to the list of constraints applied to @self // @@ -189,6 +193,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_add_constraint_with_name(&this, name, constraint); } + // VERSION: 1.4 // Adds @effect to the list of #ClutterEffects applied to @self // // The #ClutterActor will hold a reference on the @effect until either @@ -199,6 +204,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_add_effect(&this, effect); } + // VERSION: 1.4 // A convenience function for setting the name of a #ClutterEffect // while adding it to the list of effectss applied to @self // @@ -214,6 +220,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_add_effect_with_name(&this, name, effect); } + // VERSION: 0.8 // Called by the parent of an actor to assign the actor its size. // Should never be called by applications (except when implementing // a container or layout manager). @@ -229,6 +236,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_allocate(&this, box, flags); } + // VERSION: 1.4 // Allocates @self by taking into consideration the available allocation // area; an alignment factor on either axis; and whether the actor should // fill the allocation on either axis. @@ -252,6 +260,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_allocate_align_fill(&this, box, x_align, y_align, x_fill, y_fill, flags); } + // VERSION: 1.0 // Allocates @self taking into account the #ClutterActor's // preferred size, but limiting it to the maximum available width // and height provided. @@ -305,6 +314,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_allocate_available_size(&this, x, y, available_width, available_height, flags); } + // VERSION: 0.8 // Allocates the natural size of @self. // // This function is a utility call for #ClutterActor implementations @@ -323,6 +333,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { } // Unintrospectable method: animate() / clutter_actor_animate() + // VERSION: 1.0 // Animates the given list of properties of @actor between the current // value for each property and a new final value. The animation has a // definite duration and a speed given by the @mode. @@ -477,6 +488,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { +/ // Unintrospectable method: animate_with_alpha() / clutter_actor_animate_with_alpha() + // VERSION: 1.0 // Animates the given list of properties of @actor between the current // value for each property and a new final value. The animation has a // definite behaviour given by the passed @alpha. @@ -494,6 +506,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { alias clutter_actor_animate_with_alpha animate_with_alpha; // Variadic +/ + // VERSION: 1.0 // Animates the given list of properties of @actor between the current // value for each property and a new final value. The animation has a // definite behaviour given by the passed @alpha. @@ -520,6 +533,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { } // Unintrospectable method: animate_with_timeline() / clutter_actor_animate_with_timeline() + // VERSION: 1.0 // Animates the given list of properties of @actor between the current // value for each property and a new final value. The animation has a // definite duration given by @timeline and a speed given by the @mode. @@ -539,6 +553,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { alias clutter_actor_animate_with_timeline animate_with_timeline; // Variadic +/ + // VERSION: 1.0 // Animates the given list of properties of @actor between the current // value for each property and a new final value. The animation has a // definite duration given by @timeline and a speed given by the @mode. @@ -566,6 +581,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_animate_with_timelinev(&this, mode, timeline, n_properties, properties, values); } + // VERSION: 1.0 // Animates the given list of properties of @actor between the current // value for each property and a new final value. The animation has a // definite duration and a speed given by the @mode. @@ -588,6 +604,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_animatev(&this, mode, duration, n_properties, properties, values); } + // VERSION: 0.6 // Transforms @point in coordinates relative to the actor into // ancestor-relative coordinates using the relevant transform // stack (i.e. scale, rotation, etc). @@ -603,6 +620,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_apply_relative_transform_to_point(&this, ancestor, point, vertex); } + // VERSION: 0.4 // Transforms @point in coordinates relative to the actor // into screen-relative coordinates with the current actor // transformation (i.e. scale, rotation, etc) @@ -611,19 +629,26 @@ struct Actor /* : GObject.InitiallyUnowned */ { void apply_transform_to_point()(Vertex* point, /*out*/ Vertex* vertex) { clutter_actor_apply_transform_to_point(&this, point, vertex); } + + // VERSION: 1.4 // Clears the list of actions applied to @self void clear_actions()() { clutter_actor_clear_actions(&this); } + + // VERSION: 1.4 // Clears the list of constraints applied to @self void clear_constraints()() { clutter_actor_clear_constraints(&this); } + + // VERSION: 1.4 // Clears the list of effects applied to @self void clear_effects()() { clutter_actor_clear_effects(&this); } + // VERSION: 1.4 // Determines if @descendant is contained inside @self (either as an // immediate child, or as a deeper descendant). If @self and // @descendant point to the same actor then it will also return %TRUE. @@ -633,6 +658,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_contains(&this, descendant); } + // VERSION: 1.8 // Run the next stage of the paint sequence. This function should only // be called within the implementation of the ‘run’ virtual of a // #ClutterEffect. It will cause the run method of the next effect to @@ -642,6 +668,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_continue_paint(&this); } + // VERSION: 1.0 // Creates a #PangoContext for the given actor. The #PangoContext // is already configured using the appropriate font map, resolution // and font options. @@ -655,6 +682,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_create_pango_context(&this); } + // VERSION: 1.0 // Creates a new #PangoLayout from the same #PangoContext used // by the #ClutterActor. The #PangoLayout is already configured // with the font map, resolution and font options, and the @@ -684,6 +712,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_destroy(&this); } + // VERSION: 1.4 // Detaches the #ClutterAnimation used by @actor, if clutter_actor_animate() // has been called on @actor. // @@ -695,6 +724,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_detach_animation(&this); } + // VERSION: 0.6 // This function is used to emit an event on the main stage. // You should rarely need to use this function, except for // synthetising events. @@ -708,6 +738,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_event(&this, event, capture); } + // VERSION: 0.4 // Calculates the transformed screen coordinates of the four corners of // the actor; the returned vertices relate to the #ClutterActorBox // coordinates as follows: @@ -739,6 +770,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_accessible(&this); } + // VERSION: 1.4 // Retrieves the #ClutterAction with the given name in the list // of actions applied to @self // @@ -750,6 +782,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_action(&this, name); } + // VERSION: 1.4 // Retrieves the list of actions applied to @self // // of the list of #ClutterActions. The contents of the list are @@ -760,6 +793,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_actions(&this); } + // VERSION: 0.8 // Gets the layout box an actor has been assigned. The allocation can // only be assumed valid inside a paint() method; anywhere else, it // may be out-of-date. @@ -775,6 +809,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_allocation_box(&this, box); } + // VERSION: 0.8 // Gets the layout box an actor has been assigned. The allocation can // only be assumed valid inside a paint() method; anywhere else, it // may be out-of-date. @@ -788,6 +823,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_allocation_geometry(&this, geom); } + // VERSION: 0.6 // Calculates the transformed coordinates of the four corners of the // actor in the plane of @ancestor. The returned vertices relate to // the #ClutterActorBox coordinates as follows: @@ -808,6 +844,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_allocation_vertices(&this, ancestor, verts); } + // VERSION: 0.6 // Gets the current anchor point of the @actor in pixels. // : return location for the X coordinate of the anchor point // : return location for the Y coordinate of the anchor point @@ -815,6 +852,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_anchor_point(&this, anchor_x, anchor_y); } + // VERSION: 1.0 // Retrieves the anchor position expressed as a #ClutterGravity. If // the anchor point was specified using pixels or units this will // return %CLUTTER_GRAVITY_NONE. @@ -823,6 +861,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_anchor_point_gravity(&this); } + // VERSION: 1.0 // Retrieves the #ClutterAnimation used by @actor, if clutter_actor_animate() // has been called on @actor. // RETURNS: a #ClutterAnimation, or %NULL @@ -830,6 +869,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_animation(&this); } + // VERSION: 0.6 // Gets the clip area for @self, if any is set // : return location for the X offset of the clip rectangle, or %NULL // : return location for the Y offset of the clip rectangle, or %NULL @@ -839,12 +879,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_clip(&this, xoff, yoff, width, height); } + // VERSION: 1.4 // Retrieves the value set using clutter_actor_set_clip_to_allocation() // RETURNS: %TRUE if the #ClutterActor is clipped to its allocation int get_clip_to_allocation()() { return clutter_actor_get_clip_to_allocation(&this); } + // VERSION: 1.4 // Retrieves the #ClutterConstraint with the given name in the list // of constraints applied to @self // @@ -856,6 +898,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_constraint(&this, name); } + // VERSION: 1.4 // Retrieves the list of constraints applied to @self // // of the list of #ClutterConstraints. The contents of the list are @@ -872,6 +915,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_depth(&this); } + // VERSION: 1.4 // Retrieves the #ClutterEffect with the given name in the list // of effects applied to @self // @@ -883,6 +927,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_effect(&this, name); } + // VERSION: 1.4 // Retrieves the #ClutterEffects applied on @self, if any // // of #ClutterEffects, or %NULL. The elements of the returned @@ -893,6 +938,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_effects(&this); } + // VERSION: 0.8 // Checks whether an actor has a fixed position set (and will thus be // unaffected by any layout manager). // RETURNS: %TRUE if the fixed position is set on the actor @@ -900,6 +946,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_fixed_position_set(&this); } + // VERSION: 1.0 // Retrieves the flags set on @self // RETURNS: a bitwise or of #ClutterActorFlags or 0 ActorFlags get_flags()() { @@ -915,6 +962,8 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_geometry(&this, geometry); } + // VERSION: 0.6 + // DEPRECATED (v1.8) method: get_gid - The id is not used any longer. // Retrieves the unique id for @self. // RETURNS: Globally unique value for this object instance. uint get_gid()() { @@ -952,6 +1001,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_name(&this); } + // VERSION: 1.8 // Retrieves whether to redirect the actor to an offscreen buffer, as // set by clutter_actor_set_offscreen_redirect(). // RETURNS: the value of the offscreen-redirect property of the actor @@ -969,6 +1019,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_opacity(&this); } + // VERSION: 1.6 // Retrieves the paint volume of the passed #ClutterActor, and // transforms it into a 2D bounding box in stage coordinates. // @@ -989,6 +1040,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_paint_box(&this, box); } + // VERSION: 0.8 // Retrieves the absolute opacity of the actor, as it appears on the stage. // // This function traverses the hierarchy chain and composites the opacity of @@ -1001,6 +1053,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_paint_opacity(&this); } + // VERSION: 0.8.4 // Retrieves the 'paint' visibility of an actor recursively checking for non // visible parents. // @@ -1010,6 +1063,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_paint_visibility(&this); } + // VERSION: 1.6 // Retrieves the paint volume of the passed #ClutterActor, or %NULL // when a paint volume can't be determined. // @@ -1033,6 +1087,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_paint_volume(&this); } + // VERSION: 1.0 // Retrieves the #PangoContext for @self. The actor's #PangoContext // is already configured using the appropriate font map, resolution // and font options. @@ -1060,6 +1115,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_parent(&this); } + // VERSION: 0.6 // This function tries to "do what you mean" and tell you where the // actor is, prior to any transformations. Retrieves the fixed // position of an actor in pixels, if one has been set; otherwise, if @@ -1073,6 +1129,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_position(&this, x, y); } + // VERSION: 0.8 // Computes the requested minimum and natural heights for an actor, // or if they are already computed, returns the cached values. // @@ -1088,6 +1145,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_preferred_height(&this, for_width, min_height_p, natural_height_p); } + // VERSION: 0.8 // Computes the preferred minimum and natural size of an actor, taking into // account the actor's geometry management (either height-for-width // or width-for-height). @@ -1107,6 +1165,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_preferred_size(&this, min_width_p, min_height_p, natural_width_p, natural_height_p); } + // VERSION: 0.8 // Computes the requested minimum and natural widths for an actor, // optionally depending on the specified height, or if they are // already computed, returns the cached values. @@ -1123,18 +1182,21 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_preferred_width(&this, for_height, min_width_p, natural_width_p); } + // VERSION: 0.6 // Checks whether @actor is marked as reactive. // RETURNS: %TRUE if the actor is reactive int get_reactive()() { return clutter_actor_get_reactive(&this); } + // VERSION: 1.2 // Retrieves the geometry request mode of @self // RETURNS: the request mode for the actor RequestMode get_request_mode()() { return clutter_actor_get_request_mode(&this); } + // VERSION: 0.8 // Retrieves the angle and center of rotation on the given axis, // set using clutter_actor_set_rotation(). // RETURNS: the angle of rotation @@ -1146,6 +1208,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_rotation(&this, axis, x, y, z); } + // VERSION: 0.2 // Retrieves an actors scale factors. // : Location to store horizonal scale factor, or %NULL. // : Location to store vertical scale factor, or %NULL. @@ -1153,6 +1216,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_scale(&this, scale_x, scale_y); } + // VERSION: 1.0 // Retrieves the scale center coordinate in pixels relative to the top // left corner of the actor. If the scale center was specified using a // #ClutterGravity this will calculate the pixel offset using the @@ -1163,6 +1227,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_scale_center(&this, center_x, center_y); } + // VERSION: 1.0 // Retrieves the scale center as a compass direction. If the scale // center was specified in pixels or units this will return // %CLUTTER_GRAVITY_NONE. @@ -1171,6 +1236,8 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_scale_gravity(&this); } + // VERSION: 0.6 + // DEPRECATED (v1.8) method: get_shader - Use clutter_actor_get_effect() instead. // Queries the currently set #ClutterShader on @self. // // or %NULL if no shader is set. @@ -1179,6 +1246,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_shader(&this); } + // VERSION: 0.2 // This function tries to "do what you mean" and return // the size an actor will have. If the actor has a valid // allocation, the allocation will be returned; otherwise, @@ -1194,6 +1262,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_size(&this, width, height); } + // VERSION: 0.8 // Retrieves the #ClutterStage where @actor is contained. // // containing the actor, or %NULL @@ -1202,6 +1271,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_stage(&this); } + // VERSION: 1.2 // Retrieves the value set using clutter_actor_set_text_direction() // // If no text direction has been previously set, the default text @@ -1212,6 +1282,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_text_direction(&this); } + // VERSION: 1.0 // Retrieves the transformations applied to @self relative to its // parent. // : the return location for a #CoglMatrix @@ -1219,6 +1290,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_transformation_matrix(&this, matrix); } + // VERSION: 1.6 // Retrieves the 3D paint volume of an actor like // clutter_actor_get_paint_volume() does (Please refer to the // documentation of clutter_actor_get_paint_volume() for more @@ -1238,6 +1310,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_transformed_paint_volume(&this, relative_to_ancestor); } + // VERSION: 0.8 // Gets the absolute position of an actor, in pixels relative to the stage. // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL @@ -1245,6 +1318,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_get_transformed_position(&this, x, y); } + // VERSION: 0.8 // Gets the absolute size of an actor in pixels, taking into account the // scaling factors. // @@ -1335,6 +1409,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_y(&this); } + // VERSION: 1.0 // Retrieves the center for the rotation around the Z axis as a // compass direction. If the center was specified in pixels or units // this will return %CLUTTER_GRAVITY_NONE. @@ -1343,12 +1418,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_get_z_rotation_gravity(&this); } + // VERSION: 1.0 // Sets the key focus of the #ClutterStage including @self // to this #ClutterActor. void grab_key_focus()() { clutter_actor_grab_key_focus(&this); } + // VERSION: 1.4 // Checks if the actor has an up-to-date allocation assigned to // it. This means that the actor should have an allocation: it's // visible and has a parent. It also means that there is no @@ -1364,18 +1441,21 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_has_allocation(&this); } + // VERSION: 0.1.1 // Determines whether the actor has a clip area set or not. // RETURNS: %TRUE if the actor has a clip area set. int has_clip()() { return clutter_actor_has_clip(&this); } + // VERSION: 1.4 // Checks whether @self is the #ClutterActor that has key focus // RETURNS: %TRUE if the actor has key focus, and %FALSE otherwise int has_key_focus()() { return clutter_actor_has_key_focus(&this); } + // VERSION: 1.8 // Asks the actor's implementation whether it may contain overlapping // primitives. // @@ -1393,6 +1473,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_has_overlaps(&this); } + // VERSION: 1.2 // Checks whether an actor contains the pointer of a // #ClutterInputDevice // @@ -1413,11 +1494,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { void hide()() { clutter_actor_hide(&this); } + + // VERSION: 0.2 // Calls clutter_actor_hide() on all child actors (if any). void hide_all()() { clutter_actor_hide_all(&this); } + // VERSION: 1.0 // Checks whether @self is being currently painted by a #ClutterClone // // This function is useful only inside the ::paint virtual function @@ -1432,12 +1516,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_is_in_clone_paint(&this); } + // VERSION: 0.6 // Checks whether any rotation is applied to the actor. // RETURNS: %TRUE if the actor is rotated. int is_rotated()() { return clutter_actor_is_rotated(&this); } + // VERSION: 0.6 // Checks whether the actor is scaled in either dimension. // RETURNS: %TRUE if the actor is scaled. int is_scaled()() { @@ -1462,6 +1548,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_lower_bottom(&this); } + // VERSION: 1.0 // Sets the %CLUTTER_ACTOR_MAPPED flag on the actor and possibly maps // and realizes its children if they are visible. Does nothing if the // actor is not visible. @@ -1478,6 +1565,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_map(&this); } + // VERSION: 0.6 // Sets an anchor point for the actor, and adjusts the actor postion so that // the relative position of the actor toward its parent remains the same. // : X coordinate of the anchor point @@ -1486,6 +1574,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_move_anchor_point(&this, anchor_x, anchor_y); } + // VERSION: 0.6 // Sets an anchor point on the actor based on the given gravity, adjusting the // actor postion so that its relative position within its parent remains // unchanged. @@ -1500,6 +1589,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_move_anchor_point_from_gravity(&this, gravity); } + // VERSION: 0.2 // Moves an actor by the specified distance relative to its current // position in pixels. // @@ -1528,11 +1618,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { void paint()() { clutter_actor_paint(&this); } + + // VERSION: 1.2 // Disables the effects of clutter_actor_push_internal() void pop_internal()() { clutter_actor_pop_internal(&this); } + // VERSION: 1.2 // Should be used by actors implementing the #ClutterContainer and with // internal children added through clutter_actor_set_parent(), for instance: // @@ -1600,6 +1693,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_queue_redraw(&this); } + // VERSION: 0.8 // Indicates that the actor's size request or other layout-affecting // properties may have changed. This function is used inside #ClutterActor // subclass implementations, not by applications directly. @@ -1646,6 +1740,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_realize(&this); } + // VERSION: 1.4 // Removes @action from the list of actions applied to @self // // The reference held by @self on the #ClutterAction will be released @@ -1654,6 +1749,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_remove_action(&this, action); } + // VERSION: 1.4 // Removes the #ClutterAction with the given name from the list // of actions applied to @self // : the name of the action to remove @@ -1665,6 +1761,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_remove_clip(&this); } + // VERSION: 1.4 // Removes @constraint from the list of constraints applied to @self // // The reference held by @self on the #ClutterConstraint will be released @@ -1673,6 +1770,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_remove_constraint(&this, constraint); } + // VERSION: 1.4 // Removes the #ClutterConstraint with the given name from the list // of constraints applied to @self // : the name of the constraint to remove @@ -1680,6 +1778,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_remove_constraint_by_name(&this, name); } + // VERSION: 1.4 // Removes @effect from the list of effects applied to @self // // The reference held by @self on the #ClutterEffect will be released @@ -1688,6 +1787,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_remove_effect(&this, effect); } + // VERSION: 1.4 // Removes the #ClutterEffect with the given name from the list // of effects applied to @self // : the name of the effect to remove @@ -1695,6 +1795,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_remove_effect_by_name(&this, name); } + // VERSION: 0.2 // This function resets the parent actor of @self. It is // logically equivalent to calling clutter_actor_unparent() // and clutter_actor_set_parent(), but more efficiently @@ -1706,6 +1807,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_reparent(&this, new_parent); } + // VERSION: 0.6 // Sets an anchor point for @self. The anchor point is a point in the // coordinate space of an actor to which the actor position within its // parent is relative; the default is (0, 0), i.e. the top-left corner @@ -1716,6 +1818,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_anchor_point(&this, anchor_x, anchor_y); } + // VERSION: 0.6 // Sets an anchor point on the actor, based on the given gravity (this is a // convenience function wrapping clutter_actor_set_anchor_point()). // @@ -1729,6 +1832,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_anchor_point_from_gravity(&this, gravity); } + // VERSION: 0.6 // Sets clip area for @self. The clip area is always computed from the // upper left corner of the actor, even if the anchor point is set // otherwise. @@ -1740,6 +1844,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_clip(&this, xoff, yoff, width, height); } + // VERSION: 1.4 // Sets whether @self should be clipped to the same size as its // allocation // : %TRUE to apply a clip tracking the allocation @@ -1756,6 +1861,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_depth(&this, depth); } + // VERSION: 0.8 // Sets whether an actor has a fixed position set (and will thus be // unaffected by any layout manager). // : whether to use fixed position @@ -1763,6 +1869,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_fixed_position_set(&this, is_set); } + // VERSION: 1.0 // Sets @flags on @self // // This function will emit notifications for the changed properties @@ -1780,6 +1887,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_geometry(&this, geometry); } + // VERSION: 0.2 // Forces a height on an actor, causing the actor's preferred width // and height (if any) to be ignored. // @@ -1799,6 +1907,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_name(&this, name); } + // VERSION: 1.8 // Defines the circumstances where the actor should be redirected into // an offscreen image. The offscreen image is used to flatten the // actor into a single image while painting for two main reasons. @@ -1889,12 +1998,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_position(&this, x, y); } + // VERSION: 0.6 // Sets @actor as reactive. Reactive actors will receive events. // : whether the actor should be reactive to events void set_reactive()(int reactive) { clutter_actor_set_reactive(&this, reactive); } + // VERSION: 1.2 // Sets the geometry request mode of @self. // // The @mode determines the order for invoking @@ -1905,6 +2016,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_request_mode(&this, mode); } + // VERSION: 0.8 // Sets the rotation angle of @self around the given axis. // // The rotation center coordinates used depend on the value of @axis: @@ -1926,6 +2038,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_rotation(&this, axis, angle, x, y, z); } + // VERSION: 0.2 // Scales an actor with the given factors. The scaling is relative to // the scale center and the anchor point. The scale center is // unchanged by this function and defaults to 0,0. @@ -1935,6 +2048,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_scale(&this, scale_x, scale_y); } + // VERSION: 1.0 // Scales an actor with the given factors around the given center // point. The center point is specified in pixels relative to the // anchor point (usually the top left corner of the actor). @@ -1946,6 +2060,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_scale_full(&this, scale_x, scale_y, center_x, center_y); } + // VERSION: 1.0 // Scales an actor with the given factors around the given // center point. The center point is specified as one of the compass // directions in #ClutterGravity. For example, setting it to north @@ -1958,6 +2073,8 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_scale_with_gravity(&this, scale_x, scale_y, gravity); } + // VERSION: 0.6 + // DEPRECATED (v1.8) method: set_shader - Use #ClutterShaderEffect and // Sets the #ClutterShader to be used when rendering @self. // // If @shader is %NULL this function will unset any currently set shader @@ -1976,6 +2093,8 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_set_shader(&this, shader); } + // VERSION: 1.0 + // DEPRECATED (v1.8) method: set_shader_param - Use clutter_shader_effect_set_uniform_value() instead // Sets the value for a named parameter of the shader applied // to @actor. // : the name of the parameter @@ -1984,6 +2103,8 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_shader_param(&this, param, value); } + // VERSION: 0.8 + // DEPRECATED (v1.8) method: set_shader_param_float - Use clutter_shader_effect_set_uniform() instead // Sets the value for a named float parameter of the shader applied // to @actor. // : the name of the parameter @@ -1992,6 +2113,8 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_shader_param_float(&this, param, value); } + // VERSION: 0.8 + // DEPRECATED (v1.8) method: set_shader_param_int - Use clutter_shader_effect_set_uniform() instead // Sets the value for a named int parameter of the shader applied to // @actor. // : the name of the parameter @@ -2016,6 +2139,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_size(&this, width, height); } + // VERSION: 1.2 // Sets the #ClutterTextDirection for an actor // // The passed text direction must not be %CLUTTER_TEXT_DIRECTION_DEFAULT @@ -2031,6 +2155,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_text_direction(&this, text_dir); } + // VERSION: 0.2 // Forces a width on an actor, causing the actor's preferred width // and height (if any) to be ignored. // @@ -2043,6 +2168,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_width(&this, width); } + // VERSION: 0.6 // Sets the actor's X coordinate, relative to its parent, in pixels. // // Overrides any layout manager and forces a fixed position for @@ -2052,6 +2178,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_x(&this, x); } + // VERSION: 0.6 // Sets the actor's Y coordinate, relative to its parent, in pixels.# // // Overrides any layout manager and forces a fixed position for @@ -2061,6 +2188,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_set_y(&this, y); } + // VERSION: 1.0 // Sets the rotation angle of @self around the Z axis using the center // point specified as a compass point. For example to rotate such that // the center of the actor remains static you can use @@ -2095,11 +2223,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { void show()() { clutter_actor_show(&this); } + + // VERSION: 0.2 // Calls clutter_actor_show() on all children of an actor (if any). void show_all()() { clutter_actor_show_all(&this); } + // VERSION: 0.6 // This function translates screen coordinates (@x, @y) to // coordinates relative to the actor. For example, it can be used to translate // screen events from global screen coordinates into actor-local coordinates. @@ -2124,6 +2255,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { return clutter_actor_transform_stage_point(&this, x, y, x_out, y_out); } + // VERSION: 1.0 // Unsets the %CLUTTER_ACTOR_MAPPED flag on the actor and possibly // unmaps its children if they were mapped. // @@ -2139,6 +2271,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_unmap(&this); } + // VERSION: 0.1.1 // Removes the parent of @self. // // This function should not be used in applications. @@ -2167,6 +2300,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_unrealize(&this); } + // VERSION: 1.0 // Unsets @flags on @self // // This function will emit notifications for the changed properties @@ -2175,6 +2309,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { clutter_actor_unset_flags(&this, flags); } + // VERSION: 1.0 // The ::allocation-changed signal is emitted when the // #ClutterActor:allocation property changes. Usually, application // code should just use the notifications for the :allocation property @@ -2189,11 +2324,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"allocation-changed", CB/*:signal_allocation_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"allocation-changed", CB:signal_allocation_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"allocation-changed", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::button-press-event signal is emitted each time a mouse button // is pressed on @actor. // @@ -2201,11 +2337,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterButtonEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_button_press_event; - ulong signal_connect(string name:"button-press-event", CB/*:signal_button_press_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"button-press-event", CB:signal_button_press_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"button-press-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::button-release-event signal is emitted each time a mouse button // is released on @actor. // @@ -2213,11 +2350,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterButtonEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_button_release_event; - ulong signal_connect(string name:"button-release-event", CB/*:signal_button_release_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"button-release-event", CB:signal_button_release_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"button-release-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::captured-event signal is emitted when an event is captured // by Clutter. This signal will be emitted starting from the top-level // container (the #ClutterStage) to the actor which received the event @@ -2230,11 +2368,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_captured_event; - ulong signal_connect(string name:"captured-event", CB/*:signal_captured_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"captured-event", CB:signal_captured_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"captured-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.2 // The ::destroy signal notifies that all references held on the // actor which emitted it should be released. // @@ -2250,22 +2389,24 @@ struct Actor /* : GObject.InitiallyUnowned */ { // their children. When overriding the default class handler, it is // required to chain up to the parent's implementation. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_destroy; - ulong signal_connect(string name:"destroy", CB/*:signal_destroy*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"destroy", CB:signal_destroy)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"destroy", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::enter-event signal is emitted when the pointer enters the @actor // // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterCrossingEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_enter_event; - ulong signal_connect(string name:"enter-event", CB/*:signal_enter_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"enter-event", CB:signal_enter_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"enter-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::event signal is emitted each time an event is received // by the @actor. This signal will be emitted on every actor, // following the hierarchy chain, until it reaches the top-level @@ -2275,31 +2416,37 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_event; - ulong signal_connect(string name:"event", CB/*:signal_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"event", CB:signal_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.2 // The ::hide signal is emitted when an actor is no longer rendered // on the stage. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_hide; - ulong signal_connect(string name:"hide", CB/*:signal_hide*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"hide", CB:signal_hide)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"hide", cast(GObject2.Callback)cb, data, null, cf); } + + // VERSION: 0.6 // The ::key-focus-in signal is emitted when @actor receives key focus. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_key_focus_in; - ulong signal_connect(string name:"key-focus-in", CB/*:signal_key_focus_in*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"key-focus-in", CB:signal_key_focus_in)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"key-focus-in", cast(GObject2.Callback)cb, data, null, cf); } + + // VERSION: 0.6 // The ::key-focus-out signal is emitted when @actor loses key focus. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_key_focus_out; - ulong signal_connect(string name:"key-focus-out", CB/*:signal_key_focus_out*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"key-focus-out", CB:signal_key_focus_out)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"key-focus-out", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::key-press-event signal is emitted each time a keyboard button // is pressed while @actor has key focus (see clutter_stage_set_key_focus()). // @@ -2307,11 +2454,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterKeyEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_key_press_event; - ulong signal_connect(string name:"key-press-event", CB/*:signal_key_press_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"key-press-event", CB:signal_key_press_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"key-press-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::key-release-event signal is emitted each time a keyboard button // is released while @actor has key focus (see // clutter_stage_set_key_focus()). @@ -2320,22 +2468,24 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterKeyEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_key_release_event; - ulong signal_connect(string name:"key-release-event", CB/*:signal_key_release_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"key-release-event", CB:signal_key_release_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"key-release-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::leave-event signal is emitted when the pointer leaves the @actor. // // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterCrossingEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_leave_event; - ulong signal_connect(string name:"leave-event", CB/*:signal_leave_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"leave-event", CB:signal_leave_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"leave-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::motion-event signal is emitted each time the mouse pointer is // moved over @actor. // @@ -2343,11 +2493,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterMotionEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_motion_event; - ulong signal_connect(string name:"motion-event", CB/*:signal_motion_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"motion-event", CB:signal_motion_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"motion-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.8 // The ::paint signal is emitted each time an actor is being painted. // // Subclasses of #ClutterActor should override the class signal handler @@ -2356,19 +2507,21 @@ struct Actor /* : GObject.InitiallyUnowned */ { // It is possible to connect a handler to the ::paint signal in order // to set up some custom aspect of a paint. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_paint; - ulong signal_connect(string name:"paint", CB/*:signal_paint*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"paint", CB:signal_paint)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"paint", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.2 // This signal is emitted when the parent of the actor changes. // : the previous parent of the actor, or %NULL extern (C) alias static void function (Actor* this_, Actor* old_parent, void* user_data=null) signal_parent_set; - ulong signal_connect(string name:"parent-set", CB/*:signal_parent_set*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"parent-set", CB:signal_parent_set)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"parent-set", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.0 // The ::pick signal is emitted each time an actor is being painted // in "pick mode". The pick mode is used to identify the actor during // the event handling phase, or by clutter_stage_get_actor_at_pos(). @@ -2381,11 +2534,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // to set up some custom aspect of a paint in pick mode. // : the #ClutterColor to be used when picking extern (C) alias static void function (Actor* this_, Color* color, void* user_data=null) signal_pick; - ulong signal_connect(string name:"pick", CB/*:signal_pick*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"pick", CB:signal_pick)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"pick", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.0 // The ::queue_redraw signal is emitted when clutter_actor_queue_redraw() // is called on @origin. // @@ -2430,11 +2584,12 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Stage with g_signal_connect_after(). // : the actor which initiated the redraw request extern (C) alias static void function (Actor* this_, Actor* origin, void* user_data=null) signal_queue_redraw; - ulong signal_connect(string name:"queue-redraw", CB/*:signal_queue_redraw*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"queue-redraw", CB:signal_queue_redraw)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"queue-redraw", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.2 // The ::queue_layout signal is emitted when clutter_actor_queue_relayout() // is called on an actor. // @@ -2446,19 +2601,21 @@ struct Actor /* : GObject.InitiallyUnowned */ { // properly in the procense of #ClutterClone actors. Applications will // not normally need to connect to this signal. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_queue_relayout; - ulong signal_connect(string name:"queue-relayout", CB/*:signal_queue_relayout*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"queue-relayout", CB:signal_queue_relayout)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"queue-relayout", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.8 // The ::realize signal is emitted each time an actor is being // realized. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_realize; - ulong signal_connect(string name:"realize", CB/*:signal_realize*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"realize", CB:signal_realize)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"realize", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.6 // The ::scroll-event signal is emitted each time the mouse is // scrolled on @actor // @@ -2466,23 +2623,25 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterScrollEvent extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) signal_scroll_event; - ulong signal_connect(string name:"scroll-event", CB/*:signal_scroll_event*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"scroll-event", CB:signal_scroll_event)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"scroll-event", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.2 // The ::show signal is emitted when an actor is visible and // rendered on the stage. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_show; - ulong signal_connect(string name:"show", CB/*:signal_show*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"show", CB:signal_show)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"show", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.8 // The ::unrealize signal is emitted each time an actor is being // unrealized. extern (C) alias static void function (Actor* this_, void* user_data=null) signal_unrealize; - ulong signal_connect(string name:"unrealize", CB/*:signal_unrealize*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"unrealize", CB:signal_unrealize)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"unrealize", cast(GObject2.Callback)cb, data, null, cf); } @@ -2496,6 +2655,7 @@ struct ActorBox { float x1, y1, x2, y2; + // VERSION: 1.0 // Allocates a new #ClutterActorBox using the passed coordinates // for the top left and bottom right points // @@ -2508,11 +2668,14 @@ struct ActorBox { static ActorBox* /*new*/ new_()(float x_1, float y_1, float x_2, float y_2) { return clutter_actor_box_new(x_1, y_1, x_2, y_2); } + + // VERSION: 1.2 // Clamps the components of @box to the nearest integer void clamp_to_pixel()() { clutter_actor_box_clamp_to_pixel(&this); } + // VERSION: 1.0 // Checks whether a point with @x, @y coordinates is contained // withing @box // RETURNS: %TRUE if the point is contained by the #ClutterActorBox @@ -2522,6 +2685,7 @@ struct ActorBox { return clutter_actor_box_contains(&this, x, y); } + // VERSION: 1.0 // Copies @box // // clutter_actor_box_free() to free the allocated resources @@ -2530,6 +2694,7 @@ struct ActorBox { return clutter_actor_box_copy(&this); } + // VERSION: 1.0 // Checks @box_a and @box_b for equality // RETURNS: %TRUE if the passed #ClutterActorBox are equal // : a #ClutterActorBox @@ -2537,12 +2702,14 @@ struct ActorBox { return clutter_actor_box_equal(&this, box_b); } + // VERSION: 1.0 // Frees a #ClutterActorBox allocated using clutter_actor_box_new() // or clutter_actor_box_copy() void free()() { clutter_actor_box_free(&this); } + // VERSION: 1.0 // Calculates the bounding box represented by the four vertices; for details // of the vertex array see clutter_actor_get_abs_allocation_vertices(). // : array of four #ClutterVertex @@ -2550,18 +2717,21 @@ struct ActorBox { clutter_actor_box_from_vertices(&this, verts); } + // VERSION: 1.0 // Retrieves the area of @box // RETURNS: the area of a #ClutterActorBox, in pixels float get_area()() { return clutter_actor_box_get_area(&this); } + // VERSION: 1.0 // Retrieves the height of the @box // RETURNS: the height of the box float get_height()() { return clutter_actor_box_get_height(&this); } + // VERSION: 1.0 // Retrieves the origin of @box // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL @@ -2569,6 +2739,7 @@ struct ActorBox { clutter_actor_box_get_origin(&this, x, y); } + // VERSION: 1.0 // Retrieves the size of @box // : return location for the width, or %NULL // : return location for the height, or %NULL @@ -2576,24 +2747,28 @@ struct ActorBox { clutter_actor_box_get_size(&this, width, height); } + // VERSION: 1.0 // Retrieves the width of the @box // RETURNS: the width of the box float get_width()() { return clutter_actor_box_get_width(&this); } + // VERSION: 1.0 // Retrieves the X coordinate of the origin of @box // RETURNS: the X coordinate of the origin float get_x()() { return clutter_actor_box_get_x(&this); } + // VERSION: 1.0 // Retrieves the Y coordinate of the origin of @box // RETURNS: the Y coordinate of the origin float get_y()() { return clutter_actor_box_get_y(&this); } + // VERSION: 1.2 // Interpolates between @initial and @final #ClutterActorBoxes // using @progress // : the final #ClutterActorBox @@ -2603,6 +2778,7 @@ struct ActorBox { clutter_actor_box_interpolate(&this, final_, progress, result); } + // VERSION: 1.6 // Changes the origin of @box, maintaining the size of the #ClutterActorBox. // : the X coordinate of the new origin // : the Y coordinate of the new origin @@ -2610,6 +2786,7 @@ struct ActorBox { clutter_actor_box_set_origin(&this, x, y); } + // VERSION: 1.6 // Sets the size of @box, maintaining the origin of the #ClutterActorBox. // : the new width // : the new height @@ -2617,6 +2794,7 @@ struct ActorBox { clutter_actor_box_set_size(&this, width, height); } + // VERSION: 1.4 // Unions the two boxes @a and @b and stores the result in @result. // : the second #ClutterActorBox // : the #ClutterActorBox representing a union of @a and @b @@ -2696,18 +2874,21 @@ struct ActorMeta /* : GObject.InitiallyUnowned */ /* Version 1.4 */ { private ActorMetaPrivate* priv; + // VERSION: 1.4 // Retrieves a pointer to the #ClutterActor that owns @meta // RETURNS: a pointer to a #ClutterActor or %NULL Actor* get_actor()() { return clutter_actor_meta_get_actor(&this); } + // VERSION: 1.4 // Retrieves whether @meta is enabled // RETURNS: %TRUE if the #ClutterActorMeta instance is enabled int get_enabled()() { return clutter_actor_meta_get_enabled(&this); } + // VERSION: 1.4 // Retrieves the name set using clutter_actor_meta_set_name() // // instance, or %NULL if none was set. The returned string is owned @@ -2718,12 +2899,14 @@ struct ActorMeta /* : GObject.InitiallyUnowned */ /* Version 1.4 */ { return clutter_actor_meta_get_name(&this); } + // VERSION: 1.4 // Sets whether @meta should be enabled or not // : whether @meta is enabled void set_enabled()(int is_enabled) { clutter_actor_meta_set_enabled(&this, is_enabled); } + // VERSION: 1.4 // Sets the name of @meta // // The name can be used to identify the #ClutterActorMeta instance @@ -2775,6 +2958,7 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { Constraint method_parent; + // VERSION: 1.4 // Creates a new constraint, aligning a #ClutterActor's position with // regards of the size of the actor to @source, with the given // alignment @factor @@ -2786,18 +2970,21 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { return clutter_align_constraint_new(source, axis, factor); } + // VERSION: 1.4 // Retrieves the value set using clutter_align_constraint_set_align_axis() // RETURNS: the alignment axis AlignAxis get_align_axis()() { return clutter_align_constraint_get_align_axis(&this); } + // VERSION: 1.4 // Retrieves the factor set using clutter_align_constraint_set_factor() // RETURNS: the alignment factor float get_factor()() { return clutter_align_constraint_get_factor(&this); } + // VERSION: 1.4 // Retrieves the source of the alignment // // of the alignment @@ -2806,12 +2993,14 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { return clutter_align_constraint_get_source(&this); } + // VERSION: 1.4 // Sets the axis to which the alignment refers to // : the axis to which the alignment refers to void set_align_axis()(AlignAxis axis) { clutter_align_constraint_set_align_axis(&this, axis); } + // VERSION: 1.4 // Sets the alignment factor of the constraint // // The factor depends on the #ClutterAlignConstraint:align-axis property @@ -2828,6 +3017,7 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { clutter_align_constraint_set_factor(&this, factor); } + // VERSION: 1.4 // Sets the source of the alignment constraint // : a #ClutterActor, or %NULL to unset the source void set_source()(Actor* source=null) { @@ -2858,6 +3048,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { private AlphaPrivate* priv; + // VERSION: 0.2 // Creates a new #ClutterAlpha instance. You must set a function // to compute the alpha value using clutter_alpha_set_func() and // bind a #ClutterTimeline object to the #ClutterAlpha instance @@ -2870,6 +3061,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { return clutter_alpha_new(); } + // VERSION: 1.0 // Creates a new #ClutterAlpha instance and sets the timeline // and animation mode. // @@ -2881,6 +3073,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { return clutter_alpha_new_full(timeline, mode); } + // VERSION: 1.0 // Creates a new #ClutterAlpha instances and sets the timeline // and the alpha function. // @@ -2896,6 +3089,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { return clutter_alpha_new_with_func(timeline, func, data, destroy); } + // VERSION: 1.0 // #GClosure variant of clutter_alpha_register_func(). // // Registers a global alpha function and returns its logical id @@ -2909,6 +3103,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { } // Unintrospectable function: register_func() / clutter_alpha_register_func() + // VERSION: 1.0 // Registers a global alpha function and returns its logical id // to be used by clutter_alpha_set_mode() or by #ClutterAnimation. // @@ -2920,24 +3115,28 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { return clutter_alpha_register_func(func, data); } + // VERSION: 0.2 // Query the current alpha value. // RETURNS: The current alpha value for the alpha double get_alpha()() { return clutter_alpha_get_alpha(&this); } + // VERSION: 1.0 // Retrieves the #ClutterAnimationMode used by @alpha. // RETURNS: the animation mode c_ulong get_mode()() { return clutter_alpha_get_mode(&this); } + // VERSION: 0.2 // Gets the #ClutterTimeline bound to @alpha. // RETURNS: a #ClutterTimeline instance Timeline* get_timeline()() { return clutter_alpha_get_timeline(&this); } + // VERSION: 0.8 // Sets the #GClosure used to compute the alpha value at each // frame of the #ClutterTimeline bound to @alpha. // : A #GClosure @@ -2945,6 +3144,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { clutter_alpha_set_closure(&this, closure); } + // VERSION: 0.2 // Sets the #ClutterAlphaFunc function used to compute // the alpha value at each frame of the #ClutterTimeline // bound to @alpha. @@ -2957,6 +3157,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { clutter_alpha_set_func(&this, func, data, destroy); } + // VERSION: 1.0 // Sets the progress function of @alpha using the symbolic value // of @mode, as taken by the #ClutterAnimationMode enumeration or // using the value returned by clutter_alpha_register_func(). @@ -2965,6 +3166,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { clutter_alpha_set_mode(&this, mode); } + // VERSION: 0.2 // Binds @alpha to @timeline. // : A #ClutterTimeline void set_timeline()(Timeline* timeline) { @@ -2983,6 +3185,7 @@ struct AlphaClass /* Version 0.2 */ { } +// VERSION: 0.2 // A function returning a value depending on the position of // the #ClutterTimeline bound to @alpha. // RETURNS: a floating point value @@ -3001,6 +3204,8 @@ enum int Amacron = 960; // accessed struct Animatable /* Interface */ /* Version 1.0 */ { mixin template __interface__() { + // VERSION: 1.0 + // DEPRECATED (v1.8) method: animate_property - Use clutter_animatable_interpolate_value() // Calls the animate_property() virtual function for @animatable. // // The @initial_value and @final_value #GValues must contain @@ -3025,6 +3230,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { return clutter_animatable_animate_property(cast(Animatable*)&this, animation, property_name, initial_value, final_value, progress, value); } + // VERSION: 1.4 // Finds the #GParamSpec for @property_name // // or %NULL @@ -3034,6 +3240,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { return clutter_animatable_find_property(cast(Animatable*)&this, property_name); } + // VERSION: 1.4 // Retrieves the current state of @property_name and sets @value with it // : the name of the animatable property to retrieve // : a #GValue initialized to the type of the property to retrieve @@ -3041,6 +3248,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { clutter_animatable_get_initial_state(cast(Animatable*)&this, property_name, value); } + // VERSION: 1.8 // Asks a #ClutterAnimatable implementation to interpolate a // a named property between the initial and final values of // a #ClutterInterval, using @progress as the interpolation @@ -3061,6 +3269,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { return clutter_animatable_interpolate_value(cast(Animatable*)&this, property_name, interval, progress, value); } + // VERSION: 1.4 // Sets the current state of @property_name to @value // : the name of the animatable property to set // : the value of the animatable property to set @@ -3118,6 +3327,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { private AnimationPrivate* priv; + // VERSION: 1.0 // Creates a new #ClutterAnimation instance. You should set the // #GObject to be animated using clutter_animation_set_object(), // set the duration with clutter_animation_set_duration() and the @@ -3138,6 +3348,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_new(); } + // VERSION: 1.0 // Adds a single property with name @property_name to the // animation @animation. For more information about animations, // see clutter_actor_animate(). @@ -3151,6 +3362,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_bind(&this, property_name, final_); } + // VERSION: 1.0 // Binds @interval to the @property_name of the #GObject // attached to @animation. The #ClutterAnimation will take // ownership of the passed #ClutterInterval. For more information @@ -3165,6 +3377,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_bind_interval(&this, property_name, interval); } + // VERSION: 1.0 // Emits the ::completed signal on @animation // // When using this function with a #ClutterAnimation created @@ -3177,18 +3390,21 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_completed(&this); } + // VERSION: 1.0 // Retrieves the #ClutterAlpha used by @animation. // RETURNS: the alpha object used by the animation Alpha* get_alpha()() { return clutter_animation_get_alpha(&this); } + // VERSION: 1.0 // Retrieves the duration of @animation, in milliseconds. // RETURNS: the duration of the animation uint get_duration()() { return clutter_animation_get_duration(&this); } + // VERSION: 1.0 // Retrieves the #ClutterInterval associated to @property_name // inside @animation. // @@ -3200,12 +3416,14 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_get_interval(&this, property_name); } + // VERSION: 1.0 // Retrieves whether @animation is looping. // RETURNS: %TRUE if the animation is looping int get_loop()() { return clutter_animation_get_loop(&this); } + // VERSION: 1.0 // Retrieves the animation mode of @animation, as set by // clutter_animation_set_mode(). // RETURNS: the mode for the animation @@ -3213,18 +3431,21 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_get_mode(&this); } + // VERSION: 1.0 // Retrieves the #GObject attached to @animation. // RETURNS: a #GObject GObject2.Object* get_object()() { return clutter_animation_get_object(&this); } + // VERSION: 1.0 // Retrieves the #ClutterTimeline used by @animation // RETURNS: the timeline used by the animation Timeline* get_timeline()() { return clutter_animation_get_timeline(&this); } + // VERSION: 1.0 // Checks whether @animation is controlling @property_name. // // #ClutterAnimation, %FALSE otherwise @@ -3234,6 +3455,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_has_property(&this, property_name); } + // VERSION: 1.0 // Sets @alpha as the #ClutterAlpha used by @animation. // // If @alpha is not %NULL, the #ClutterAnimation will take ownership @@ -3243,6 +3465,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_set_alpha(&this, alpha); } + // VERSION: 1.0 // Sets the duration of @animation in milliseconds. // // This function will set #ClutterAnimation:alpha and @@ -3252,6 +3475,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_set_duration(&this, msecs); } + // VERSION: 1.0 // Sets whether @animation should loop over itself once finished. // // A looping #ClutterAnimation will not emit the #ClutterAnimation::completed @@ -3264,6 +3488,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_set_loop(&this, loop); } + // VERSION: 1.0 // Sets the animation @mode of @animation. The animation @mode is // a logical id, either coming from the #ClutterAnimationMode enumeration // or the return value of clutter_alpha_register_func(). @@ -3274,6 +3499,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_set_mode(&this, mode); } + // VERSION: 1.0 // Attaches @animation to @object. The #ClutterAnimation will take a // reference on @object. // : a #GObject @@ -3281,18 +3507,21 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_set_object(&this, object); } + // VERSION: 1.0 // Sets the #ClutterTimeline used by @animation. // : a #ClutterTimeline, or %NULL to unset the current #ClutterTimeline void set_timeline()(Timeline* timeline) { clutter_animation_set_timeline(&this, timeline); } + // VERSION: 1.0 // Removes @property_name from the list of animated properties. // : name of the property void unbind_property()(char* property_name) { clutter_animation_unbind_property(&this, property_name); } + // VERSION: 1.0 // Updates the @final value of the interval for @property_name // RETURNS: The animation itself. // : name of the property @@ -3301,6 +3530,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return clutter_animation_update(&this, property_name, final_); } + // VERSION: 1.0 // Changes the @interval for @property_name. The #ClutterAnimation // will take ownership of the passed #ClutterInterval. // : name of the property @@ -3309,6 +3539,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { clutter_animation_update_interval(&this, property_name, interval); } + // VERSION: 1.0 // The ::completed signal is emitted once the animation has // been completed. // @@ -3320,15 +3551,16 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"completed", CB/*:signal_completed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"completed", CB:signal_completed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"completed", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.0 // The ::started signal is emitted once the animation has been // started extern (C) alias static void function (Animation* this_, void* user_data=null) signal_started; - ulong signal_connect(string name:"started", CB/*:signal_started*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"started", CB:signal_started)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"started", cast(GObject2.Callback)cb, data, null, cf); } @@ -3409,12 +3641,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { private AnimatorPrivate* priv; + // VERSION: 1.2 // Creates a new #ClutterAnimator instance // RETURNS: a new #ClutterAnimator. static Animator* /*new*/ new_()() { return clutter_animator_new(); } + // VERSION: 1.2 // Compute the value for a managed property at a given progress. // // If the property is an ease-in property, the current value of the property @@ -3431,12 +3665,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { return clutter_animator_compute_value(&this, object, property_name, progress, value); } + // VERSION: 1.2 // Retrieves the current duration of an animator // RETURNS: the duration of the animation, in milliseconds uint get_duration()() { return clutter_animator_get_duration(&this); } + // VERSION: 1.2 // Returns a list of pointers to opaque structures with accessor functions // that describe the keys added to an animator. // @@ -3451,12 +3687,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { return clutter_animator_get_keys(&this, object, property_name, progress); } + // VERSION: 1.2 // Get the timeline hooked up for driving the #ClutterAnimator // RETURNS: the #ClutterTimeline that drives the animator Timeline* get_timeline()() { return clutter_animator_get_timeline(&this); } + // VERSION: 1.2 // Checks if a property value is to be eased into the animation. // RETURNS: %TRUE if the property is eased in // : a #GObject @@ -3465,6 +3703,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { return clutter_animator_property_get_ease_in(&this, object, property_name); } + // VERSION: 1.2 // Get the interpolation used by animator for a property on a particular // object. // RETURNS: a ClutterInterpolation value. @@ -3474,6 +3713,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { return clutter_animator_property_get_interpolation(&this, object, property_name); } + // VERSION: 1.2 // Sets whether a property value is to be eased into the animation. // : a #GObject // : the name of a property on object @@ -3482,6 +3722,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { clutter_animator_property_set_ease_in(&this, object, property_name, ease_in); } + // VERSION: 1.2 // Set the interpolation method to use, %CLUTTER_INTERPOLATION_LINEAR causes // the values to linearly change between the values, and // %CLUTTER_INTERPOLATION_CUBIC causes the values to smoothly change between @@ -3493,6 +3734,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { clutter_animator_property_set_interpolation(&this, object, property_name, interpolation); } + // VERSION: 1.2 // Removes all keys matching the conditions specificed in the arguments. // : a #GObject to search for, or %NULL for all // : a specific property name to query for, or %NULL for all @@ -3502,6 +3744,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { } // Unintrospectable method: set() / clutter_animator_set() + // VERSION: 1.2 // Adds multiple keys to a #ClutterAnimator, specifying the value a given // property should have at a given progress of the animation. The mode // specified is the mode used when going to this key from the previous key of @@ -3517,6 +3760,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { alias clutter_animator_set set; // Variadic +/ + // VERSION: 1.2 // Runs the timeline of the #ClutterAnimator with a duration in msecs // as specified. // : milliseconds a run of the animator should last. @@ -3524,6 +3768,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { clutter_animator_set_duration(&this, duration); } + // VERSION: 1.2 // Sets a single key in the #ClutterAnimator for the @property_name of // @object at @progress. // @@ -3538,12 +3783,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { return clutter_animator_set_key(&this, object, property_name, mode, progress, value); } + // VERSION: 1.2 // Sets an external timeline that will be used for driving the animation // : a #ClutterTimeline void set_timeline()(Timeline* timeline) { clutter_animator_set_timeline(&this, timeline); } + // VERSION: 1.2 // Start the ClutterAnimator, this is a thin wrapper that rewinds // and starts the animators current timeline. // @@ -3564,6 +3811,7 @@ struct AnimatorClass /* Version 1.2 */ { // A key frame inside a #ClutterAnimator struct AnimatorKey /* Version 1.2 */ { + // VERSION: 1.2 // Retrieves the mode of a #ClutterAnimator key, for the first key of a // property for an object this represents the whether the animation is // open ended and or curved for the remainding keys for the property it @@ -3573,24 +3821,28 @@ struct AnimatorKey /* Version 1.2 */ { return clutter_animator_key_get_mode(&this); } + // VERSION: 1.2 // Retrieves the object a key applies to. // RETURNS: the object an animator_key exist for. GObject2.Object* get_object()() { return clutter_animator_key_get_object(&this); } + // VERSION: 1.2 // Retrieves the progress of an clutter_animator_key // RETURNS: the progress defined for a #ClutterAnimator key. double get_progress()() { return clutter_animator_key_get_progress(&this); } + // VERSION: 1.2 // Retrieves the name of the property a key applies to. // RETURNS: the name of the property an animator_key exist for. char* get_property_name()() { return clutter_animator_key_get_property_name(&this); } + // VERSION: 1.2 // Retrieves the #GType of the property a key applies to // // You can use this type to initialize the #GValue to pass to @@ -3600,6 +3852,7 @@ struct AnimatorKey /* Version 1.2 */ { return clutter_animator_key_get_property_type(&this); } + // VERSION: 1.2 // Retrieves a copy of the value for a #ClutterAnimatorKey. // // The passed in #GValue needs to be already initialized for the value @@ -3835,12 +4088,16 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { GObject2.Object method_parent; + // VERSION: 0.4 + // DEPRECATED (v1.4) method: get_double_click_distance - Use #ClutterSettings:double-click-distance instead // Retrieves the distance used to verify a double click event // RETURNS: a distance, in pixels. uint get_double_click_distance()() { return clutter_backend_get_double_click_distance(&this); } + // VERSION: 0.4 + // DEPRECATED (v1.4) method: get_double_click_time - Use #ClutterSettings:double-click-time instead // Gets the maximum time between two button press events, as set // by clutter_backend_set_double_click_time(). // RETURNS: a time in milliseconds @@ -3848,6 +4105,8 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { return clutter_backend_get_double_click_time(&this); } + // VERSION: 1.0 + // DEPRECATED (v1.4) method: get_font_name - Use #ClutterSettings:font-name instead // Retrieves the default font name as set by // clutter_backend_set_font_name(). // @@ -3857,6 +4116,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { return clutter_backend_get_font_name(&this); } + // VERSION: 0.8 // Retrieves the font options for @backend. // // The returned #cairo_font_options_t is owned by the backend and should @@ -3866,6 +4126,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { return clutter_backend_get_font_options(&this); } + // VERSION: 0.4 // Gets the resolution for font handling on the screen. // // The resolution is a scale factor between points specified in a @@ -3883,12 +4144,16 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { return clutter_backend_get_resolution(&this); } + // VERSION: 0.4 + // DEPRECATED (v1.4) method: set_double_click_distance - Use #ClutterSettings:double-click-distance instead // Sets the maximum distance used to verify a double click event. // : a distance, in pixels void set_double_click_distance()(uint distance) { clutter_backend_set_double_click_distance(&this, distance); } + // VERSION: 0.4 + // DEPRECATED (v1.4) method: set_double_click_time - Use #ClutterSettings:double-click-time instead // Sets the maximum time between two button press events, used to // verify whether it's a double click event or not. // : milliseconds between two button press events @@ -3896,6 +4161,8 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { clutter_backend_set_double_click_time(&this, msec); } + // VERSION: 1.0 + // DEPRECATED (v1.4) method: set_font_name - Use #ClutterSettings:font-name instead // Sets the default font to be used by Clutter. The @font_name string // must either be %NULL, which means that the font name from the // default #ClutterBackend will be used; or be something that can @@ -3905,6 +4172,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { clutter_backend_set_font_name(&this, font_name); } + // VERSION: 0.8 // Sets the new font options for @backend. The #ClutterBackend will // copy the #cairo_font_options_t. // @@ -3919,6 +4187,8 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { clutter_backend_set_font_options(&this, options); } + // VERSION: 0.4 + // DEPRECATED method: set_resolution - Use #ClutterSettings:font-dpi instead // Sets the resolution for font handling on the screen. This is a // scale factor between points specified in a #PangoFontDescription // and cairo units. The default value is 96, meaning that a 10 point @@ -3930,6 +4200,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { clutter_backend_set_resolution(&this, dpi); } + // VERSION: 1.0 // The ::font-changed signal is emitted each time the font options // have been changed through #ClutterSettings. extern (C) alias static void function (Backend* this_, void* user_data=null) signal_font_changed; @@ -3938,23 +4209,25 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"font-changed", CB/*:signal_font_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"font-changed", CB:signal_font_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"font-changed", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.0 // The ::resolution-changed signal is emitted each time the font // resolutions has been changed through #ClutterSettings. extern (C) alias static void function (Backend* this_, void* user_data=null) signal_resolution_changed; - ulong signal_connect(string name:"resolution-changed", CB/*:signal_resolution_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"resolution-changed", CB:signal_resolution_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"resolution-changed", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.4 // The ::settings-changed signal is emitted each time the #ClutterSettings // properties have been changed. extern (C) alias static void function (Backend* this_, void* user_data=null) signal_settings_changed; - ulong signal_connect(string name:"settings-changed", CB/*:signal_settings_changed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"settings-changed", CB:signal_settings_changed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"settings-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -3977,6 +4250,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { private BehaviourPrivate* priv; + // VERSION: 0.2 // Calls @func for every actor driven by @behave. // : a function called for each actor // : optional data to be passed to the function, or %NULL @@ -3984,6 +4258,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { clutter_behaviour_actors_foreach(&this, func, data); } + // VERSION: 0.2 // Applies @behave to @actor. This function adds a reference on // the actor. // : a #ClutterActor @@ -3991,6 +4266,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { clutter_behaviour_apply(&this, actor); } + // VERSION: 0.2 // Retrieves all the actors to which @behave applies. It is not recommended // for derived classes to use this in there alpha notify method but use // #clutter_behaviour_actors_foreach as it avoids alot of needless allocations. @@ -4002,6 +4278,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { return clutter_behaviour_get_actors(&this); } + // VERSION: 0.2 // Retrieves the #ClutterAlpha object bound to @behave. // // object has been bound to this behaviour. @@ -4010,12 +4287,14 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { return clutter_behaviour_get_alpha(&this); } + // VERSION: 0.2 // Gets the number of actors this behaviour is applied too. // RETURNS: The number of applied actors int get_n_actors()() { return clutter_behaviour_get_n_actors(&this); } + // VERSION: 0.2 // Gets an actor the behaviour was applied to referenced by index num. // RETURNS: A Clutter actor or NULL if @index_ is invalid. // : the index of an actor this behaviour is applied too. @@ -4023,6 +4302,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { return clutter_behaviour_get_nth_actor(&this, index_); } + // VERSION: 0.4 // Check if @behave applied to @actor. // RETURNS: TRUE if actor has behaviour. FALSE otherwise. // : a #ClutterActor @@ -4030,17 +4310,21 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { return clutter_behaviour_is_applied(&this, actor); } + // VERSION: 0.2 // Removes @actor from the list of #ClutterActors to which // @behave applies. This function removes a reference on the actor. // : a #ClutterActor void remove()(Actor* actor) { clutter_behaviour_remove(&this, actor); } + + // VERSION: 0.4 // Removes every actor from the list that @behave holds. void remove_all()() { clutter_behaviour_remove_all(&this); } + // VERSION: 0.2 // Binds @alpha to a #ClutterBehaviour. The #ClutterAlpha object // is what makes a behaviour work: for each tick of the timeline // used by #ClutterAlpha a new value of the alpha parameter is @@ -4055,6 +4339,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { clutter_behaviour_set_alpha(&this, alpha); } + // VERSION: 0.4 // The ::apply signal is emitted each time the behaviour is applied // to an actor. // : the actor the behaviour was applied to. @@ -4064,16 +4349,17 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"applied", CB/*:signal_applied*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"applied", CB:signal_applied)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"applied", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.4 // The ::removed signal is emitted each time a behaviour is not applied // to an actor anymore. // : the removed actor extern (C) alias static void function (Behaviour* this_, Actor* actor, void* user_data=null) signal_removed; - ulong signal_connect(string name:"removed", CB/*:signal_removed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"removed", CB:signal_removed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"removed", cast(GObject2.Callback)cb, data, null, cf); } @@ -4108,6 +4394,8 @@ struct BehaviourDepth /* : Behaviour */ /* Version 0.2 */ { private BehaviourDepthPrivate* priv; + // VERSION: 0.4 + // DEPRECATED constructor: new - 1.6 // Creates a new #ClutterBehaviourDepth which can be used to control // the ClutterActor:depth property of a set of #ClutterActors. // @@ -4122,6 +4410,8 @@ struct BehaviourDepth /* : Behaviour */ /* Version 0.2 */ { return clutter_behaviour_depth_new(alpha, depth_start, depth_end); } + // VERSION: 0.6 + // DEPRECATED method: get_bounds - 1.6 // Gets the boundaries of the @behaviour // : return location for the initial depth value, or %NULL // : return location for the final depth value, or %NULL @@ -4129,6 +4419,8 @@ struct BehaviourDepth /* : Behaviour */ /* Version 0.2 */ { clutter_behaviour_depth_get_bounds(&this, depth_start, depth_end); } + // VERSION: 0.6 + // DEPRECATED method: set_bounds - 1.6 // Sets the boundaries of the @behaviour. // : initial value of the depth // : final value of the depth @@ -4157,6 +4449,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { private BehaviourEllipsePrivate* priv; + // VERSION: 0.4 // Creates a behaviour that drives actors along an elliptical path with // given center, width and height; the movement starts at @start // degrees (with 0 corresponding to 12 o'clock) and ends at @end @@ -4180,18 +4473,21 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { return clutter_behaviour_ellipse_new(alpha, x, y, width, height, direction, start, end); } + // VERSION: 0.4 // Gets the at which movements ends. // RETURNS: angle in degrees double get_angle_end()() { return clutter_behaviour_ellipse_get_angle_end(&this); } + // VERSION: 0.6 // Gets the angle at which movements starts. // RETURNS: angle in degrees double get_angle_start()() { return clutter_behaviour_ellipse_get_angle_start(&this); } + // VERSION: 0.4 // Gets the tilt of the ellipse around the center in the given axis. // RETURNS: angle in degrees. // : a #ClutterRotateAxis @@ -4199,6 +4495,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { return clutter_behaviour_ellipse_get_angle_tilt(&this, axis); } + // VERSION: 0.4 // Gets the center of the elliptical path path. // : return location for the X coordinate of the center, or %NULL // : return location for the Y coordinate of the center, or %NULL @@ -4206,18 +4503,21 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_get_center(&this, x, y); } + // VERSION: 0.4 // Retrieves the #ClutterRotateDirection used by the ellipse behaviour. // RETURNS: the rotation direction RotateDirection get_direction()() { return clutter_behaviour_ellipse_get_direction(&this); } + // VERSION: 0.4 // Gets the height of the elliptical path. // RETURNS: the height of the path int get_height()() { return clutter_behaviour_ellipse_get_height(&this); } + // VERSION: 0.4 // Gets the tilt of the ellipse around the center in Y axis. // : return location for tilt angle on the X axis, or %NULL. // : return location for tilt angle on the Y axis, or %NULL. @@ -4226,12 +4526,14 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_get_tilt(&this, angle_tilt_x, angle_tilt_y, angle_tilt_z); } + // VERSION: 0.4 // Gets the width of the elliptical path. // RETURNS: the width of the path int get_width()() { return clutter_behaviour_ellipse_get_width(&this); } + // VERSION: 0.4 // Sets the angle at which movement ends; angles >= 360 degress get clamped // to the canonical interval <0, 360). // : angle at which movement ends in degrees, between 0 and 360. @@ -4239,6 +4541,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_set_angle_end(&this, angle_end); } + // VERSION: 0.6 // Sets the angle at which movement starts; angles >= 360 degress get clamped // to the canonical interval <0, 360). // : angle at which movement starts in degrees, between 0 and 360. @@ -4246,6 +4549,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_set_angle_start(&this, angle_start); } + // VERSION: 0.4 // Sets the angle at which the ellipse should be tilted around it's center. // : a #ClutterRotateAxis // : tilt of the elipse around the center in the given axis in degrees. @@ -4253,6 +4557,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_set_angle_tilt(&this, axis, angle_tilt); } + // VERSION: 0.4 // Sets the center of the elliptical path to the point represented by knot. // : x coordinace of centre // : y coordinace of centre @@ -4260,18 +4565,21 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_set_center(&this, x, y); } + // VERSION: 0.4 // Sets the rotation direction used by the ellipse behaviour. // : the rotation direction void set_direction()(RotateDirection direction) { clutter_behaviour_ellipse_set_direction(&this, direction); } + // VERSION: 0.4 // Sets the height of the elliptical path. // : height of the ellipse void set_height()(int height) { clutter_behaviour_ellipse_set_height(&this, height); } + // VERSION: 0.4 // Sets the angles at which the ellipse should be tilted around it's center. // : tilt of the elipse around the center in X axis in degrees. // : tilt of the elipse around the center in Y axis in degrees. @@ -4280,6 +4588,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_ellipse_set_tilt(&this, angle_tilt_x, angle_tilt_y, angle_tilt_z); } + // VERSION: 0.4 // Sets the width of the elliptical path. // : width of the ellipse void set_width()(int width) { @@ -4296,6 +4605,8 @@ struct BehaviourEllipsePrivate { } +// VERSION: 0.2 +// DEPRECATED callback: BehaviourForeachFunc - 1.6 // This function is passed to clutter_behaviour_actors_foreach() and // will be called for each actor driven by @behaviour. // : the #ClutterBehaviour @@ -4318,6 +4629,8 @@ struct BehaviourOpacity /* : Behaviour */ /* Version 0.2 */ { private BehaviourOpacityPrivate* priv; + // VERSION: 0.2 + // DEPRECATED constructor: new - 1.6 // Creates a new #ClutterBehaviourOpacity object, driven by @alpha // which controls the opacity property of every actor, making it // change in the interval between @opacity_start and @opacity_end. @@ -4333,6 +4646,8 @@ struct BehaviourOpacity /* : Behaviour */ /* Version 0.2 */ { return clutter_behaviour_opacity_new(alpha, opacity_start, opacity_end); } + // VERSION: 0.6 + // DEPRECATED method: get_bounds - 1.6 // Gets the initial and final levels of the opacity applied by @behaviour // on each actor it controls. // : return location for the minimum level of opacity, or %NULL @@ -4341,6 +4656,8 @@ struct BehaviourOpacity /* : Behaviour */ /* Version 0.2 */ { clutter_behaviour_opacity_get_bounds(&this, opacity_start, opacity_end); } + // VERSION: 0.6 + // DEPRECATED method: set_bounds - 1.6 // Sets the initial and final levels of the opacity applied by @behaviour // on each actor it controls. // : minimum level of opacity @@ -4373,6 +4690,8 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { private BehaviourPathPrivate* priv; + // VERSION: 0.2 + // DEPRECATED constructor: new - 1.6 // Creates a new path behaviour. You can use this behaviour to drive // actors along the nodes of a path, described by @path. // @@ -4389,6 +4708,8 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { return clutter_behaviour_path_new(alpha, path); } + // VERSION: 1.0 + // DEPRECATED constructor: new_with_description - 1.6 // Creates a new path behaviour using the path described by @desc. See // clutter_path_add_string() for a description of the format. // @@ -4402,6 +4723,8 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { return clutter_behaviour_path_new_with_description(alpha, desc); } + // VERSION: 1.0 + // DEPRECATED constructor: new_with_knots - 1.6 // Creates a new path behaviour that will make the actors visit all of // the given knots in order with straight lines in between. // @@ -4420,12 +4743,16 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { return clutter_behaviour_path_new_with_knots(alpha, knots, n_knots); } + // VERSION: 1.0 + // DEPRECATED method: get_path - 1.6 // Get the current path of the behaviour // RETURNS: the path Path* get_path()() { return clutter_behaviour_path_get_path(&this); } + // VERSION: 1.0 + // DEPRECATED method: set_path - 1.6 // Change the path that the actors will follow. This will take the // floating reference on the #ClutterPath so you do not need to unref // it. @@ -4434,6 +4761,8 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { clutter_behaviour_path_set_path(&this, path); } + // VERSION: 0.2 + // DEPRECATED glib:signal: knot-reached - 1.6 // This signal is emitted each time a node defined inside the path // is reached. // : the index of the #ClutterKnot reached @@ -4443,7 +4772,7 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"knot-reached", CB/*:signal_knot_reached*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"knot-reached", CB:signal_knot_reached)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"knot-reached", cast(GObject2.Callback)cb, data, null, cf); } @@ -4477,6 +4806,7 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { private BehaviourRotatePrivate* priv; + // VERSION: 0.4 // Creates a new #ClutterBehaviourRotate. This behaviour will rotate actors // bound to it on @axis, following @direction, between @angle_start and // @angle_end. Angles >= 360 degrees will be clamped to the canonical interval @@ -4496,12 +4826,14 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { return clutter_behaviour_rotate_new(alpha, axis, direction, angle_start, angle_end); } + // VERSION: 0.4 // Retrieves the #ClutterRotateAxis used by the rotate behaviour. // RETURNS: the rotation axis RotateAxis get_axis()() { return clutter_behaviour_rotate_get_axis(&this); } + // VERSION: 0.4 // Retrieves the rotation boundaries of the rotate behaviour. // : return value for the initial angle // : return value for the final angle @@ -4509,6 +4841,7 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_rotate_get_bounds(&this, angle_start, angle_end); } + // VERSION: 0.4 // Retrieves the center of rotation set using // clutter_behaviour_rotate_set_center(). // : return location for the X center of rotation @@ -4518,18 +4851,21 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_rotate_get_center(&this, x, y, z); } + // VERSION: 0.4 // Retrieves the #ClutterRotateDirection used by the rotate behaviour. // RETURNS: the rotation direction RotateDirection get_direction()() { return clutter_behaviour_rotate_get_direction(&this); } + // VERSION: 0.4 // Sets the axis used by the rotate behaviour. // : a #ClutterRotateAxis void set_axis()(RotateAxis axis) { clutter_behaviour_rotate_set_axis(&this, axis); } + // VERSION: 0.4 // Sets the initial and final angles of a rotation behaviour; angles >= 360 // degrees get clamped to the canonical interval <0, 360). // : initial angle in degrees, between 0 and 360. @@ -4538,6 +4874,7 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_rotate_set_bounds(&this, angle_start, angle_end); } + // VERSION: 0.4 // Sets the center of rotation. The coordinates are relative to the plane // normal to the rotation axis set with clutter_behaviour_rotate_set_axis(). // : X axis center of rotation @@ -4547,6 +4884,7 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { clutter_behaviour_rotate_set_center(&this, x, y, z); } + // VERSION: 0.4 // Sets the rotation direction used by the rotate behaviour. // : the rotation direction void set_direction()(RotateDirection direction) { @@ -4577,6 +4915,8 @@ struct BehaviourScale /* : Behaviour */ /* Version 0.2 */ { private BehaviourScalePrivate* priv; + // VERSION: 0.2 + // DEPRECATED constructor: new - 1.6 // Creates a new #ClutterBehaviourScale instance. // // If @alpha is not %NULL, the #ClutterBehaviour will take ownership @@ -4592,6 +4932,8 @@ struct BehaviourScale /* : Behaviour */ /* Version 0.2 */ { return clutter_behaviour_scale_new(alpha, x_scale_start, y_scale_start, x_scale_end, y_scale_end); } + // VERSION: 0.4 + // DEPRECATED method: get_bounds - 1.6 // Retrieves the bounds used by scale behaviour. // : return location for the initial scale factor on the X axis, or %NULL // : return location for the initial scale factor on the Y axis, or %NULL @@ -4601,6 +4943,8 @@ struct BehaviourScale /* : Behaviour */ /* Version 0.2 */ { clutter_behaviour_scale_get_bounds(&this, x_scale_start, y_scale_start, x_scale_end, y_scale_end); } + // VERSION: 0.6 + // DEPRECATED method: set_bounds - 1.6 // Sets the bounds used by scale behaviour. // : initial scale factor on the X axis // : initial scale factor on the Y axis @@ -4638,6 +4982,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { private BinLayoutPrivate* priv; + // VERSION: 1.2 // Creates a new #ClutterBinLayout layout manager // RETURNS: the newly created layout manager // : the default alignment policy to be used on the horizontal axis @@ -4646,6 +4991,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { return clutter_bin_layout_new(x_align, y_align); } + // VERSION: 1.2 // Adds a #ClutterActor to the container using @self and // sets the alignment policies for it // @@ -4660,6 +5006,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_bin_layout_add(&this, child, x_align, y_align); } + // VERSION: 1.2 // Retrieves the horizontal and vertical alignment policies for // a child of @self // @@ -4672,6 +5019,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_bin_layout_get_alignment(&this, child, x_align, y_align); } + // VERSION: 1.2 // Sets the horizontal and vertical alignment policies to be applied // to a @child of @self // @@ -4705,6 +5053,7 @@ struct BindConstraint /* : Constraint */ /* Version 1.4 */ { Constraint method_parent; + // VERSION: 1.4 // Creates a new constraint, binding a #ClutterActor's position to // the given @coordinate of the position of @source // RETURNS: the newly created #ClutterBindConstraint @@ -4715,36 +5064,42 @@ struct BindConstraint /* : Constraint */ /* Version 1.4 */ { return clutter_bind_constraint_new(source, coordinate, offset); } + // VERSION: 1.4 // Retrieves the bound coordinate of the constraint // RETURNS: the bound coordinate BindCoordinate get_coordinate()() { return clutter_bind_constraint_get_coordinate(&this); } + // VERSION: 1.4 // Retrieves the offset set using clutter_bind_constraint_set_offset() // RETURNS: the offset, in pixels float get_offset()() { return clutter_bind_constraint_get_offset(&this); } + // VERSION: 1.4 // Retrieves the #ClutterActor set using clutter_bind_constraint_set_source() // RETURNS: a pointer to the source actor Actor* get_source()() { return clutter_bind_constraint_get_source(&this); } + // VERSION: 1.4 // Sets the coordinate to bind in the constraint // : the coordinate to bind void set_coordinate()(BindCoordinate coordinate) { clutter_bind_constraint_set_coordinate(&this, coordinate); } + // VERSION: 1.4 // Sets the offset to be applied to the constraint // : the offset to apply, in pixels void set_offset()(float offset) { clutter_bind_constraint_set_offset(&this, offset); } + // VERSION: 1.4 // Sets the source #ClutterActor for the constraint // : a #ClutterActor, or %NULL to unset the source void set_source()(Actor* source=null) { @@ -4765,6 +5120,7 @@ enum BindCoordinate /* Version 1.4 */ { SIZE = 5 } +// VERSION: 1.0 // The prototype for the callback function registered with // clutter_binding_pool_install_action() and invoked by // clutter_binding_pool_activate(). @@ -4787,6 +5143,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { GObject2.Object method_parent; + // VERSION: 1.0 // Creates a new #ClutterBindingPool that can be used to store // key bindings for an actor. The @name must be a unique identifier // for the binding pool, so that clutter_binding_pool_find() will @@ -4799,6 +5156,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { return clutter_binding_pool_new(name); } + // VERSION: 1.0 // Finds the #ClutterBindingPool with @name. // RETURNS: a pointer to the #ClutterBindingPool, or %NULL // : the name of the binding pool to find @@ -4806,6 +5164,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { return clutter_binding_pool_find(name); } + // VERSION: 1.0 // Retrieves the #ClutterBindingPool for the given #GObject class // and, eventually, creates it. This function is a wrapper around // clutter_binding_pool_new() and uses the class type name as the @@ -4829,6 +5188,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { return clutter_binding_pool_get_for_class(klass); } + // VERSION: 1.0 // Activates the callback associated to the action that is // bound to the @key_val and @modifiers pair. // @@ -4857,12 +5217,14 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { return clutter_binding_pool_activate(&this, key_val, modifiers, gobject); } + // VERSION: 1.0 // Blocks all the actions with name @action_name inside @pool. // : an action name void block_action()(char* action_name) { clutter_binding_pool_block_action(&this, action_name); } + // VERSION: 1.0 // Retrieves the name of the action matching the given key symbol // and modifiers bitmask. // @@ -4875,6 +5237,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { return clutter_binding_pool_find_action(&this, key_val, modifiers); } + // VERSION: 1.0 // Installs a new action inside a #ClutterBindingPool. The action // is bound to @key_val and @modifiers. // @@ -4896,6 +5259,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { clutter_binding_pool_install_action(&this, action_name, key_val, modifiers, callback, data, notify); } + // VERSION: 1.0 // A #GClosure variant of clutter_binding_pool_install_action(). // // Installs a new action inside a #ClutterBindingPool. The action @@ -4917,6 +5281,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { clutter_binding_pool_install_closure(&this, action_name, key_val, modifiers, closure); } + // VERSION: 1.0 // Allows overriding the action for @key_val and @modifiers inside a // #ClutterBindingPool. See clutter_binding_pool_install_action(). // @@ -4934,6 +5299,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { clutter_binding_pool_override_action(&this, key_val, modifiers, callback, data, notify); } + // VERSION: 1.0 // A #GClosure variant of clutter_binding_pool_override_action(). // // Allows overriding the action for @key_val and @modifiers inside a @@ -4951,6 +5317,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { clutter_binding_pool_override_closure(&this, key_val, modifiers, closure); } + // VERSION: 1.0 // Removes the action matching the given @key_val, @modifiers pair, // if any exists. // : a key symbol @@ -4959,6 +5326,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { clutter_binding_pool_remove_action(&this, key_val, modifiers); } + // VERSION: 1.0 // Unblockes all the actions with name @action_name inside @pool. // // Unblocking an action does not cause the callback bound to it to @@ -4985,6 +5353,7 @@ struct BlurEffect /* : OffscreenEffect */ /* Version 1.4 */ { OffscreenEffect method_parent; + // VERSION: 1.4 // Creates a new #ClutterBlurEffect to be used with // clutter_actor_add_effect() // RETURNS: the newly created #ClutterBlurEffect or %NULL @@ -5013,6 +5382,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { private BoxPrivate* priv; + // VERSION: 1.0 // Creates a new #ClutterBox. The children of the box will be layed // out by the passed @manager // RETURNS: the newly created #ClutterBox actor @@ -5021,6 +5391,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { return clutter_box_new(manager); } + // VERSION: 1.2 // Retrieves the background color of @box // // If the #ClutterBox:color-set property is set to %FALSE the @@ -5030,6 +5401,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { clutter_box_get_color(&this, color); } + // VERSION: 1.2 // Retrieves the #ClutterLayoutManager instance used by @box // // #ClutterLayoutManager is owned by the #ClutterBox and it should not @@ -5040,6 +5412,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { } // Unintrospectable method: pack() / clutter_box_pack() + // VERSION: 1.2 // Adds @actor to @box and sets layout properties at the same time, // if the #ClutterLayoutManager used by @box has them // @@ -5055,6 +5428,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { +/ // Unintrospectable method: pack_after() / clutter_box_pack_after() + // VERSION: 1.2 // Adds @actor to @box, placing it after @sibling, and sets layout // properties at the same time, if the #ClutterLayoutManager used by // @box supports them @@ -5072,6 +5446,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { +/ // Unintrospectable method: pack_at() / clutter_box_pack_at() + // VERSION: 1.2 // Adds @actor to @box, placing it at @position, and sets layout // properties at the same time, if the #ClutterLayoutManager used by // @box supports them @@ -5087,6 +5462,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { +/ // Unintrospectable method: pack_before() / clutter_box_pack_before() + // VERSION: 1.2 // Adds @actor to @box, placing it before @sibling, and sets layout // properties at the same time, if the #ClutterLayoutManager used by // @box supports them @@ -5103,6 +5479,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { alias clutter_box_pack_before pack_before; // Variadic +/ + // VERSION: 1.2 // Vector-based variant of clutter_box_pack(), intended for language // bindings to use // : a #ClutterActor @@ -5113,12 +5490,14 @@ struct Box /* : Actor */ /* Version 1.2 */ { clutter_box_packv(&this, actor, n_properties, properties, values); } + // VERSION: 1.2 // Sets (or unsets) the background color for @box // : the background color, or %NULL to unset void set_color()(Color* color=null) { clutter_box_set_color(&this, color); } + // VERSION: 1.2 // Sets the #ClutterLayoutManager for @box // // A #ClutterLayoutManager is a delegate object that controls the @@ -5157,12 +5536,14 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { private BoxLayoutPrivate* priv; + // VERSION: 1.2 // Creates a new #ClutterBoxLayout layout manager // RETURNS: the newly created #ClutterBoxLayout static BoxLayout* new_()() { return clutter_box_layout_new(); } + // VERSION: 1.2 // Retrieves the horizontal and vertical alignment policies for @actor // as set using clutter_box_layout_pack() or clutter_box_layout_set_alignment() // : a #ClutterActor child of @layout @@ -5172,18 +5553,21 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_get_alignment(&this, actor, x_align, y_align); } + // VERSION: 1.2 // Retrieves the duration set using clutter_box_layout_set_easing_duration() // RETURNS: the duration of the animations, in milliseconds uint get_easing_duration()() { return clutter_box_layout_get_easing_duration(&this); } + // VERSION: 1.2 // Retrieves the easing mode set using clutter_box_layout_set_easing_mode() // RETURNS: an easing mode c_ulong get_easing_mode()() { return clutter_box_layout_get_easing_mode(&this); } + // VERSION: 1.2 // Retrieves whether @actor should expand inside @layout // RETURNS: %TRUE if the #ClutterActor should expand, %FALSE otherwise // : a #ClutterActor child of @layout @@ -5191,6 +5575,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { return clutter_box_layout_get_expand(&this, actor); } + // VERSION: 1.2 // Retrieves the horizontal and vertical fill policies for @actor // as set using clutter_box_layout_pack() or clutter_box_layout_set_fill() // : a #ClutterActor child of @layout @@ -5200,6 +5585,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_get_fill(&this, actor, x_fill, y_fill); } + // VERSION: 1.4 // Retrieves if the children sizes are allocated homogeneously. // // homogeneously, and %FALSE otherwise @@ -5208,6 +5594,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { return clutter_box_layout_get_homogeneous(&this); } + // VERSION: 1.2 // Retrieves the value set using clutter_box_layout_set_pack_start() // // at the beginning of the layout, and %FALSE otherwise @@ -5216,12 +5603,14 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { return clutter_box_layout_get_pack_start(&this); } + // VERSION: 1.2 // Retrieves the spacing set using clutter_box_layout_set_spacing() // RETURNS: the spacing between children of the #ClutterBoxLayout uint get_spacing()() { return clutter_box_layout_get_spacing(&this); } + // VERSION: 1.2 // Retrieves whether @layout should animate changes in the layout properties // // Since clutter_box_layout_set_use_animations() @@ -5230,6 +5619,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { return clutter_box_layout_get_use_animations(&this); } + // VERSION: 1.2 // Retrieves the orientation of the @layout as set using the // clutter_box_layout_set_vertical() function // @@ -5239,6 +5629,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { return clutter_box_layout_get_vertical(&this); } + // VERSION: 1.2 // Packs @actor inside the #ClutterContainer associated to @layout // and sets the layout properties // : a #ClutterActor @@ -5251,6 +5642,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_pack(&this, actor, expand, x_fill, y_fill, x_align, y_align); } + // VERSION: 1.2 // Sets the horizontal and vertical alignment policies for @actor // inside @layout // : a #ClutterActor child of @layout @@ -5260,6 +5652,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_alignment(&this, actor, x_align, y_align); } + // VERSION: 1.2 // Sets the duration of the animations used by @layout when animating changes // in the layout properties // @@ -5270,6 +5663,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_easing_duration(&this, msecs); } + // VERSION: 1.2 // Sets the easing mode to be used by @layout when animating changes in layout // properties // @@ -5280,6 +5674,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_easing_mode(&this, mode); } + // VERSION: 1.2 // Sets whether @actor should expand inside @layout // : a #ClutterActor child of @layout // : whether @actor should expand @@ -5287,6 +5682,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_expand(&this, actor, expand); } + // VERSION: 1.2 // Sets the horizontal and vertical fill policies for @actor // inside @layout // : a #ClutterActor child of @layout @@ -5296,6 +5692,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_fill(&this, actor, x_fill, y_fill); } + // VERSION: 1.4 // Sets whether the size of @layout children should be // homogeneous // : %TRUE if the layout should be homogeneous @@ -5303,6 +5700,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_homogeneous(&this, homogeneous); } + // VERSION: 1.2 // Sets whether children of @layout should be layed out by appending // them or by prepending them // : %TRUE if the @layout should pack children at the beginning of the layout @@ -5310,12 +5708,14 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_pack_start(&this, pack_start); } + // VERSION: 1.2 // Sets the spacing between children of @layout // : the spacing between children of the layout, in pixels void set_spacing()(uint spacing) { clutter_box_layout_set_spacing(&this, spacing); } + // VERSION: 1.2 // Sets whether @layout should animate changes in the layout properties // // The duration of the animations is controlled by @@ -5326,6 +5726,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { clutter_box_layout_set_use_animations(&this, animate); } + // VERSION: 1.2 // Sets whether @layout should arrange its children vertically alongside // the Y axis, instead of horizontally alongside the X axis // : %TRUE if the layout should be vertical @@ -5389,6 +5790,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { private CairoTexturePrivate* priv; + // VERSION: 1.0 // Creates a new #ClutterCairoTexture actor, with a surface of @width by // @height pixels. // RETURNS: the newly created #ClutterCairoTexture actor @@ -5398,6 +5800,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { return clutter_cairo_texture_new(width, height); } + // VERSION: 1.0 // Clears @self's internal drawing surface, so that the next upload // will replace the previous contents of the #ClutterCairoTexture // rather than adding to it. @@ -5408,6 +5811,8 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { clutter_cairo_texture_clear(&this); } + // VERSION: 1.0 + // DEPRECATED (v1.8) method: create - Use the #ClutterCairoTexture::draw signal and // Creates a new Cairo context for the @cairo texture. It is // similar to using clutter_cairo_texture_create_region() with @x_offset // and @y_offset of 0, @width equal to the @cairo texture surface width @@ -5427,6 +5832,8 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { return clutter_cairo_texture_create(&this); } + // VERSION: 1.0 + // DEPRECATED (v1.8) method: create_region - Use the #ClutterCairoTexture::draw signal and // Creates a new Cairo context that will updat the region defined // by @x_offset, @y_offset, @width and @height. // @@ -5448,6 +5855,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { return clutter_cairo_texture_create_region(&this, x_offset, y_offset, width, height); } + // VERSION: 1.8 // Retrieves the value set using clutter_cairo_texture_set_auto_resize(). // // allocation, and %FALSE otherwise @@ -5456,6 +5864,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { return clutter_cairo_texture_get_auto_resize(&this); } + // VERSION: 1.0 // Retrieves the surface width and height for @self. // : return location for the surface width, or %NULL // : return location for the surface height, or %NULL @@ -5463,6 +5872,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { clutter_cairo_texture_get_surface_size(&this, width, height); } + // VERSION: 1.8 // Invalidates the whole surface of a #ClutterCairoTexture. // // This function will cause the #ClutterCairoTexture::draw signal @@ -5473,6 +5883,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { clutter_cairo_texture_invalidate(&this); } + // VERSION: 1.8 // Invalidates a rectangular region of a #ClutterCairoTexture. // // The invalidation will cause the #ClutterCairoTexture::draw signal @@ -5484,6 +5895,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { clutter_cairo_texture_invalidate_rectangle(&this, rect); } + // VERSION: 1.8 // Sets whether the #ClutterCairoTexture should ensure that the // backing Cairo surface used matches the allocation assigned to // the actor. If the allocation changes, the contents of the @@ -5493,6 +5905,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { clutter_cairo_texture_set_auto_resize(&this, value); } + // VERSION: 1.0 // Resizes the Cairo surface used by @self to @width and @height. // // This function will not invalidate the contents of the Cairo @@ -5505,6 +5918,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { clutter_cairo_texture_set_surface_size(&this, width, height); } + // VERSION: 1.6 // The ::create-surface signal is emitted when a #ClutterCairoTexture // news its surface (re)created, which happens either when the Cairo // context is created with clutter_cairo_texture_create() or @@ -5523,11 +5937,12 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"create-surface", CB/*:signal_create_surface*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"create-surface", CB:signal_create_surface)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"create-surface", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.8 // The ::draw signal is emitted each time a #ClutterCairoTexture has // been invalidated. // @@ -5543,7 +5958,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // RETURNS: %TRUE if the signal emission should stop, and %FALSE // : the Cairo context to use to draw extern (C) alias static c_int function (CairoTexture* this_, cairo.Context* cr, void* user_data=null) signal_draw; - ulong signal_connect(string name:"draw", CB/*:signal_draw*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"draw", CB:signal_draw)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"draw", cast(GObject2.Callback)cb, data, null, cf); } @@ -5617,12 +6032,14 @@ struct ChildMeta /* : GObject.Object */ /* Version 0.8 */ { Actor* actor; + // VERSION: 0.8 // Retrieves the actor wrapped by @data // RETURNS: a #ClutterActor Actor* get_actor()() { return clutter_child_meta_get_actor(&this); } + // VERSION: 0.8 // Retrieves the container using @data // RETURNS: a #ClutterContainer Container* get_container()() { @@ -5648,18 +6065,21 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { private ClickActionPrivate* priv; + // VERSION: 1.4 // Creates a new #ClutterClickAction instance // RETURNS: the newly created #ClutterClickAction static ClickAction* new_()() { return clutter_click_action_new(); } + // VERSION: 1.4 // Retrieves the button that was pressed. // RETURNS: the button value uint get_button()() { return clutter_click_action_get_button(&this); } + // VERSION: 1.8 // Retrieves the screen coordinates of the button press. // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL @@ -5667,12 +6087,14 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { clutter_click_action_get_coords(&this, press_x, press_y); } + // VERSION: 1.6 // Retrieves the modifier state of the click action. // RETURNS: the modifier state parameter, or 0 ModifierType get_state()() { return clutter_click_action_get_state(&this); } + // VERSION: 1.4 // Emulates a release of the pointer button, which ungrabs the pointer // and unsets the #ClutterClickAction:pressed state. // @@ -5685,6 +6107,7 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { clutter_click_action_release(&this); } + // VERSION: 1.4 // The ::clicked signal is emitted when the #ClutterActor to which // a #ClutterClickAction has been applied should respond to a // pointer button press and release events @@ -5695,11 +6118,12 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"clicked", CB/*:signal_clicked*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"clicked", CB:signal_clicked)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"clicked", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.8 // The ::long-press signal is emitted during the long press gesture // handling. // @@ -5721,7 +6145,7 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // : the #ClutterActor attached to the @action // : the long press state extern (C) alias static c_int function (ClickAction* this_, Actor* actor, LongPressState* state, void* user_data=null) signal_long_press; - ulong signal_connect(string name:"long-press", CB/*:signal_long_press*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"long-press", CB:signal_long_press)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"long-press", cast(GObject2.Callback)cb, data, null, cf); } @@ -5760,6 +6184,7 @@ struct Clone /* : Actor */ /* Version 1.0 */ { private ClonePrivate* priv; + // VERSION: 1.0 // Creates a new #ClutterActor which clones @source/ // RETURNS: the newly created #ClutterClone // : a #ClutterActor, or %NULL @@ -5767,12 +6192,14 @@ struct Clone /* : Actor */ /* Version 1.0 */ { return clutter_clone_new(source); } + // VERSION: 1.0 // Retrieves the source #ClutterActor being cloned by @clone // RETURNS: the actor source for the clone Actor* get_source()() { return clutter_clone_get_source(&this); } + // VERSION: 1.0 // Sets @source as the source actor to be cloned by @clone. // : a #ClutterActor, or %NULL void set_source()(Actor* source) { @@ -5800,6 +6227,7 @@ struct Color { ubyte red, green, blue, alpha; + // VERSION: 0.8.4 // Creates a new #ClutterColor with the given values. // // Use clutter_color_free() when done @@ -5822,6 +6250,7 @@ struct Color { clutter_color_add(&this, b, result); } + // VERSION: 0.2 // Makes a copy of the color structure. The result must be // freed using clutter_color_free(). // RETURNS: an allocated copy of @color. @@ -5835,6 +6264,8 @@ struct Color { void darken()(/*out*/ Color* result) { clutter_color_darken(&this, result); } + + // VERSION: 0.2 // Frees a color structure created with clutter_color_copy(). void free()() { clutter_color_free(&this); @@ -5856,6 +6287,7 @@ struct Color { clutter_color_from_pixel(&this, pixel); } + // VERSION: 1.0 // Parses a string definition of a color, filling the // red, green, // blue and alpha @@ -5913,6 +6345,7 @@ struct Color { return clutter_color_from_string(&this, str); } + // VERSION: 1.6 // Interpolates between @initial and @final #ClutterColors // using @progress // : the final #ClutterColor @@ -5967,6 +6400,7 @@ struct Color { return clutter_color_to_pixel(&this); } + // VERSION: 0.2 // Returns a textual specification of @color in the hexadecimal form // #rrggbbaa, where r, // g, b and a are @@ -5977,6 +6411,7 @@ struct Color { return clutter_color_to_string(&this); } + // VERSION: 0.2 // Compares two #ClutterColors and checks if they are the same. // // This function can be passed to g_hash_table_new() as the @key_equal_func @@ -5988,6 +6423,7 @@ struct Color { return clutter_color_equal(v1, v2); } + // VERSION: 1.6 // Retrieves a static color for the given @color name // // Static colors are created by Clutter and are guaranteed to always be @@ -6000,6 +6436,7 @@ struct Color { return clutter_color_get_static(color); } + // VERSION: 1.0 // Converts a #ClutterColor to a hash value. // // This function can be passed to g_hash_table_new() as the @hash_func @@ -6021,6 +6458,7 @@ struct ColorizeEffect /* : OffscreenEffect */ /* Version 1.4 */ { OffscreenEffect method_parent; + // VERSION: 1.4 // Creates a new #ClutterColorizeEffect to be used with // clutter_actor_add_effect() // RETURNS: the newly created #ClutterColorizeEffect or %NULL @@ -6029,12 +6467,14 @@ struct ColorizeEffect /* : OffscreenEffect */ /* Version 1.4 */ { return clutter_colorize_effect_new(tint); } + // VERSION: 1.4 // Retrieves the tint used by @effect // : return location for the color used void get_tint()(/*out*/ Color* tint) { clutter_colorize_effect_get_tint(&this, tint); } + // VERSION: 1.4 // Sets the tint to be used when colorizing // : the color to be used void set_tint()(Color* tint) { @@ -6077,6 +6517,7 @@ struct ConstraintClass /* Version 1.4 */ { // accessed struct Container /* Interface */ /* Version 0.4 */ { mixin template __interface__() { + // VERSION: 0.8 // Looks up the #GParamSpec for a child property of @klass. // // if no such property exist. @@ -6087,6 +6528,7 @@ struct Container /* Interface */ /* Version 0.4 */ { return clutter_container_class_find_child_property(klass, property_name); } + // VERSION: 0.8 // Returns an array of #GParamSpec for all child properties. // // of #GParamSpecs which should be freed after use. @@ -6098,6 +6540,7 @@ struct Container /* Interface */ /* Version 0.4 */ { } // Unintrospectable method: add() / clutter_container_add() + // VERSION: 0.4 // Adds a list of #ClutterActors to @container. Each time and // actor is added, the "actor-added" signal is emitted. Each actor should // be parented to @container, which takes a reference on the actor. You @@ -6107,6 +6550,7 @@ struct Container /* Interface */ /* Version 0.4 */ { alias clutter_container_add add; // Variadic +/ + // VERSION: 0.4 // Adds a #ClutterActor to @container. This function will emit the // "actor-added" signal. The actor should be parented to // @container. You cannot add a #ClutterActor to more than one @@ -6117,6 +6561,7 @@ struct Container /* Interface */ /* Version 0.4 */ { } // Unintrospectable method: add_valist() / clutter_container_add_valist() + // VERSION: 0.4 // Alternative va_list version of clutter_container_add(). // : the first #ClutterActor to add // : list of actors to add, followed by %NULL @@ -6125,6 +6570,7 @@ struct Container /* Interface */ /* Version 0.4 */ { } // Unintrospectable method: child_get() / clutter_container_child_get() + // VERSION: 0.8 // Gets @container specific properties of an actor. // // In general, a copy is made of the property contents and the caller is @@ -6136,6 +6582,7 @@ struct Container /* Interface */ /* Version 0.4 */ { alias clutter_container_child_get child_get; // Variadic +/ + // VERSION: 0.8 // Gets a container specific property of a child of @container, In general, // a copy is made of the property contents and the caller is responsible for // freeing the memory by calling g_value_unset(). @@ -6150,6 +6597,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_child_get_property(cast(Container*)&this, child, property, value); } + // VERSION: 1.6 // Calls the child_notify() virtual function of // #ClutterContainer. The default implementation will emit the // #ClutterContainer::child-notify signal. @@ -6160,6 +6608,7 @@ struct Container /* Interface */ /* Version 0.4 */ { } // Unintrospectable method: child_set() / clutter_container_child_set() + // VERSION: 0.8 // Sets container specific properties on the child of a container. // : a #ClutterActor that is a child of @container. // : name of the first property to be set. @@ -6167,6 +6616,7 @@ struct Container /* Interface */ /* Version 0.4 */ { alias clutter_container_child_set child_set; // Variadic +/ + // VERSION: 0.8 // Sets a container-specific property on a child of @container. // : a #ClutterActor that is a child of @container. // : the name of the property to set. @@ -6175,6 +6625,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_child_set_property(cast(Container*)&this, child, property, value); } + // VERSION: 1.2 // Creates the #ClutterChildMeta wrapping @actor inside the // @container, if the #ClutterContainerIface::child_meta_type // class member is not set to %G_TYPE_INVALID. @@ -6189,6 +6640,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_create_child_meta(cast(Container*)&this, actor); } + // VERSION: 1.2 // Destroys the #ClutterChildMeta wrapping @actor inside the // @container, if any. // @@ -6202,6 +6654,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_destroy_child_meta(cast(Container*)&this, actor); } + // VERSION: 0.6 // Finds a child actor of a container by its name. Search recurses // into any child container. // @@ -6212,6 +6665,7 @@ struct Container /* Interface */ /* Version 0.4 */ { return clutter_container_find_child_by_name(cast(Container*)&this, child_name); } + // VERSION: 0.4 // Calls @callback for each child of @container that was added // by the application (with clutter_container_add_actor()). Does // not iterate over "internal" children that are part of the @@ -6222,6 +6676,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_foreach(cast(Container*)&this, callback, user_data); } + // VERSION: 1.0 // Calls @callback for each child of @container, including "internal" // children built in to the container itself that were never added // by the application. @@ -6231,6 +6686,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_foreach_with_internals(cast(Container*)&this, callback, user_data); } + // VERSION: 0.8 // Retrieves the #ClutterChildMeta which contains the data about the // @container specific state for @actor. // @@ -6242,6 +6698,7 @@ struct Container /* Interface */ /* Version 0.4 */ { return clutter_container_get_child_meta(cast(Container*)&this, actor); } + // VERSION: 0.4 // Retrieves all the children of @container. // // of #ClutterActors. Use g_list_free() on the returned @@ -6251,6 +6708,7 @@ struct Container /* Interface */ /* Version 0.4 */ { return clutter_container_get_children(cast(Container*)&this); } + // VERSION: 0.6 // Lowers @actor to @sibling level, in the depth ordering. // : the actor to raise // : the sibling to lower to, or %NULL to lower to the bottom @@ -6258,6 +6716,7 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_lower_child(cast(Container*)&this, actor, sibling); } + // VERSION: 0.6 // Raises @actor to @sibling level, in the depth ordering. // : the actor to raise // : the sibling to raise to, or %NULL to raise to the top @@ -6266,6 +6725,7 @@ struct Container /* Interface */ /* Version 0.4 */ { } // Unintrospectable method: remove() / clutter_container_remove() + // VERSION: 0.4 // Removes a %NULL terminated list of #ClutterActors from // @container. Each actor should be unparented, so if you want to keep it // around you must hold a reference to it yourself, using g_object_ref(). @@ -6276,6 +6736,7 @@ struct Container /* Interface */ /* Version 0.4 */ { alias clutter_container_remove remove; // Variadic +/ + // VERSION: 0.4 // Removes @actor from @container. The actor should be unparented, so // if you want to keep it around you must hold a reference to it // yourself, using g_object_ref(). When the actor has been removed, @@ -6286,6 +6747,7 @@ struct Container /* Interface */ /* Version 0.4 */ { } // Unintrospectable method: remove_valist() / clutter_container_remove_valist() + // VERSION: 0.4 // Alternative va_list version of clutter_container_remove(). // : the first #ClutterActor to add // : list of actors to remove, followed by %NULL @@ -6293,12 +6755,14 @@ struct Container /* Interface */ /* Version 0.4 */ { clutter_container_remove_valist(cast(Container*)&this, first_actor, var_args); } + // VERSION: 0.6 // Sorts a container's children using their depth. This function should not // be normally used by applications. void sort_depth_order()() { clutter_container_sort_depth_order(cast(Container*)&this); } + // VERSION: 0.4 // The ::actor-added signal is emitted each time an actor // has been added to @container. // : the new child that has been added to @container @@ -6308,27 +6772,29 @@ struct Container /* Interface */ /* Version 0.4 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"actor-added", CB/*:signal_actor_added*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"actor-added", CB:signal_actor_added)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"actor-added", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.4 // The ::actor-removed signal is emitted each time an actor // is removed from @container. // : the child that has been removed from @container extern (C) alias static void function (Container* this_, Actor* actor, void* user_data=null) signal_actor_removed; - ulong signal_connect(string name:"actor-removed", CB/*:signal_actor_removed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"actor-removed", CB:signal_actor_removed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"actor-removed", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 0.8 // The ::child-notify signal is emitted each time a property is // being set through the clutter_container_child_set() and // clutter_container_child_set_property() calls. // : the child that has had a property set // : the #GParamSpec of the property set extern (C) alias static void function (Container* this_, Actor* actor, GObject2.ParamSpec* pspec, void* user_data=null) signal_child_notify; - ulong signal_connect(string name:"child-notify", CB/*:signal_child_notify*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"child-notify", CB:signal_child_notify)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"child-notify", cast(GObject2.Callback)cb, data, null, cf); } @@ -6518,6 +6984,7 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { private DeformEffectPrivate* priv; + // VERSION: 1.4 // Retrieves the handle to the back face material used by @effect // // The returned material is owned by the #ClutterDeformEffect and it @@ -6527,6 +6994,7 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { return clutter_deform_effect_get_back_material(&this); } + // VERSION: 1.4 // Retrieves the number of horizontal and vertical tiles used to sub-divide // the actor's geometry during the effect // : return location for the number of horizontal tiles, or %NULL @@ -6535,12 +7003,14 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { clutter_deform_effect_get_n_tiles(&this, x_tiles, y_tiles); } + // VERSION: 1.4 // Invalidates the @effect's vertices and, if it is associated // to an actor, it will queue a redraw void invalidate()() { clutter_deform_effect_invalidate(&this); } + // VERSION: 1.4 // Sets the material that should be used when drawing the back face // of the actor during a deformation // @@ -6551,6 +7021,7 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { clutter_deform_effect_set_back_material(&this, material); } + // VERSION: 1.4 // Sets the number of horizontal and vertical tiles to be used // when applying the effect // @@ -6592,6 +7063,7 @@ struct DesaturateEffect /* : OffscreenEffect */ /* Version 1.4 */ { OffscreenEffect method_parent; + // VERSION: 1.4 // Creates a new #ClutterDesaturateEffect to be used with // clutter_actor_add_effect() // RETURNS: the newly created #ClutterDesaturateEffect or %NULL @@ -6600,12 +7072,14 @@ struct DesaturateEffect /* : OffscreenEffect */ /* Version 1.4 */ { return clutter_desaturate_effect_new(factor); } + // VERSION: 1.4 // Retrieves the desaturation factor of @effect // RETURNS: the desaturation factor double get_factor()() { return clutter_desaturate_effect_get_factor(&this); } + // VERSION: 1.4 // Sets the desaturation factor for @effect, with 0.0 being "do not desaturate" // and 1.0 being "fully desaturate" // : the desaturation factor, between 0.0 and 1.0 @@ -6626,6 +7100,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { private DeviceManagerPrivate* priv; + // VERSION: 1.2 // Retrieves the device manager singleton // // The returned instance is owned by Clutter and it should not be @@ -6635,6 +7110,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { return clutter_device_manager_get_default(); } + // VERSION: 1.2 // Retrieves the core #ClutterInputDevice of type @device_type // // Core devices are devices created automatically by the default @@ -6648,6 +7124,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { return clutter_device_manager_get_core_device(&this, device_type); } + // VERSION: 1.2 // Retrieves the #ClutterInputDevice with the given @device_id // // returned device is owned by the #ClutterDeviceManager and should @@ -6658,6 +7135,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { return clutter_device_manager_get_device(&this, device_id); } + // VERSION: 1.2 // Lists all currently registered input devices // // a newly allocated list of #ClutterInputDevice objects. Use @@ -6666,6 +7144,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { return clutter_device_manager_list_devices(&this); } + // VERSION: 1.2 // Lists all currently registered input devices // // a pointer to the internal list of #ClutterInputDevice objects. The @@ -6675,6 +7154,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { return clutter_device_manager_peek_devices(&this); } + // VERSION: 1.2 // The ::device-added signal is emitted each time a device has been // added to the #ClutterDeviceManager // : the newly added #ClutterInputDevice @@ -6684,16 +7164,17 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"device-added", CB/*:signal_device_added*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"device-added", CB:signal_device_added)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"device-added", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.2 // The ::device-removed signal is emitted each time a device has been // removed from the #ClutterDeviceManager // : the removed #ClutterInputDevice extern (C) alias static void function (DeviceManager* this_, InputDevice* device, void* user_data=null) signal_device_removed; - ulong signal_connect(string name:"device-removed", CB/*:signal_device_removed*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"device-removed", CB:signal_device_removed)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"device-removed", cast(GObject2.Callback)cb, data, null, cf); } @@ -6735,18 +7216,21 @@ struct DragAction /* : Action */ /* Version 1.4 */ { private DragActionPrivate* priv; + // VERSION: 1.4 // Creates a new #ClutterDragAction instance // RETURNS: the newly created #ClutterDragAction static DragAction* new_()() { return clutter_drag_action_new(); } + // VERSION: 1.4 // Retrieves the axis constraint set by clutter_drag_action_set_drag_axis() // RETURNS: the axis constraint DragAxis get_drag_axis()() { return clutter_drag_action_get_drag_axis(&this); } + // VERSION: 1.4 // Retrieves the drag handle set by clutter_drag_action_set_drag_handle() // // handle, or %NULL if none was set @@ -6755,6 +7239,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { return clutter_drag_action_get_drag_handle(&this); } + // VERSION: 1.4 // Retrieves the values set by clutter_drag_action_set_drag_threshold(). // // If the #ClutterDragAction:x-drag-threshold property or the @@ -6767,6 +7252,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { clutter_drag_action_get_drag_threshold(&this, x_threshold, y_threshold); } + // VERSION: 1.4 // Retrieves the coordinates, in stage space, of the latest motion // event during the dragging // : return location for the latest motion event's X coordinate @@ -6775,6 +7261,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { clutter_drag_action_get_motion_coords(&this, motion_x, motion_y); } + // VERSION: 1.4 // Retrieves the coordinates, in stage space, of the press event // that started the dragging // : return location for the press event's X coordinate @@ -6783,18 +7270,21 @@ struct DragAction /* : Action */ /* Version 1.4 */ { clutter_drag_action_get_press_coords(&this, press_x, press_y); } + // VERSION: 1.4 // Restricts the dragging action to a specific axis // : the axis to constraint the dragging to void set_drag_axis()(DragAxis axis) { clutter_drag_action_set_drag_axis(&this, axis); } + // VERSION: 1.4 // Sets the actor to be used as the drag handle. // : a #ClutterActor, or %NULL to unset void set_drag_handle()(Actor* handle=null) { clutter_drag_action_set_drag_handle(&this, handle); } + // VERSION: 1.4 // Sets the horizontal and vertical drag thresholds that must be // cleared by the pointer before @action can begin the dragging. // @@ -6807,6 +7297,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { clutter_drag_action_set_drag_threshold(&this, x_threshold, y_threshold); } + // VERSION: 1.4 // The ::drag-begin signal is emitted when the #ClutterDragAction // starts the dragging // @@ -6823,11 +7314,12 @@ struct DragAction /* : Action */ /* Version 1.4 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"drag-begin", CB/*:signal_drag_begin*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"drag-begin", CB:signal_drag_begin)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"drag-begin", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.4 // The ::drag-end signal is emitted at the end of the dragging, // when the pointer button's is released // @@ -6838,11 +7330,12 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // : the Y coordinate (in stage space) of the release event // : the modifiers of the release event extern (C) alias static void function (DragAction* this_, Actor* actor, float event_x, float event_y, ModifierType* modifiers, void* user_data=null) signal_drag_end; - ulong signal_connect(string name:"drag-end", CB/*:signal_drag_end*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"drag-end", CB:signal_drag_end)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"drag-end", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.4 // The ::drag-motion signal is emitted for each motion event after // the #ClutterDragAction::drag-begin signal has been emitted. // @@ -6862,7 +7355,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // : the X component of the distance between the press event that began the dragging and the current position of the pointer, as of the latest motion event // : the Y component of the distance between the press event that began the dragging and the current position of the pointer, as of the latest motion event extern (C) alias static void function (DragAction* this_, Actor* actor, float delta_x, float delta_y, void* user_data=null) signal_drag_motion; - ulong signal_connect(string name:"drag-motion", CB/*:signal_drag_motion*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"drag-motion", CB:signal_drag_motion)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"drag-motion", cast(GObject2.Callback)cb, data, null, cf); } @@ -6905,6 +7398,7 @@ struct DropAction /* : Action */ /* Version 1.8 */ { private DropActionPrivate* priv; + // VERSION: 1.8 // Creates a new #ClutterDropAction. // // Use clutter_actor_add_action() to add the action to a #ClutterActor. @@ -6913,6 +7407,7 @@ struct DropAction /* : Action */ /* Version 1.8 */ { return clutter_drop_action_new(); } + // VERSION: 1.8 // The ::can-drop signal is emitted when the dragged actor is dropped // on @actor. The return value of the ::can-drop signal will determine // whether or not the #ClutterDropAction::drop signal is going to be @@ -6929,34 +7424,37 @@ struct DropAction /* : Action */ /* Version 1.8 */ { return super_.signal_connect!name(cb, data, cf); } - ulong signal_connect(string name:"can-drop", CB/*:signal_can_drop*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"can-drop", CB:signal_can_drop)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"can-drop", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.8 // The ::drop signal is emitted when the dragged actor is dropped // on @actor. This signal is only emitted if at least an handler of // #ClutterDropAction::can-drop returns %TRUE. extern (C) alias static void function (DropAction* this_, Actor* object, float p0, float p1, void* user_data=null) signal_drop; - ulong signal_connect(string name:"drop", CB/*:signal_drop*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"drop", CB:signal_drop)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"drop", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.8 // The ::over-in signal is emitted when the dragged actor crosses // into @actor. // : the #ClutterActor attached to the @action extern (C) alias static void function (DropAction* this_, Actor* actor, void* user_data=null) signal_over_in; - ulong signal_connect(string name:"over-in", CB/*:signal_over_in*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"over-in", CB:signal_over_in)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"over-in", cast(GObject2.Callback)cb, data, null, cf); } + // VERSION: 1.8 // The ::over-out signal is emitted when the dragged actor crosses // outside @actor. // : the #ClutterActor attached to the @action extern (C) alias static void function (DropAction* this_, Actor* actor, void* user_data=null) signal_over_out; - ulong signal_connect(string name:"over-out", CB/*:signal_over_out*/)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { + ulong signal_connect(string name:"over-out", CB:signal_over_out)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { return signal_connect_data!()(&this, cast(char*)"over-out", cast(GObject2.Callback)cb, data, null, cf); } @@ -7010,6 +7508,7 @@ struct Effect /* : ActorMeta */ /* Version 1.4 */ { ActorMeta parent_instance; + // VERSION: 1.8 // Queues a repaint of the effect. The effect can detect when the ‘paint’ // method is called as a result of this function because it will not // have the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY flag set. In that case the @@ -7108,6 +7607,7 @@ union Event /* Version 0.2 */ { clutter_event_free(&this); } + // VERSION: 1.6 // Retrieves the array of axes values attached to the event. // RETURNS: an array of axis values // : return location for the number of axes returned @@ -7115,18 +7615,21 @@ union Event /* Version 0.2 */ { return clutter_event_get_axes(&this, n_axes); } + // VERSION: 1.0 // Retrieves the button number of @event // RETURNS: the button number uint get_button()() { return clutter_event_get_button(&this); } + // VERSION: 1.0 // Retrieves the number of clicks of @event // RETURNS: the click count uint get_click_count()() { return clutter_event_get_click_count(&this); } + // VERSION: 0.4 // Retrieves the coordinates of @event and puts them into @x and @y. // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL @@ -7134,6 +7637,7 @@ union Event /* Version 0.2 */ { clutter_event_get_coords(&this, x, y); } + // VERSION: 1.0 // Retrieves the #ClutterInputDevice for the event. // // The #ClutterInputDevice structure is completely opaque and should @@ -7154,6 +7658,7 @@ union Event /* Version 0.2 */ { return clutter_event_get_device_id(&this); } + // VERSION: 1.0 // Retrieves the type of the device for @event // // any is set @@ -7162,18 +7667,21 @@ union Event /* Version 0.2 */ { return clutter_event_get_device_type(&this); } + // VERSION: 1.0 // Retrieves the #ClutterEventFlags of @event // RETURNS: the event flags EventFlags get_flags()() { return clutter_event_get_flags(&this); } + // VERSION: 1.0 // Retrieves the keycode of the key that caused @event // RETURNS: The keycode representing the key ushort get_key_code()() { return clutter_event_get_key_code(&this); } + // VERSION: 1.0 // Retrieves the key symbol of @event // RETURNS: the key symbol representing the key uint get_key_symbol()() { @@ -7186,18 +7694,21 @@ union Event /* Version 0.2 */ { return clutter_event_get_key_unicode(&this); } + // VERSION: 1.0 // Retrieves the related actor of a crossing event. // RETURNS: the related #ClutterActor, or %NULL Actor* get_related()() { return clutter_event_get_related(&this); } + // VERSION: 1.0 // Retrieves the direction of the scrolling of @event // RETURNS: the scrolling direction ScrollDirection get_scroll_direction()() { return clutter_event_get_scroll_direction(&this); } + // VERSION: 0.6 // Retrieves the source #ClutterActor the event originated from, or // NULL if the event has no source. // RETURNS: a #ClutterActor @@ -7205,6 +7716,7 @@ union Event /* Version 0.2 */ { return clutter_event_get_source(&this); } + // VERSION: 1.6 // Retrieves the hardware device that originated the event. // // If you need the virtual device, use clutter_event_get_device(). @@ -7218,6 +7730,7 @@ union Event /* Version 0.2 */ { return clutter_event_get_source_device(&this); } + // VERSION: 0.8 // Retrieves the source #ClutterStage the event originated for, or // %NULL if the event has no stage. // RETURNS: a #ClutterStage @@ -7225,18 +7738,21 @@ union Event /* Version 0.2 */ { return clutter_event_get_stage(&this); } + // VERSION: 0.4 // Retrieves the modifier state of the event. // RETURNS: the modifier state parameter, or 0 ModifierType get_state()() { return clutter_event_get_state(&this); } + // VERSION: 0.4 // Retrieves the time of the event. // RETURNS: the time of the event, or %CLUTTER_CURRENT_TIME uint get_time()() { return clutter_event_get_time(&this); } + // VERSION: 0.6 // Puts a copy of the event on the back of the event queue. The event will // have the %CLUTTER_EVENT_FLAG_SYNTHETIC flag set. If the source is set // event signals will be emitted for this source and capture/bubbling for @@ -7246,12 +7762,14 @@ union Event /* Version 0.2 */ { clutter_event_put(&this); } + // VERSION: 1.8 // Sets the button number of @event //