From db20783dbed10e6bbbc603129706ffbe8e6f2da9 Mon Sep 17 00:00:00 2001 From: Artur Skawina Date: Sun, 26 Feb 2012 10:14:34 +0100 Subject: [PATCH] Regenerate; adds 'nothrow' and pseudo-constructors. --- gtk2/atk.d | 1401 ++-- gtk2/cairo.d | 4 +- gtk2/cally.d | 76 +- gtk2/clutter.d | 5826 ++++++++-------- gtk2/clutterx11.d | 147 +- gtk2/cogl.d | 2438 +++---- gtk2/coglpango.d | 44 +- gtk2/fontconfig2.d | 4 +- gtk2/freetype2.d | 4 +- gtk2/gdk2.d | 2795 ++++---- gtk2/gdkpixbuf2.d | 405 +- gtk2/gio2.d | 7675 ++++++++++----------- gtk2/gl.d | 4 +- gtk2/glib2.d | 5990 ++++++++--------- gtk2/gmodule2.d | 42 +- gtk2/gobject2.d | 1613 ++--- gtk2/gtk2.d | 18453 +++++++++++++++++++++++++++------------------------ gtk2/json.d | 807 +-- gtk2/mx2.d | 3117 ++++----- gtk2/pango.d | 1393 ++-- gtk2/pangocairo.d | 114 +- gtk2/pangoft2.d | 75 +- 22 files changed, 27179 insertions(+), 25248 deletions(-) diff --git a/gtk2/atk.d b/gtk2/atk.d index fce4a18..1a4666d 100644 --- a/gtk2/atk.d +++ b/gtk2/atk.d @@ -25,7 +25,7 @@ struct Action /* Interface */ { // Perform the specified action on the object. // RETURNS: %TRUE if success, %FALSE otherwise // : the action index corresponding to the action to be performed - int do_action()(int i) { + int do_action()(int i) nothrow { return atk_action_do_action(cast(Action*)&this, i); } @@ -33,7 +33,7 @@ struct Action /* Interface */ { // Returns a description string, or %NULL // if @action does not implement this interface. // : the action index corresponding to the action to be performed - char* get_description()(int i) { + char* get_description()(int i) nothrow { return atk_action_get_description(cast(Action*)&this, i); } @@ -51,7 +51,7 @@ struct Action /* Interface */ { // Returns a string representing the available keybindings, or %NULL // if there is no keybinding for this action. // : the action index corresponding to the action to be performed - char* get_keybinding()(int i) { + char* get_keybinding()(int i) nothrow { return atk_action_get_keybinding(cast(Action*)&this, i); } @@ -59,7 +59,7 @@ struct Action /* Interface */ { // Returns a name string, or %NULL // if @action does not implement this interface. // : the action index corresponding to the action to be performed - char* get_localized_name()(int i) { + char* get_localized_name()(int i) nothrow { return atk_action_get_localized_name(cast(Action*)&this, i); } @@ -68,7 +68,7 @@ struct Action /* Interface */ { // "default" action of the object. // implement this interface. // RETURNS: a the number of actions, or 0 if @action does not - int get_n_actions()() { + int get_n_actions()() nothrow { return atk_action_get_n_actions(cast(Action*)&this); } @@ -87,7 +87,7 @@ struct Action /* Interface */ { // Returns a name string, or %NULL // if @action does not implement this interface. // : the action index corresponding to the action to be performed - char* get_name()(int i) { + char* get_name()(int i) nothrow { return atk_action_get_name(cast(Action*)&this, i); } @@ -95,7 +95,7 @@ struct Action /* Interface */ { // RETURNS: a gboolean representing if the description was successfully set; // : the action index corresponding to the action to be performed // : the description to be assigned to this action - int set_description()(int i, char* desc) { + int set_description()(int i, char* desc) nothrow { return atk_action_set_description(cast(Action*)&this, i, desc); } } @@ -107,22 +107,22 @@ struct ActionIface { // RETURNS: %TRUE if success, %FALSE otherwise // : the action index corresponding to the action to be performed - extern (C) int function (Action* action, int i) do_action; + extern (C) int function (Action* action, int i) nothrow do_action; // RETURNS: a the number of actions, or 0 if @action does not - extern (C) int function (Action* action) get_n_actions; + extern (C) int function (Action* action) nothrow get_n_actions; // : the action index corresponding to the action to be performed - extern (C) char* function (Action* action, int i) get_description; + extern (C) char* function (Action* action, int i) nothrow get_description; // : the action index corresponding to the action to be performed - extern (C) char* function (Action* action, int i) get_name; + extern (C) char* function (Action* action, int i) nothrow get_name; // : the action index corresponding to the action to be performed - extern (C) char* function (Action* action, int i) get_keybinding; + extern (C) char* function (Action* action, int i) nothrow get_keybinding; // RETURNS: a gboolean representing if the description was successfully set; // : the action index corresponding to the action to be performed // : the description to be assigned to this action - extern (C) int function (Action* action, int i, char* desc) set_description; + extern (C) int function (Action* action, int i, char* desc) nothrow set_description; // : the action index corresponding to the action to be performed - extern (C) char* function (Action* action, int i) get_localized_name; + extern (C) char* function (Action* action, int i) nothrow get_localized_name; Function pad2; } @@ -140,7 +140,7 @@ struct Component /* Interface */ { // or zero if the handler was already added. // RETURNS: a handler id which can be used in atk_component_remove_focus_handler // : The #AtkFocusHandler to be attached to @component - uint add_focus_handler()(FocusHandler handler) { + uint add_focus_handler()(FocusHandler handler) nothrow { return atk_component_add_focus_handler(cast(Component*)&this, handler); } @@ -150,7 +150,7 @@ struct Component /* Interface */ { // : x coordinate // : y coordinate // : specifies whether the coordinates are relative to the screen or to the components top level window - int contains()(int x, int y, CoordType coord_type) { + int contains()(int x, int y, CoordType coord_type) nothrow { return atk_component_contains(cast(Component*)&this, x, y, coord_type); } @@ -158,7 +158,7 @@ struct Component /* Interface */ { // Returns the alpha value (i.e. the opacity) for this // (fully opaque). // RETURNS: An alpha value from 0 to 1.0, inclusive. - double get_alpha()() { + double get_alpha()() nothrow { return atk_component_get_alpha(cast(Component*)&this); } @@ -168,13 +168,13 @@ struct Component /* Interface */ { // : address of #gint to put width // : address of #gint to put height // : specifies whether the coordinates are relative to the screen or to the components top level window - void get_extents()(int* x, int* y, int* width, int* height, CoordType coord_type) { + void get_extents()(int* x, int* y, int* width, int* height, CoordType coord_type) nothrow { atk_component_get_extents(cast(Component*)&this, x, y, width, height, coord_type); } // Gets the layer of the component. // RETURNS: an #AtkLayer which is the layer of the component - Layer get_layer()() { + Layer get_layer()() nothrow { return atk_component_get_layer(cast(Component*)&this); } @@ -183,7 +183,7 @@ struct Component /* Interface */ { // which the component is shown in relation to other components in the same // container. // RETURNS: a gint which is the zorder of the component, i.e. the depth at - int get_mdi_zorder()() { + int get_mdi_zorder()() nothrow { return atk_component_get_mdi_zorder(cast(Component*)&this); } @@ -192,20 +192,20 @@ struct Component /* Interface */ { // : address of #gint to put x coordinate position // : address of #gint to put y coordinate position // : specifies whether the coordinates are relative to the screen or to the components top level window - void get_position()(int* x, int* y, CoordType coord_type) { + void get_position()(int* x, int* y, CoordType coord_type) nothrow { atk_component_get_position(cast(Component*)&this, x, y, coord_type); } // Gets the size of the @component in terms of width and height. // : address of #gint to put width of @component // : address of #gint to put height of @component - void get_size()(int* width, int* height) { + void get_size()(int* width, int* height) nothrow { atk_component_get_size(cast(Component*)&this, width, height); } // Grabs focus for this @component. // RETURNS: %TRUE if successful, %FALSE otherwise. - int grab_focus()() { + int grab_focus()() nothrow { return atk_component_grab_focus(cast(Component*)&this); } @@ -215,7 +215,7 @@ struct Component /* Interface */ { // : x coordinate // : y coordinate // : specifies whether the coordinates are relative to the screen or to the components top level window - Object* /*new*/ ref_accessible_at_point()(int x, int y, CoordType coord_type) { + Object* /*new*/ ref_accessible_at_point()(int x, int y, CoordType coord_type) nothrow { return atk_component_ref_accessible_at_point(cast(Component*)&this, x, y, coord_type); } @@ -223,7 +223,7 @@ struct Component /* Interface */ { // functions to be executed when this object receives focus events // (in or out). // : the handler id of the focus handler to be removed from @component - void remove_focus_handler()(uint handler_id) { + void remove_focus_handler()(uint handler_id) nothrow { atk_component_remove_focus_handler(cast(Component*)&this, handler_id); } @@ -234,7 +234,7 @@ struct Component /* Interface */ { // : width to set for @component // : height to set for @component // : specifies whether the coordinates are relative to the screen or to the components top level window - int set_extents()(int x, int y, int width, int height, CoordType coord_type) { + int set_extents()(int x, int y, int width, int height, CoordType coord_type) nothrow { return atk_component_set_extents(cast(Component*)&this, x, y, width, height, coord_type); } @@ -243,7 +243,7 @@ struct Component /* Interface */ { // : x coordinate // : y coordinate // : specifies whether the coordinates are relative to the screen or to the components top level window - int set_position()(int x, int y, CoordType coord_type) { + int set_position()(int x, int y, CoordType coord_type) nothrow { return atk_component_set_position(cast(Component*)&this, x, y, coord_type); } @@ -251,16 +251,18 @@ struct Component /* Interface */ { // RETURNS: %TRUE or %FALSE whether the size was set or not // : width to set for @component // : height to set for @component - int set_size()(int width, int height) { + int set_size()(int width, int height) nothrow { return atk_component_set_size(cast(Component*)&this, width, height); } - extern (C) alias static void function (Component* this_, Rectangle* object, void* user_data=null) signal_bounds_changed; + extern (C) alias static void function (Component* this_, Rectangle* object, void* user_data=null) nothrow signal_bounds_changed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_bounds_changed)||_ttmm!(CB, signal_bounds_changed)()) { return signal_connect_data!()(&this, cast(char*)"bounds-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -275,39 +277,39 @@ struct ComponentIface { // // RETURNS: a handler id which can be used in atk_component_remove_focus_handler // : The #AtkFocusHandler to be attached to @component - extern (C) uint function (Component* component, FocusHandler handler) add_focus_handler; + extern (C) uint function (Component* component, FocusHandler handler) nothrow add_focus_handler; // RETURNS: %TRUE or %FALSE indicating whether the specified point is within // : x coordinate // : y coordinate // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) int function (Component* component, int x, int y, CoordType coord_type) contains; + extern (C) int function (Component* component, int x, int y, CoordType coord_type) nothrow contains; // RETURNS: a reference to the accessible child, if one exists // : x coordinate // : y coordinate // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) Object* /*new*/ function (Component* component, int x, int y, CoordType coord_type) ref_accessible_at_point; + extern (C) Object* /*new*/ function (Component* component, int x, int y, CoordType coord_type) nothrow ref_accessible_at_point; // : address of #gint to put x coordinate // : address of #gint to put y coordinate // : address of #gint to put width // : address of #gint to put height // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) void function (Component* component, int* x, int* y, int* width, int* height, CoordType coord_type) get_extents; + extern (C) void function (Component* component, int* x, int* y, int* width, int* height, CoordType coord_type) nothrow get_extents; // : address of #gint to put x coordinate position // : address of #gint to put y coordinate position // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) void function (Component* component, int* x, int* y, CoordType coord_type) get_position; + extern (C) void function (Component* component, int* x, int* y, CoordType coord_type) nothrow get_position; // : address of #gint to put width of @component // : address of #gint to put height of @component - extern (C) void function (Component* component, int* width, int* height) get_size; + extern (C) void function (Component* component, int* width, int* height) nothrow get_size; // RETURNS: %TRUE if successful, %FALSE otherwise. - extern (C) int function (Component* component) grab_focus; + extern (C) int function (Component* component) nothrow grab_focus; // : the handler id of the focus handler to be removed from @component - extern (C) void function (Component* component, uint handler_id) remove_focus_handler; + extern (C) void function (Component* component, uint handler_id) nothrow remove_focus_handler; // RETURNS: %TRUE or %FALSE whether the extents were set or not // : x coordinate @@ -315,25 +317,25 @@ struct ComponentIface { // : width to set for @component // : height to set for @component // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) int function (Component* component, int x, int y, int width, int height, CoordType coord_type) set_extents; + extern (C) int function (Component* component, int x, int y, int width, int height, CoordType coord_type) nothrow set_extents; // RETURNS: %TRUE or %FALSE whether or not the position was set or not // : x coordinate // : y coordinate // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) int function (Component* component, int x, int y, CoordType coord_type) set_position; + extern (C) int function (Component* component, int x, int y, CoordType coord_type) nothrow set_position; // RETURNS: %TRUE or %FALSE whether the size was set or not // : width to set for @component // : height to set for @component - extern (C) int function (Component* component, int width, int height) set_size; + extern (C) int function (Component* component, int width, int height) nothrow set_size; // RETURNS: an #AtkLayer which is the layer of the component - extern (C) Layer function (Component* component) get_layer; + extern (C) Layer function (Component* component) nothrow get_layer; // RETURNS: a gint which is the zorder of the component, i.e. the depth at - extern (C) int function (Component* component) get_mdi_zorder; - extern (C) void function (Component* component, Rectangle* bounds) bounds_changed; + extern (C) int function (Component* component) nothrow get_mdi_zorder; + extern (C) void function (Component* component, Rectangle* bounds) nothrow bounds_changed; // RETURNS: An alpha value from 0 to 1.0, inclusive. - extern (C) double function (Component* component) get_alpha; + extern (C) double function (Component* component) nothrow get_alpha; } enum CoordType { @@ -347,7 +349,7 @@ struct Document /* Interface */ { // for this document. // RETURNS: a string value associated with the named attribute for this // : a character string representing the name of the attribute whose value is being queried. - char* get_attribute_value()(char* attribute_name) { + char* get_attribute_value()(char* attribute_name) nothrow { return atk_document_get_attribute_value(cast(Document*)&this, attribute_name); } @@ -357,7 +359,7 @@ struct Document /* Interface */ { // set name-value-pair attributes associated with this document // as a whole. // RETURNS: An AtkAttributeSet containing the explicitly - AttributeSet* get_attributes()() { + AttributeSet* get_attributes()() nothrow { return atk_document_get_attributes(cast(Document*)&this); } @@ -365,13 +367,13 @@ struct Document /* Interface */ { // up to the caller to check atk_document_get_type to determine // how to cast this pointer. // RETURNS: a %gpointer that points to an instance of the DOM. - void* get_document()() { + void* get_document()() nothrow { return atk_document_get_document(cast(Document*)&this); } // Gets a string indicating the document type. // RETURNS: a string indicating the document type - char* get_document_type()() { + char* get_document_type()() nothrow { return atk_document_get_document_type(cast(Document*)&this); } @@ -383,7 +385,7 @@ struct Document /* Interface */ { // locale of the document content as a whole, or NULL if // the document content does not specify a locale. // RETURNS: a UTF-8 string indicating the POSIX-style LC_MESSAGES - char* get_locale()() { + char* get_locale()() nothrow { return atk_document_get_locale(cast(Document*)&this); } @@ -393,26 +395,32 @@ struct Document /* Interface */ { // RETURNS: TRUE if #value is successfully associated with #attribute_name // : a character string representing the name of the attribute whose value is being set. // : a string value to be associated with #attribute_name. - int set_attribute_value()(char* attribute_name, char* attribute_value) { + int set_attribute_value()(char* attribute_name, char* attribute_value) nothrow { return atk_document_set_attribute_value(cast(Document*)&this, attribute_name, attribute_value); } - extern (C) alias static void function (Document* this_, void* user_data=null) signal_load_complete; + extern (C) alias static void function (Document* this_, void* user_data=null) nothrow signal_load_complete; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_load_complete)||_ttmm!(CB, signal_load_complete)()) { 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) { + extern (C) alias static void function (Document* this_, void* user_data=null) nothrow signal_load_stopped; + ulong signal_connect(string name:"load-stopped", CB:signal_load_stopped) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_load_stopped)||_ttmm!(CB, signal_load_stopped)()) { 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) { + extern (C) alias static void function (Document* this_, void* user_data=null) nothrow signal_reload; + ulong signal_connect(string name:"reload", CB:signal_reload) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_reload)||_ttmm!(CB, signal_reload)()) { return signal_connect_data!()(&this, cast(char*)"reload", cast(GObject2.Callback)cb, data, null, cf); } @@ -423,14 +431,14 @@ struct Document /* Interface */ { struct DocumentIface { GObject2.TypeInterface parent; // RETURNS: a string indicating the document type - extern (C) char* function (Document* document) get_document_type; + extern (C) char* function (Document* document) nothrow get_document_type; // RETURNS: a %gpointer that points to an instance of the DOM. - extern (C) void* function (Document* document) get_document; - extern (C) char* function (Document* document) get_document_locale; + extern (C) void* function (Document* document) nothrow get_document; + extern (C) char* function (Document* document) nothrow get_document_locale; // Unintrospectable functionp: get_document_attributes() / () - extern (C) AttributeSet* function (Document* document) get_document_attributes; - extern (C) char* function (Document* document, char* attribute_name) get_document_attribute_value; - extern (C) int function (Document* document, char* attribute_name, char* attribute_value) set_document_attribute; + extern (C) AttributeSet* function (Document* document) nothrow get_document_attributes; + extern (C) char* function (Document* document, char* attribute_name) nothrow get_document_attribute_value; + extern (C) int function (Document* document, char* attribute_name, char* attribute_value) nothrow set_document_attribute; Function pad1, pad2, pad3, pad4; } @@ -440,7 +448,7 @@ struct EditableText /* Interface */ { // to the clipboard. // : start position // : end position - void copy_text()(int start_pos, int end_pos) { + void copy_text()(int start_pos, int end_pos) nothrow { atk_editable_text_copy_text(cast(EditableText*)&this, start_pos, end_pos); } @@ -448,14 +456,14 @@ struct EditableText /* Interface */ { // to the clipboard and then delete from the widget. // : start position // : end position - void cut_text()(int start_pos, int end_pos) { + void cut_text()(int start_pos, int end_pos) nothrow { atk_editable_text_cut_text(cast(EditableText*)&this, start_pos, end_pos); } // Delete text @start_pos up to, but not including @end_pos. // : start position // : end position - void delete_text()(int start_pos, int end_pos) { + void delete_text()(int start_pos, int end_pos) nothrow { atk_editable_text_delete_text(cast(EditableText*)&this, start_pos, end_pos); } @@ -463,22 +471,22 @@ struct EditableText /* Interface */ { // : the text to insert // : the length of text to insert, in bytes // : The caller initializes this to the position at which to insert the text. After the call it points at the position after the newly inserted text. - void insert_text()(char* string_, int length, int* position) { + void insert_text()(char* string_, int length, int* position) nothrow { atk_editable_text_insert_text(cast(EditableText*)&this, string_, length, position); } // Paste text from clipboard to specified @position. // : position to paste - void paste_text()(int position) { + void paste_text()(int position) nothrow { atk_editable_text_paste_text(cast(EditableText*)&this, position); } - int set_run_attributes()(AttributeSet* attrib_set, int start_offset, int end_offset) { + int set_run_attributes()(AttributeSet* attrib_set, int start_offset, int end_offset) nothrow { return atk_editable_text_set_run_attributes(cast(EditableText*)&this, attrib_set, start_offset, end_offset); } // Set text contents of @text. // : string to set for text contents of @text - void set_text_contents()(char* string_) { + void set_text_contents()(char* string_) nothrow { atk_editable_text_set_text_contents(cast(EditableText*)&this, string_); } } @@ -487,28 +495,28 @@ struct EditableText /* Interface */ { struct EditableTextIface { GObject2.TypeInterface parent_interface; - extern (C) int function (EditableText* text, AttributeSet* attrib_set, int start_offset, int end_offset) set_run_attributes; + extern (C) int function (EditableText* text, AttributeSet* attrib_set, int start_offset, int end_offset) nothrow set_run_attributes; // : string to set for text contents of @text - extern (C) void function (EditableText* text, char* string_) set_text_contents; + extern (C) void function (EditableText* text, char* string_) nothrow set_text_contents; // : the text to insert // : the length of text to insert, in bytes // : The caller initializes this to the position at which to insert the text. After the call it points at the position after the newly inserted text. - extern (C) void function (EditableText* text, char* string_, int length, int* position) insert_text; + extern (C) void function (EditableText* text, char* string_, int length, int* position) nothrow insert_text; // : start position // : end position - extern (C) void function (EditableText* text, int start_pos, int end_pos) copy_text; + extern (C) void function (EditableText* text, int start_pos, int end_pos) nothrow copy_text; // : start position // : end position - extern (C) void function (EditableText* text, int start_pos, int end_pos) cut_text; + extern (C) void function (EditableText* text, int start_pos, int end_pos) nothrow cut_text; // : start position // : end position - extern (C) void function (EditableText* text, int start_pos, int end_pos) delete_text; + extern (C) void function (EditableText* text, int start_pos, int end_pos) nothrow delete_text; // : position to paste - extern (C) void function (EditableText* text, int position) paste_text; + extern (C) void function (EditableText* text, int position) nothrow paste_text; Function pad1, pad2; } @@ -520,18 +528,18 @@ struct EditableTextIface { // attach signal handlers for the various ATK signals instead. // see atk_add_focus_tracker. // : An #AtkObject instance for whom the callback will be called when the specified event (e.g. 'focus:') takes place. -extern (C) alias void function (Object* obj) EventListener; +extern (C) alias void function (Object* obj) nothrow EventListener; // An #AtkEventListenerInit function is a special function that is // called in order to initialize the per-object event registration system // used by #AtkEventListener, if any preparation is required. // see atk_focus_tracker_init. -extern (C) alias void function () EventListenerInit; +extern (C) alias void function () nothrow EventListenerInit; -extern (C) alias void function (Object* arg_a, int arg_b) FocusHandler; +extern (C) alias void function (Object* arg_a, int arg_b) nothrow FocusHandler; -extern (C) alias int function (void* data) Function; +extern (C) alias int function (void* data) nothrow Function; struct GObjectAccessible /* : Object */ { alias parent this; @@ -544,14 +552,14 @@ struct GObjectAccessible /* : Object */ { // the @obj // RETURNS: a #AtkObject which is the accessible object for // : a #GObject - static Object* for_object()(GObject2.Object* obj) { + static Object* for_object()(GObject2.Object* obj) nothrow { return atk_gobject_accessible_for_object(obj); } // Gets the GObject for which @obj is the accessible object. // the accessible object // RETURNS: a #GObject which is the object for which @obj is - GObject2.Object* get_object()() { + GObject2.Object* get_object()() nothrow { return atk_gobject_accessible_get_object(&this); } } @@ -571,13 +579,13 @@ struct Hyperlink /* : GObject.Object */ { // Gets the index with the hypertext document at which this link ends. // RETURNS: the index with the hypertext document at which this link ends - int get_end_index()() { + int get_end_index()() nothrow { return atk_hyperlink_get_end_index(&this); } // Gets the number of anchors associated with this hyperlink. // RETURNS: the number of anchors associated with this hyperlink - int get_n_anchors()() { + int get_n_anchors()() nothrow { return atk_hyperlink_get_n_anchors(&this); } @@ -589,13 +597,13 @@ struct Hyperlink /* : GObject.Object */ { // i-th anchor // RETURNS: an #AtkObject associated with this hyperlinks // : a (zero-index) integer specifying the desired anchor - Object* get_object()(int i) { + Object* get_object()(int i) nothrow { return atk_hyperlink_get_object(&this, i); } // Gets the index with the hypertext document at which this link begins. // RETURNS: the index with the hypertext document at which this link begins - int get_start_index()() { + int get_start_index()() nothrow { return atk_hyperlink_get_start_index(&this); } @@ -604,7 +612,7 @@ struct Hyperlink /* : GObject.Object */ { // Multiple anchors are primarily used by client-side image maps. // RETURNS: a string specifying the URI // : a (zero-index) integer specifying the desired anchor - char* /*new*/ get_uri()(int i) { + char* /*new*/ get_uri()(int i) nothrow { return atk_hyperlink_get_uri(&this, i); } @@ -613,7 +621,7 @@ struct Hyperlink /* : GObject.Object */ { // %FALSE, but an inline <src> HTML element will return // %TRUE. // RETURNS: whether or not this link displays its content inline. - int is_inline()() { + int is_inline()() nothrow { return atk_hyperlink_is_inline(&this); } @@ -621,16 +629,18 @@ struct Hyperlink /* : GObject.Object */ { // this method returns %TRUE if the link is still valid (with // respect to the document it references) and %FALSE otherwise. // RETURNS: whether or not this link is still valid - int is_valid()() { + int is_valid()() nothrow { return atk_hyperlink_is_valid(&this); } - extern (C) alias static void function (Hyperlink* this_, void* user_data=null) signal_link_activated; + extern (C) alias static void function (Hyperlink* this_, void* user_data=null) nothrow signal_link_activated; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_link_activated)||_ttmm!(CB, signal_link_activated)()) { return signal_connect_data!()(&this, cast(char*)"link-activated", cast(GObject2.Callback)cb, data, null, cf); } @@ -641,22 +651,22 @@ struct HyperlinkClass { // RETURNS: a string specifying the URI // : a (zero-index) integer specifying the desired anchor - extern (C) char* /*new*/ function (Hyperlink* link_, int i) get_uri; + extern (C) char* /*new*/ function (Hyperlink* link_, int i) nothrow get_uri; // RETURNS: an #AtkObject associated with this hyperlinks // : a (zero-index) integer specifying the desired anchor - extern (C) Object* function (Hyperlink* link_, int i) get_object; + extern (C) Object* function (Hyperlink* link_, int i) nothrow get_object; // RETURNS: the index with the hypertext document at which this link ends - extern (C) int function (Hyperlink* link_) get_end_index; + extern (C) int function (Hyperlink* link_) nothrow get_end_index; // RETURNS: the index with the hypertext document at which this link begins - extern (C) int function (Hyperlink* link_) get_start_index; + extern (C) int function (Hyperlink* link_) nothrow get_start_index; // RETURNS: whether or not this link is still valid - extern (C) int function (Hyperlink* link_) is_valid; + extern (C) int function (Hyperlink* link_) nothrow is_valid; // RETURNS: the number of anchors associated with this hyperlink - extern (C) int function (Hyperlink* link_) get_n_anchors; - extern (C) uint function (Hyperlink* link_) link_state; - extern (C) int function (Hyperlink* link_) is_selected_link; - extern (C) void function (Hyperlink* link_) link_activated; + extern (C) int function (Hyperlink* link_) nothrow get_n_anchors; + extern (C) uint function (Hyperlink* link_) nothrow link_state; + extern (C) int function (Hyperlink* link_) nothrow is_selected_link; + extern (C) void function (Hyperlink* link_) nothrow link_activated; Function pad1; } @@ -666,7 +676,7 @@ struct HyperlinkImpl /* Interface */ { // Gets the hyperlink associated with this object. // implementing AtkObject. // RETURNS: an AtkHyperlink object which points to this - Hyperlink* /*new*/ get_hyperlink()() { + Hyperlink* /*new*/ get_hyperlink()() nothrow { return atk_hyperlink_impl_get_hyperlink(cast(HyperlinkImpl*)&this); } } @@ -676,7 +686,7 @@ struct HyperlinkImpl /* Interface */ { struct HyperlinkImplIface { GObject2.TypeInterface parent; // RETURNS: an AtkHyperlink object which points to this - extern (C) Hyperlink* /*new*/ function (HyperlinkImpl* impl) get_hyperlink; + extern (C) Hyperlink* /*new*/ function (HyperlinkImpl* impl) nothrow get_hyperlink; Function pad1; } @@ -689,7 +699,7 @@ struct Hypertext /* Interface */ { // index @link_index // RETURNS: the link in this hypertext document at // : an integer specifying the desired link - Hyperlink* get_link()(int link_index) { + Hyperlink* get_link()(int link_index) nothrow { return atk_hypertext_get_link(cast(Hypertext*)&this, link_index); } @@ -698,22 +708,24 @@ struct Hypertext /* Interface */ { // or -1 if there is no hyperlink associated with this character. // RETURNS: an index into the array of hyperlinks in @hypertext, // : a character index - int get_link_index()(int char_index) { + int get_link_index()(int char_index) nothrow { return atk_hypertext_get_link_index(cast(Hypertext*)&this, char_index); } // Gets the number of links within this hypertext document. // RETURNS: the number of links within this hypertext document - int get_n_links()() { + int get_n_links()() nothrow { return atk_hypertext_get_n_links(cast(Hypertext*)&this); } - extern (C) alias static void function (Hypertext* this_, int object, void* user_data=null) signal_link_selected; + extern (C) alias static void function (Hypertext* this_, int object, void* user_data=null) nothrow signal_link_selected; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_link_selected)||_ttmm!(CB, signal_link_selected)()) { return signal_connect_data!()(&this, cast(char*)"link-selected", cast(GObject2.Callback)cb, data, null, cf); } @@ -726,14 +738,14 @@ struct HypertextIface { // RETURNS: the link in this hypertext document at // : an integer specifying the desired link - extern (C) Hyperlink* function (Hypertext* hypertext, int link_index) get_link; + extern (C) Hyperlink* function (Hypertext* hypertext, int link_index) nothrow get_link; // RETURNS: the number of links within this hypertext document - extern (C) int function (Hypertext* hypertext) get_n_links; + extern (C) int function (Hypertext* hypertext) nothrow get_n_links; // RETURNS: an index into the array of hyperlinks in @hypertext, // : a character index - extern (C) int function (Hypertext* hypertext, int char_index) get_link_index; - extern (C) void function (Hypertext* hypertext, int link_index) link_selected; + extern (C) int function (Hypertext* hypertext, int char_index) nothrow get_link_index; + extern (C) void function (Hypertext* hypertext, int link_index) nothrow link_selected; Function pad1, pad2, pad3; } @@ -741,13 +753,13 @@ struct Image /* Interface */ { mixin template __interface__() { // Get a textual description of this image. // RETURNS: a string representing the image description - char* get_image_description()() { + char* get_image_description()() nothrow { return atk_image_get_image_description(cast(Image*)&this); } // Since ATK 1.12 // Returns a string corresponding to the POSIX LC_MESSAGES locale used by the image description, or NULL if the image does not specify a locale. - char* get_image_locale()() { + char* get_image_locale()() nothrow { return atk_image_get_image_locale(cast(Image*)&this); } @@ -756,7 +768,7 @@ struct Image /* Interface */ { // : address of #gint to put x coordinate position; otherwise, -1 if value cannot be obtained. // : address of #gint to put y coordinate position; otherwise, -1 if value cannot be obtained. // : specifies whether the coordinates are relative to the screen or to the components top level window - void get_image_position()(int* x, int* y, CoordType coord_type) { + void get_image_position()(int* x, int* y, CoordType coord_type) nothrow { atk_image_get_image_position(cast(Image*)&this, x, y, coord_type); } @@ -765,7 +777,7 @@ struct Image /* Interface */ { // values cannot be obtained (for instance, if the object is not onscreen). // : filled with the image width, or -1 if the value cannot be obtained. // : filled with the image height, or -1 if the value cannot be obtained. - void get_image_size()(int* width, int* height) { + void get_image_size()(int* width, int* height) nothrow { atk_image_get_image_size(cast(Image*)&this, width, height); } @@ -773,7 +785,7 @@ struct Image /* Interface */ { // not be completed. // RETURNS: boolean TRUE, or FALSE if operation could // : a string description to set for @image - int set_image_description()(char* description) { + int set_image_description()(char* description) nothrow { return atk_image_set_image_description(cast(Image*)&this, description); } } @@ -786,18 +798,18 @@ struct ImageIface { // : address of #gint to put x coordinate position; otherwise, -1 if value cannot be obtained. // : address of #gint to put y coordinate position; otherwise, -1 if value cannot be obtained. // : specifies whether the coordinates are relative to the screen or to the components top level window - extern (C) void function (Image* image, int* x, int* y, CoordType coord_type) get_image_position; + extern (C) void function (Image* image, int* x, int* y, CoordType coord_type) nothrow get_image_position; // RETURNS: a string representing the image description - extern (C) char* function (Image* image) get_image_description; + extern (C) char* function (Image* image) nothrow get_image_description; // : filled with the image width, or -1 if the value cannot be obtained. // : filled with the image height, or -1 if the value cannot be obtained. - extern (C) void function (Image* image, int* width, int* height) get_image_size; + extern (C) void function (Image* image, int* width, int* height) nothrow get_image_size; // RETURNS: boolean TRUE, or FALSE if operation could // : a string description to set for @image - extern (C) int function (Image* image, char* description) set_image_description; - extern (C) char* function (Image* image) get_image_locale; + extern (C) int function (Image* image, char* description) nothrow set_image_description; + extern (C) char* function (Image* image) nothrow get_image_locale; Function pad1; } @@ -807,7 +819,7 @@ struct Implementor { // the object implements #AtkObjectIface // implementation // RETURNS: a reference to an object's #AtkObject - Object* /*new*/ ref_accessible()() { + Object* /*new*/ ref_accessible()() nothrow { return atk_implementor_ref_accessible(&this); } } @@ -842,7 +854,7 @@ enum KeyEventType { // RETURNS: TRUE (nonzero) if the event emission should be stopped and the event // : an AtkKeyEventStruct containing information about the key event for which notification is being given. // : a block of data which will be passed to the event listener, on notification. -extern (C) alias int function (KeyEventStruct* event, void* func_data) KeySnoopFunc; +extern (C) alias int function (KeyEventStruct* event, void* func_data) nothrow KeySnoopFunc; enum Layer { INVALID = 0, @@ -864,7 +876,7 @@ struct Misc /* : GObject.Object */ { // 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()() { + static Misc* get_instance()() nothrow { return atk_misc_get_instance(); } @@ -873,7 +885,7 @@ struct Misc /* : GObject.Object */ { // if one exists. // (This method is implemented by the toolkit ATK implementation layer; // for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER). - void threads_enter()() { + void threads_enter()() nothrow { atk_misc_threads_enter(&this); } @@ -887,15 +899,15 @@ struct Misc /* : GObject.Object */ { // be bracketed by atk_misc_threads_leave/atk_misc_threads_enter calls. // (This method is implemented by the toolkit ATK implementation layer; // for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE). - void threads_leave()() { + void threads_leave()() nothrow { atk_misc_threads_leave(&this); } } struct MiscClass { GObject2.ObjectClass parent; - extern (C) void function (Misc* misc) threads_enter; - extern (C) void function (Misc* misc) threads_leave; + extern (C) void function (Misc* misc) nothrow threads_enter; + extern (C) void function (Misc* misc) nothrow threads_leave; void*[32] vfuncs; } @@ -921,9 +933,10 @@ struct NoOpObject /* : Object */ { // Application maintainers should not use this method. // RETURNS: a default (non-functioning stub) #AtkObject // : a #GObject - static NoOpObject* /*new*/ new_()(GObject2.Object* obj) { + static NoOpObject* /*new*/ new_()(GObject2.Object* obj) nothrow { return atk_no_op_object_new(obj); } + alias new_!() opCall; } struct NoOpObjectClass { @@ -940,9 +953,10 @@ struct NoOpObjectFactory /* : ObjectFactory */ { // Creates an instance of an #AtkObjectFactory which generates primitive // (non-functioning) #AtkObjects. // RETURNS: an instance of an #AtkObjectFactory - static NoOpObjectFactory* /*new*/ new_()() { + static NoOpObjectFactory* /*new*/ new_()() nothrow { return atk_no_op_object_factory_new(); } + alias new_!() opCall; } struct NoOpObjectFactoryClass { @@ -965,7 +979,7 @@ struct Object /* : GObject.Object */ { // Returns TRUE if the relationship is added. // : The #AtkRelationType of the relation // : The #AtkObject which is to be the target of the relation. - int add_relationship()(RelationType relationship, Object* target) { + int add_relationship()(RelationType relationship, Object* target) nothrow { return atk_object_add_relationship(&this, relationship, target); } @@ -974,7 +988,7 @@ struct Object /* : GObject.Object */ { // atk_object_remove_property_change_handler() // RETURNS: a #guint which is the handler id used in // : a function to be called when a property changes its value - uint connect_property_change_handler()(PropertyChangeHandler* handler) { + uint connect_property_change_handler()(PropertyChangeHandler* handler) nothrow { return atk_object_connect_property_change_handler(&this, handler); } @@ -986,47 +1000,47 @@ struct Object /* : GObject.Object */ { // properties/annotations applied to the object, or an empty set if the object // has no name-value pair attributes assigned to it. // RETURNS: an #AtkAttributeSet consisting of all explicit - AttributeSet* get_attributes()() { + AttributeSet* get_attributes()() nothrow { return atk_object_get_attributes(&this); } // Gets the accessible description of the accessible. // of the accessible. // RETURNS: a character string representing the accessible description - char* get_description()() { + char* get_description()() nothrow { return atk_object_get_description(&this); } // Gets the 0-based index of this accessible in its parent; returns -1 if the // accessible does not have an accessible parent. // RETURNS: an integer which is the index of the accessible in its parent - int get_index_in_parent()() { + int get_index_in_parent()() nothrow { return atk_object_get_index_in_parent(&this); } // Gets the number of accessible children of the accessible. // of the accessible. // RETURNS: an integer representing the number of accessible children - int get_n_accessible_children()() { + int get_n_accessible_children()() nothrow { return atk_object_get_n_accessible_children(&this); } // Gets the accessible name of the accessible. // RETURNS: a character string representing the accessible name of the object. - char* get_name()() { + char* get_name()() nothrow { return atk_object_get_name(&this); } // Gets the accessible parent of the accessible. // of the accessible // RETURNS: a #AtkObject representing the accessible parent - Object* get_parent()() { + Object* get_parent()() nothrow { return atk_object_get_parent(&this); } // Gets the role of the accessible. // RETURNS: an #AtkRole which is the role of the accessible - Role get_role()() { + Role get_role()() nothrow { return atk_object_get_role(&this); } @@ -1035,14 +1049,14 @@ struct Object /* : GObject.Object */ { // that this function should called only in the ..._new() functions used // to create an instance of a subclass of #AtkObject // : a #gpointer which identifies the object for which the AtkObject was created. - void initialize()(void* data) { + void initialize()(void* data) nothrow { atk_object_initialize(&this, data); } // Emits a state-change signal for the specified state. // : an #AtkState whose state is changed // : a gboolean which indicates whether the state is being set on or off - void notify_state_change()(State state, int value) { + void notify_state_change()(State state, int value) nothrow { atk_object_notify_state_change(&this, state, value); } @@ -1052,14 +1066,14 @@ struct Object /* : GObject.Object */ { // accessible child of the accessible. // RETURNS: an #AtkObject representing the specified // : a gint representing the position of the child, starting from 0 - Object* /*new*/ ref_accessible_child()(int i) { + Object* /*new*/ ref_accessible_child()(int i) nothrow { return atk_object_ref_accessible_child(&this, i); } // Gets the #AtkRelationSet associated with the object. // of the object. // RETURNS: an #AtkRelationSet representing the relation set - RelationSet* /*new*/ ref_relation_set()() { + RelationSet* /*new*/ ref_relation_set()() nothrow { return atk_object_ref_relation_set(&this); } @@ -1067,13 +1081,13 @@ struct Object /* : GObject.Object */ { // unreference it when it is no longer needed. // set of the accessible // RETURNS: a reference to an #AtkStateSet which is the state - StateSet* /*new*/ ref_state_set()() { + StateSet* /*new*/ ref_state_set()() nothrow { return atk_object_ref_state_set(&this); } // Removes a property change handler. // : a guint which identifies the handler to be removed. - void remove_property_change_handler()(uint handler_id) { + void remove_property_change_handler()(uint handler_id) nothrow { atk_object_remove_property_change_handler(&this, handler_id); } @@ -1081,65 +1095,77 @@ struct Object /* : GObject.Object */ { // Returns TRUE if the relationship is removed. // : The #AtkRelationType of the relation // : The #AtkObject which is the target of the relation to be removed. - int remove_relationship()(RelationType relationship, Object* target) { + int remove_relationship()(RelationType relationship, Object* target) nothrow { return atk_object_remove_relationship(&this, relationship, target); } // Sets the accessible description of the accessible. // : a character string to be set as the accessible description - void set_description()(char* description) { + void set_description()(char* description) nothrow { atk_object_set_description(&this, description); } // Sets the accessible name of the accessible. // : a character string to be set as the accessible name - void set_name()(char* name) { + void set_name()(char* name) nothrow { atk_object_set_name(&this, name); } // Sets the accessible parent of the accessible. // : an #AtkObject to be set as the accessible parent - void set_parent()(Object* parent) { + void set_parent()(Object* parent) nothrow { atk_object_set_parent(&this, parent); } // Sets the role of the accessible. // : an #AtkRole to be set as the role - void set_role()(Role role) { + void set_role()(Role role) nothrow { atk_object_set_role(&this, role); } - extern (C) alias static void function (Object* this_, void* object, void* user_data=null) signal_active_descendant_changed; + extern (C) alias static void function (Object* this_, void* object, void* user_data=null) nothrow signal_active_descendant_changed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_active_descendant_changed)||_ttmm!(CB, signal_active_descendant_changed)()) { 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) { + extern (C) alias static void function (Object* this_, c_uint object, void* p0, void* user_data=null) nothrow signal_children_changed; + ulong signal_connect(string name:"children-changed", CB:signal_children_changed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_children_changed)||_ttmm!(CB, signal_children_changed)()) { 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) { + extern (C) alias static void function (Object* this_, c_int object, void* user_data=null) nothrow signal_focus_event; + ulong signal_connect(string name:"focus-event", CB:signal_focus_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_focus_event)||_ttmm!(CB, signal_focus_event)()) { 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) { + extern (C) alias static void function (Object* this_, void* object, void* user_data=null) nothrow signal_property_change; + ulong signal_connect(string name:"property-change", CB:signal_property_change) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_property_change)||_ttmm!(CB, signal_property_change)()) { 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) { + extern (C) alias static void function (Object* this_, char* object, c_int p0, void* user_data=null) nothrow signal_state_change; + ulong signal_connect(string name:"state-change", CB:signal_state_change) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_state_change)||_ttmm!(CB, signal_state_change)()) { 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) { + extern (C) alias static void function (Object* this_, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_visible_data_changed)||_ttmm!(CB, signal_visible_data_changed)()) { return signal_connect_data!()(&this, cast(char*)"visible-data-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -1148,51 +1174,51 @@ struct Object /* : GObject.Object */ { struct ObjectClass { GObject2.ObjectClass parent; // RETURNS: a character string representing the accessible name of the object. - extern (C) char* function (Object* accessible) get_name; + extern (C) char* function (Object* accessible) nothrow get_name; // RETURNS: a character string representing the accessible description - extern (C) char* function (Object* accessible) get_description; + extern (C) char* function (Object* accessible) nothrow get_description; // RETURNS: a #AtkObject representing the accessible parent - extern (C) Object* function (Object* accessible) get_parent; - extern (C) int function (Object* accessible) get_n_children; + extern (C) Object* function (Object* accessible) nothrow get_parent; + extern (C) int function (Object* accessible) nothrow get_n_children; // Unintrospectable functionp: ref_child() / () - extern (C) Object* function (Object* accessible, int i) ref_child; + extern (C) Object* function (Object* accessible, int i) nothrow ref_child; // RETURNS: an integer which is the index of the accessible in its parent - extern (C) int function (Object* accessible) get_index_in_parent; + extern (C) int function (Object* accessible) nothrow get_index_in_parent; // RETURNS: an #AtkRelationSet representing the relation set - extern (C) RelationSet* /*new*/ function (Object* accessible) ref_relation_set; + extern (C) RelationSet* /*new*/ function (Object* accessible) nothrow ref_relation_set; // RETURNS: an #AtkRole which is the role of the accessible - extern (C) Role function (Object* accessible) get_role; - extern (C) Layer function (Object* accessible) get_layer; - extern (C) int function (Object* accessible) get_mdi_zorder; + extern (C) Role function (Object* accessible) nothrow get_role; + extern (C) Layer function (Object* accessible) nothrow get_layer; + extern (C) int function (Object* accessible) nothrow get_mdi_zorder; // RETURNS: a reference to an #AtkStateSet which is the state - extern (C) StateSet* /*new*/ function (Object* accessible) ref_state_set; + extern (C) StateSet* /*new*/ function (Object* accessible) nothrow ref_state_set; // : a character string to be set as the accessible name - extern (C) void function (Object* accessible, char* name) set_name; + extern (C) void function (Object* accessible, char* name) nothrow set_name; // : a character string to be set as the accessible description - extern (C) void function (Object* accessible, char* description) set_description; + extern (C) void function (Object* accessible, char* description) nothrow set_description; // : an #AtkObject to be set as the accessible parent - extern (C) void function (Object* accessible, Object* parent) set_parent; + extern (C) void function (Object* accessible, Object* parent) nothrow set_parent; // : an #AtkRole to be set as the role - extern (C) void function (Object* accessible, Role role) set_role; + extern (C) void function (Object* accessible, Role role) nothrow set_role; // Unintrospectable functionp: connect_property_change_handler() / () // // RETURNS: a #guint which is the handler id used in // : a function to be called when a property changes its value - extern (C) uint function (Object* accessible, PropertyChangeHandler* handler) connect_property_change_handler; + extern (C) uint function (Object* accessible, PropertyChangeHandler* handler) nothrow connect_property_change_handler; // : a guint which identifies the handler to be removed. - extern (C) void function (Object* accessible, uint handler_id) remove_property_change_handler; + extern (C) void function (Object* accessible, uint handler_id) nothrow remove_property_change_handler; // : a #gpointer which identifies the object for which the AtkObject was created. - extern (C) void function (Object* accessible, void* data) initialize; - extern (C) void function (Object* accessible, uint change_index, void* changed_child) children_changed; - extern (C) void function (Object* accessible, int focus_in) focus_event; + extern (C) void function (Object* accessible, void* data) nothrow initialize; + extern (C) void function (Object* accessible, uint change_index, void* changed_child) nothrow children_changed; + extern (C) void function (Object* accessible, int focus_in) nothrow focus_event; // Unintrospectable functionp: property_change() / () - extern (C) void function (Object* accessible, _PropertyValues* values) property_change; - extern (C) void function (Object* accessible, char* name, int state_set) state_change; - extern (C) void function (Object* accessible) visible_data_changed; - extern (C) void function (Object* accessible, void** child) active_descendant_changed; + extern (C) void function (Object* accessible, _PropertyValues* values) nothrow property_change; + extern (C) void function (Object* accessible, char* name, int state_set) nothrow state_change; + extern (C) void function (Object* accessible) nothrow visible_data_changed; + extern (C) void function (Object* accessible, void** child) nothrow active_descendant_changed; // RETURNS: an #AtkAttributeSet consisting of all explicit - extern (C) AttributeSet* function (Object* accessible) get_attributes; + extern (C) AttributeSet* function (Object* accessible) nothrow get_attributes; Function pad1, pad2; } @@ -1208,14 +1234,14 @@ struct ObjectFactory /* : GObject.Object */ { // interface on behalf of @obj // RETURNS: an #AtkObject that implements an accessibility // : a #GObject - Object* /*new*/ create_accessible()(GObject2.Object* obj) { + Object* /*new*/ create_accessible()(GObject2.Object* obj) nothrow { return atk_object_factory_create_accessible(&this, obj); } // Gets the GType of the accessible which is created by the factory. // The value G_TYPE_INVALID is returned if no type if found. // RETURNS: the type of the accessible which is created by the @factory. - Type get_accessible_type()() { + Type get_accessible_type()() nothrow { return atk_object_factory_get_accessible_type(&this); } @@ -1223,7 +1249,7 @@ struct ObjectFactory /* : GObject.Object */ { // accessibles. When called, @factory may need to inform // #AtkObjects which it has created that they need to be re-instantiated. // in object registries. - void invalidate()() { + void invalidate()() nothrow { atk_object_factory_invalidate(&this); } } @@ -1231,9 +1257,9 @@ struct ObjectFactory /* : GObject.Object */ { struct ObjectFactoryClass { GObject2.ObjectClass parent_class; // Unintrospectable functionp: create_accessible() / () - extern (C) Object* function (GObject2.Object* obj) create_accessible; - extern (C) void function (ObjectFactory* factory) invalidate; - extern (C) Type function () get_accessible_type; + extern (C) Object* function (GObject2.Object* obj) nothrow create_accessible; + extern (C) void function (ObjectFactory* factory) nothrow invalidate; + extern (C) Type function () nothrow get_accessible_type; Function pad1, pad2; } @@ -1244,21 +1270,22 @@ struct Plug /* : Object */ { alias parent object; Object parent; - static Plug* /*new*/ new_()() { + static Plug* /*new*/ new_()() nothrow { return atk_plug_new(); } - char* /*new*/ get_id()() { + alias new_!() opCall; + char* /*new*/ get_id()() nothrow { return atk_plug_get_id(&this); } } struct PlugClass { ObjectClass parent_class; - extern (C) char* /*new*/ function (Plug* obj) get_object_id; + extern (C) char* /*new*/ function (Plug* obj) nothrow get_object_id; } // Unintrospectable callback: PropertyChangeHandler() / () -extern (C) alias void function (Object* arg_a, _PropertyValues* arg_b) PropertyChangeHandler; +extern (C) alias void function (Object* arg_a, _PropertyValues* arg_b) nothrow PropertyChangeHandler; struct Rectangle { int x, y, width, height; @@ -1276,7 +1303,7 @@ struct Registry /* : GObject.Object */ { // #AtkObjects appropriate for @type. // RETURNS: an #AtkObjectFactory appropriate for creating // : a #GType with which to look up the associated #AtkObjectFactory - ObjectFactory* get_factory()(Type type) { + ObjectFactory* get_factory()(Type type) nothrow { return atk_registry_get_factory(&this, type); } @@ -1284,7 +1311,7 @@ struct Registry /* : GObject.Object */ { // associated with @type. // RETURNS: a #GType associated with type @type // : a #GType with which to look up the associated #AtkObjectFactory subclass - Type get_factory_type()(Type type) { + Type get_factory_type()(Type type) nothrow { return atk_registry_get_factory_type(&this, type); } @@ -1294,7 +1321,7 @@ struct Registry /* : GObject.Object */ { // appropriate for @type. // : an #AtkObject type // : an #AtkObjectFactory type to associate with @type. Must implement AtkObject appropriate for @type. - void set_factory_type()(Type type, Type factory_type) { + void set_factory_type()(Type type, Type factory_type) nothrow { atk_registry_set_factory_type(&this, type, factory_type); } } @@ -1314,34 +1341,35 @@ struct Relation /* : GObject.Object */ { // : an array of pointers to #AtkObjects // : number of #AtkObjects pointed to by @targets // : an #AtkRelationType with which to create the new #AtkRelation - static Relation* /*new*/ new_()(Object** targets, int n_targets, RelationType relationship) { + static Relation* /*new*/ new_()(Object** targets, int n_targets, RelationType relationship) nothrow { return atk_relation_new(targets, n_targets, relationship); } + alias new_!() opCall; // 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 - void add_target()(Object* target) { + void add_target()(Object* target) nothrow { atk_relation_add_target(&this, target); } // Gets the type of @relation // RETURNS: the type of @relation - RelationType get_relation_type()() { + RelationType get_relation_type()() nothrow { return atk_relation_get_relation_type(&this); } // Gets the target list of @relation // RETURNS: the target list of @relation - PtrArray* get_target()() { + PtrArray* get_target()() nothrow { return atk_relation_get_target(&this); } // Remove the specified AtkObject from the target for the relation. // Returns TRUE if the removal is successful. // : an #AtkObject - int remove_target()(Object* target) { + int remove_target()(Object* target) nothrow { return atk_relation_remove_target(&this, target); } } @@ -1360,9 +1388,10 @@ struct RelationSet /* : GObject.Object */ { // Creates a new empty relation set. // RETURNS: a new #AtkRelationSet - static RelationSet* /*new*/ new_()() { + static RelationSet* /*new*/ new_()() nothrow { return atk_relation_set_new(); } + alias new_!() opCall; // Add a new relation to the current relation set if it is not already // present. @@ -1370,7 +1399,7 @@ struct RelationSet /* : GObject.Object */ { // should unref it to ensure that it will be destroyed when the AtkRelationSet // is destroyed. // : an #AtkRelation - void add()(Relation* relation) { + void add()(Relation* relation) nothrow { atk_relation_set_add(&this, relation); } @@ -1381,7 +1410,7 @@ struct RelationSet /* : GObject.Object */ { // is added to the relation. // : an #AtkRelationType // : an #AtkObject - void add_relation_by_type()(RelationType relationship, Object* target) { + void add_relation_by_type()(RelationType relationship, Object* target) nothrow { atk_relation_set_add_relation_by_type(&this, relationship, target); } @@ -1390,13 +1419,13 @@ struct RelationSet /* : GObject.Object */ { // in @set, %FALSE otherwise // RETURNS: %TRUE if @relationship is the relationship type of a relation // : an #AtkRelationType - int contains()(RelationType relationship) { + int contains()(RelationType relationship) nothrow { return atk_relation_set_contains(&this, relationship); } // Determines the number of relations in a relation set. // RETURNS: an integer representing the number of relations in the set. - int get_n_relations()() { + int get_n_relations()() nothrow { return atk_relation_set_get_n_relations(&this); } @@ -1404,7 +1433,7 @@ struct RelationSet /* : GObject.Object */ { // position i in the set. // RETURNS: a #AtkRelation, which is the relation at // : a gint representing a position in the set, starting from 0. - Relation* get_relation()(int i) { + Relation* get_relation()(int i) nothrow { return atk_relation_set_get_relation(&this, i); } @@ -1412,7 +1441,7 @@ struct RelationSet /* : GObject.Object */ { // specified type. // RETURNS: an #AtkRelation, which is a relation matching the // : an #AtkRelationType - Relation* get_relation_by_type()(RelationType relationship) { + Relation* get_relation_by_type()(RelationType relationship) nothrow { return atk_relation_set_get_relation_by_type(&this, relationship); } @@ -1420,7 +1449,7 @@ struct RelationSet /* : GObject.Object */ { // This function unref's the #AtkRelation so it will be deleted unless there // is another reference to it. // : an #AtkRelation - void remove()(Relation* relation) { + void remove()(Relation* relation) nothrow { atk_relation_set_remove(&this, relation); } } @@ -1560,14 +1589,14 @@ struct Selection /* Interface */ { // object's selection. // RETURNS: TRUE if success, FALSE otherwise. // : a #gint specifying the child index. - int add_selection()(int i) { + int add_selection()(int i) nothrow { return atk_selection_add_selection(cast(Selection*)&this, i); } // Clears the selection in the object so that no children in the object // are selected. // RETURNS: TRUE if success, FALSE otherwise. - int clear_selection()() { + int clear_selection()() nothrow { return atk_selection_clear_selection(cast(Selection*)&this); } @@ -1577,7 +1606,7 @@ struct Selection /* Interface */ { // atk_get_accessible_value() convenience method. // if @selection does not implement this interface. // RETURNS: a gint representing the number of items selected, or 0 - int get_selection_count()() { + int get_selection_count()() nothrow { return atk_selection_get_selection_count(cast(Selection*)&this); } @@ -1588,7 +1617,7 @@ struct Selection /* Interface */ { // if @selection does not implement this interface. // RETURNS: a gboolean representing the specified child is selected, or 0 // : a #gint specifying the child index. - int is_child_selected()(int i) { + int is_child_selected()(int i) nothrow { return atk_selection_is_child_selected(cast(Selection*)&this, i); } @@ -1600,30 +1629,32 @@ struct Selection /* Interface */ { // accessible , or %NULL if @selection does not implement this interface. // RETURNS: an #AtkObject representing the selected // : a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - Object* /*new*/ ref_selection()(int i) { + Object* /*new*/ ref_selection()(int i) nothrow { return atk_selection_ref_selection(cast(Selection*)&this, i); } // Removes the specified child of the object from the object's selection. // RETURNS: TRUE if success, FALSE otherwise. // : a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - int remove_selection()(int i) { + int remove_selection()(int i) nothrow { return atk_selection_remove_selection(cast(Selection*)&this, i); } // Causes every child of the object to be selected if the object // supports multiple selections. // RETURNS: TRUE if success, FALSE otherwise. - int select_all_selection()() { + int select_all_selection()() nothrow { return atk_selection_select_all_selection(cast(Selection*)&this); } - extern (C) alias static void function (Selection* this_, void* user_data=null) signal_selection_changed; + extern (C) alias static void function (Selection* this_, void* user_data=null) nothrow signal_selection_changed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_selection_changed)||_ttmm!(CB, signal_selection_changed)()) { return signal_connect_data!()(&this, cast(char*)"selection-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -1636,26 +1667,26 @@ struct SelectionIface { // RETURNS: TRUE if success, FALSE otherwise. // : a #gint specifying the child index. - extern (C) int function (Selection* selection, int i) add_selection; + extern (C) int function (Selection* selection, int i) nothrow add_selection; // RETURNS: TRUE if success, FALSE otherwise. - extern (C) int function (Selection* selection) clear_selection; + extern (C) int function (Selection* selection) nothrow clear_selection; // RETURNS: an #AtkObject representing the selected // : a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - extern (C) Object* /*new*/ function (Selection* selection, int i) ref_selection; + extern (C) Object* /*new*/ function (Selection* selection, int i) nothrow ref_selection; // RETURNS: a gint representing the number of items selected, or 0 - extern (C) int function (Selection* selection) get_selection_count; + extern (C) int function (Selection* selection) nothrow get_selection_count; // RETURNS: a gboolean representing the specified child is selected, or 0 // : a #gint specifying the child index. - extern (C) int function (Selection* selection, int i) is_child_selected; + extern (C) int function (Selection* selection, int i) nothrow is_child_selected; // RETURNS: TRUE if success, FALSE otherwise. // : a #gint specifying the index in the selection set. (e.g. the ith selection as opposed to the ith child). - extern (C) int function (Selection* selection, int i) remove_selection; + extern (C) int function (Selection* selection, int i) nothrow remove_selection; // RETURNS: TRUE if success, FALSE otherwise. - extern (C) int function (Selection* selection) select_all_selection; - extern (C) void function (Selection* selection) selection_changed; + extern (C) int function (Selection* selection) nothrow select_all_selection; + extern (C) void function (Selection* selection) nothrow selection_changed; Function pad1, pad2; } @@ -1667,9 +1698,10 @@ struct Socket /* : Object */ { Object parent; private char* embedded_plug_id; - static Socket* /*new*/ new_()() { + static Socket* /*new*/ new_()() nothrow { return atk_socket_new(); } + alias new_!() opCall; // VERSION: 1.30 // Embeds the children of an #AtkPlug as the children of the #AtkSocket. The @@ -1680,14 +1712,14 @@ struct Socket /* : Object */ { // It is the responsibility of the application to pass the plug id on to // the process implementing the AtkSocket as needed. // : the ID of an #AtkPlug - void embed()(char* plug_id) { + void embed()(char* plug_id) nothrow { 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()() { + int is_occupied()() nothrow { return atk_socket_is_occupied(&this); } } @@ -1695,7 +1727,7 @@ struct Socket /* : Object */ { struct SocketClass { ObjectClass parent_class; // : the ID of an #AtkPlug - extern (C) void function (Socket* obj, char* plug_id) embed; + extern (C) void function (Socket* obj, char* plug_id) nothrow embed; } struct StateSet /* : GObject.Object */ { @@ -1707,22 +1739,23 @@ struct StateSet /* : GObject.Object */ { // Creates a new empty state set. // RETURNS: a new #AtkStateSet - static StateSet* /*new*/ new_()() { + static StateSet* /*new*/ new_()() nothrow { return atk_state_set_new(); } + alias new_!() opCall; // Add a new state for the specified type to the current state set if // it is not already present. // RETURNS: %TRUE if the state for @type is not already in @set. // : an #AtkStateType - int add_state()(StateType type) { + int add_state()(StateType type) nothrow { return atk_state_set_add_state(&this, type); } // Add the states for the specified types to the current state set. // : an array of #AtkStateType // : The number of elements in the array - void add_states()(StateType* types, int n_types) { + void add_states()(StateType* types, int n_types) nothrow { atk_state_set_add_states(&this, types, n_types); } @@ -1731,18 +1764,18 @@ struct StateSet /* : GObject.Object */ { // the two sets. // RETURNS: a new #AtkStateSet which is the intersection of // : another #AtkStateSet - StateSet* /*new*/ and_sets()(StateSet* compare_set) { + StateSet* /*new*/ and_sets()(StateSet* compare_set) nothrow { return atk_state_set_and_sets(&this, compare_set); } // Removes all states from the state set. - void clear_states()() { + void clear_states()() nothrow { atk_state_set_clear_states(&this); } // Checks whether the state for the specified type is in the specified set. // RETURNS: %TRUE if @type is the state type is in @set. // : an #AtkStateType - int contains_state()(StateType type) { + int contains_state()(StateType type) nothrow { return atk_state_set_contains_state(&this, type); } @@ -1751,13 +1784,13 @@ struct StateSet /* : GObject.Object */ { // RETURNS: %TRUE if all the states for @type are in @set. // : an array of #AtkStateType // : The number of elements in the array - int contains_states()(StateType* types, int n_types) { + int contains_states()(StateType* types, int n_types) nothrow { return atk_state_set_contains_states(&this, types, n_types); } // Checks whether the state set is empty, i.e. has no states set. // RETURNS: %TRUE if @set has no states set, otherwise %FALSE - int is_empty()() { + int is_empty()() nothrow { return atk_state_set_is_empty(&this); } @@ -1765,14 +1798,14 @@ struct StateSet /* : GObject.Object */ { // sets, returning %NULL is empty. // RETURNS: a new #AtkStateSet which is the union of the two // : another #AtkStateSet - StateSet* /*new*/ or_sets()(StateSet* compare_set) { + StateSet* /*new*/ or_sets()(StateSet* compare_set) nothrow { return atk_state_set_or_sets(&this, compare_set); } // Removes the state for the specified type from the state set. // RETURNS: %TRUE if @type was the state type is in @set. // : an #AtkType - int remove_state()(StateType type) { + int remove_state()(StateType type) nothrow { return atk_state_set_remove_state(&this, type); } @@ -1782,7 +1815,7 @@ struct StateSet /* : GObject.Object */ { // which are in exactly one of the two sets. // RETURNS: a new #AtkStateSet which contains the states // : another #AtkStateSet - StateSet* /*new*/ xor_sets()(StateSet* compare_set) { + StateSet* /*new*/ xor_sets()(StateSet* compare_set) nothrow { return atk_state_set_xor_sets(&this, compare_set); } } @@ -1839,13 +1872,13 @@ struct StreamableContent /* Interface */ { // type is at position 0, the second at position 1, and so on. // should not free the character string. // : a gint representing the position of the mime type starting from 0 - char* get_mime_type()(int i) { + char* get_mime_type()(int i) nothrow { return atk_streamable_content_get_mime_type(cast(StreamableContent*)&this, i); } // Gets the number of mime types supported by this object. // RETURNS: a gint which is the number of mime types supported by the object. - int get_n_mime_types()() { + int get_n_mime_types()() nothrow { return atk_streamable_content_get_n_mime_types(cast(StreamableContent*)&this); } @@ -1854,7 +1887,7 @@ struct StreamableContent /* Interface */ { // specified mime type. // RETURNS: A #GIOChannel which contains the content in the // : a gchar* representing the mime type - GLib2.IOChannel* /*new*/ get_stream()(char* mime_type) { + GLib2.IOChannel* /*new*/ get_stream()(char* mime_type) nothrow { return atk_streamable_content_get_stream(cast(StreamableContent*)&this, mime_type); } @@ -1869,7 +1902,7 @@ struct StreamableContent /* Interface */ { // can be constructed. // RETURNS: Returns a string representing a URI, or NULL if no corresponding URI // : a gchar* representing the mime type, or NULL to request a URI for the default mime type. - char* get_uri()(char* mime_type) { + char* get_uri()(char* mime_type) nothrow { return atk_streamable_content_get_uri(cast(StreamableContent*)&this, mime_type); } } @@ -1879,19 +1912,19 @@ struct StreamableContent /* Interface */ { struct StreamableContentIface { GObject2.TypeInterface parent; // RETURNS: a gint which is the number of mime types supported by the object. - extern (C) int function (StreamableContent* streamable) get_n_mime_types; + extern (C) int function (StreamableContent* streamable) nothrow get_n_mime_types; // : a gint representing the position of the mime type starting from 0 - extern (C) char* function (StreamableContent* streamable, int i) get_mime_type; + extern (C) char* function (StreamableContent* streamable, int i) nothrow get_mime_type; // Unintrospectable functionp: get_stream() / () // // RETURNS: A #GIOChannel which contains the content in the // : a gchar* representing the mime type - extern (C) GLib2.IOChannel* /*new*/ function (StreamableContent* streamable, char* mime_type) get_stream; + extern (C) GLib2.IOChannel* /*new*/ function (StreamableContent* streamable, char* mime_type) nothrow get_stream; // RETURNS: Returns a string representing a URI, or NULL if no corresponding URI // : a gchar* representing the mime type, or NULL to request a URI for the default mime type. - extern (C) char* function (StreamableContent* streamable, char* mime_type) get_uri; + extern (C) char* function (StreamableContent* streamable, char* mime_type) nothrow get_uri; Function pad1, pad2, pad3; } @@ -1901,7 +1934,7 @@ struct Table /* Interface */ { // the selection, or 0 if value does not implement this interface. // RETURNS: a gboolean representing if the column was successfully added to // : a #gint representing a column in @table - int add_column_selection()(int column) { + int add_column_selection()(int column) nothrow { return atk_table_add_column_selection(cast(Table*)&this, column); } @@ -1909,14 +1942,14 @@ struct Table /* Interface */ { // or 0 if value does not implement this interface. // RETURNS: a gboolean representing if row was successfully added to selection, // : a #gint representing a row in @table - int add_row_selection()(int row) { + int add_row_selection()(int row) nothrow { return atk_table_add_row_selection(cast(Table*)&this, row); } // Gets the caption for the @table. // %NULL if value does not implement this interface. // RETURNS: a AtkObject* representing the table caption, or - Object* get_caption()() { + Object* get_caption()() nothrow { return atk_table_get_caption(cast(Table*)&this); } @@ -1924,7 +1957,7 @@ struct Table /* Interface */ { // or -1 if the table does not implement this interface // RETURNS: a gint representing the column at the specified index, // : a #gint representing an index in @table - int get_column_at_index()(int index_) { + int get_column_at_index()(int index_) nothrow { return atk_table_get_column_at_index(cast(Table*)&this, index_); } @@ -1932,7 +1965,7 @@ struct Table /* Interface */ { // if value does not implement this interface. // RETURNS: a gchar* representing the column description, or %NULL // : a #gint representing a column in @table - char* get_column_description()(int column) { + char* get_column_description()(int column) nothrow { return atk_table_get_column_description(cast(Table*)&this, column); } @@ -1942,7 +1975,7 @@ struct Table /* Interface */ { // RETURNS: a gint representing the column extent at specified position, or 0 // : a #gint representing a row in @table // : a #gint representing a column in @table - int get_column_extent_at()(int row, int column) { + int get_column_extent_at()(int row, int column) nothrow { return atk_table_get_column_extent_at(cast(Table*)&this, row, column); } @@ -1950,7 +1983,7 @@ struct Table /* Interface */ { // header, or %NULL if value does not implement this interface. // RETURNS: a AtkObject* representing the specified column // : a #gint representing a column in the table - Object* get_column_header()(int column) { + Object* get_column_header()(int column) nothrow { return atk_table_get_column_header(cast(Table*)&this, column); } @@ -1960,21 +1993,21 @@ struct Table /* Interface */ { // RETURNS: a #gint representing the index at specified position. // : a #gint representing a row in @table // : a #gint representing a column in @table - int get_index_at()(int row, int column) { + int get_index_at()(int row, int column) nothrow { return atk_table_get_index_at(cast(Table*)&this, row, column); } // Gets the number of columns in the table. // if value does not implement this interface. // RETURNS: a gint representing the number of columns, or 0 - int get_n_columns()() { + int get_n_columns()() nothrow { return atk_table_get_n_columns(cast(Table*)&this); } // Gets the number of rows in the table. // if value does not implement this interface. // RETURNS: a gint representing the number of rows, or 0 - int get_n_rows()() { + int get_n_rows()() nothrow { return atk_table_get_n_rows(cast(Table*)&this); } @@ -1982,7 +2015,7 @@ struct Table /* Interface */ { // or -1 if the table does not implement this interface // RETURNS: a gint representing the row at the specified index, // : a #gint representing an index in @table - int get_row_at_index()(int index_) { + int get_row_at_index()(int index_) nothrow { return atk_table_get_row_at_index(cast(Table*)&this, index_); } @@ -1990,7 +2023,7 @@ struct Table /* Interface */ { // if value does not implement this interface. // RETURNS: a gchar* representing the row description, or %NULL // : a #gint representing a row in @table - char* get_row_description()(int row) { + char* get_row_description()(int row) nothrow { return atk_table_get_row_description(cast(Table*)&this, row); } @@ -2000,7 +2033,7 @@ struct Table /* Interface */ { // RETURNS: a gint representing the row extent at specified position, or 0 // : a #gint representing a row in @table // : a #gint representing a column in @table - int get_row_extent_at()(int row, int column) { + int get_row_extent_at()(int row, int column) nothrow { return atk_table_get_row_extent_at(cast(Table*)&this, row, column); } @@ -2008,7 +2041,7 @@ struct Table /* Interface */ { // header, or %NULL if value does not implement this interface. // RETURNS: a AtkObject* representing the specified row // : a #gint representing a row in the table - Object* get_row_header()(int row) { + Object* get_row_header()(int row) nothrow { return atk_table_get_row_header(cast(Table*)&this, row); } @@ -2017,7 +2050,7 @@ struct Table /* Interface */ { // or %0 if value does not implement this interface. // RETURNS: a gint representing the number of selected columns, // : a #gint** that is to contain the selected columns numbers - int get_selected_columns()(int** selected) { + int get_selected_columns()(int** selected) nothrow { return atk_table_get_selected_columns(cast(Table*)&this, selected); } @@ -2026,14 +2059,14 @@ struct Table /* Interface */ { // or zero if value does not implement this interface. // RETURNS: a gint representing the number of selected rows, // : a #gint** that is to contain the selected row numbers - int get_selected_rows()(int** selected) { + int get_selected_rows()(int** selected) nothrow { return atk_table_get_selected_rows(cast(Table*)&this, selected); } // Gets the summary description of the table. // of the table, or zero if value does not implement this interface. // RETURNS: a AtkObject* representing a summary description - Object* /*new*/ get_summary()() { + Object* /*new*/ get_summary()() nothrow { return atk_table_get_summary(cast(Table*)&this); } @@ -2042,7 +2075,7 @@ struct Table /* Interface */ { // if value does not implement this interface. // RETURNS: a gboolean representing if the column is selected, or 0 // : a #gint representing a column in @table - int is_column_selected()(int column) { + int is_column_selected()(int column) nothrow { return atk_table_is_column_selected(cast(Table*)&this, column); } @@ -2051,7 +2084,7 @@ struct Table /* Interface */ { // if value does not implement this interface. // RETURNS: a gboolean representing if the row is selected, or 0 // : a #gint representing a row in @table - int is_row_selected()(int row) { + int is_row_selected()(int row) nothrow { return atk_table_is_row_selected(cast(Table*)&this, row); } @@ -2061,7 +2094,7 @@ struct Table /* Interface */ { // RETURNS: a gboolean representing if the cell is selected, or 0 // : a #gint representing a row in @table // : a #gint representing a column in @table - int is_selected()(int row, int column) { + int is_selected()(int row, int column) nothrow { return atk_table_is_selected(cast(Table*)&this, row, column); } @@ -2070,7 +2103,7 @@ struct Table /* Interface */ { // RETURNS: a AtkObject* representing the referred to // : a #gint representing a row in @table // : a #gint representing a column in @table - Object* /*new*/ ref_at()(int row, int column) { + Object* /*new*/ ref_at()(int row, int column) nothrow { return atk_table_ref_at(cast(Table*)&this, row, column); } @@ -2078,7 +2111,7 @@ struct Table /* Interface */ { // the selection, or 0 if value does not implement this interface. // RETURNS: a gboolean representing if the column was successfully removed from // : a #gint representing a column in @table - int remove_column_selection()(int column) { + int remove_column_selection()(int column) nothrow { return atk_table_remove_column_selection(cast(Table*)&this, column); } @@ -2086,86 +2119,100 @@ struct Table /* Interface */ { // the selection, or 0 if value does not implement this interface. // RETURNS: a gboolean representing if the row was successfully removed from // : a #gint representing a row in @table - int remove_row_selection()(int row) { + int remove_row_selection()(int row) nothrow { return atk_table_remove_row_selection(cast(Table*)&this, row); } // Sets the caption for the table. // : a #AtkObject representing the caption to set for @table - void set_caption()(Object* caption) { + void set_caption()(Object* caption) nothrow { atk_table_set_caption(cast(Table*)&this, caption); } // Sets the description text for the specified @column of the @table. // : a #gint representing a column in @table // : a #gchar representing the description text to set for the specified @column of the @table - void set_column_description()(int column, char* description) { + void set_column_description()(int column, char* description) nothrow { atk_table_set_column_description(cast(Table*)&this, column, description); } // Sets the specified column header to @header. // : a #gint representing a column in @table //
: an #AtkTable - void set_column_header()(int column, Object* header) { + void set_column_header()(int column, Object* header) nothrow { atk_table_set_column_header(cast(Table*)&this, column, header); } // Sets the description text for the specified @row of @table. // : a #gint representing a row in @table // : a #gchar representing the description text to set for the specified @row of @table - void set_row_description()(int row, char* description) { + void set_row_description()(int row, char* description) nothrow { atk_table_set_row_description(cast(Table*)&this, row, description); } // Sets the specified row header to @header. // : a #gint representing a row in @table //
: an #AtkTable - void set_row_header()(int row, Object* header) { + void set_row_header()(int row, Object* header) nothrow { atk_table_set_row_header(cast(Table*)&this, row, header); } // Sets the summary description of the table. // : an #AtkObject representing the summary description to set for @table - void set_summary()(Object* accessible) { + void set_summary()(Object* accessible) nothrow { atk_table_set_summary(cast(Table*)&this, accessible); } - extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) signal_column_deleted; + extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) nothrow signal_column_deleted; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_column_deleted)||_ttmm!(CB, signal_column_deleted)()) { 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) { + extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) nothrow signal_column_inserted; + ulong signal_connect(string name:"column-inserted", CB:signal_column_inserted) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_column_inserted)||_ttmm!(CB, signal_column_inserted)()) { 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) { + extern (C) alias static void function (Table* this_, void* user_data=null) nothrow signal_column_reordered; + ulong signal_connect(string name:"column-reordered", CB:signal_column_reordered) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_column_reordered)||_ttmm!(CB, signal_column_reordered)()) { 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) { + extern (C) alias static void function (Table* this_, void* user_data=null) nothrow signal_model_changed; + ulong signal_connect(string name:"model-changed", CB:signal_model_changed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_model_changed)||_ttmm!(CB, signal_model_changed)()) { 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) { + extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) nothrow signal_row_deleted; + ulong signal_connect(string name:"row-deleted", CB:signal_row_deleted) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_row_deleted)||_ttmm!(CB, signal_row_deleted)()) { 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) { + extern (C) alias static void function (Table* this_, int object, int p0, void* user_data=null) nothrow signal_row_inserted; + ulong signal_connect(string name:"row-inserted", CB:signal_row_inserted) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_row_inserted)||_ttmm!(CB, signal_row_inserted)()) { 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) { + extern (C) alias static void function (Table* this_, void* user_data=null) nothrow signal_row_reordered; + ulong signal_connect(string name:"row-reordered", CB:signal_row_reordered) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_row_reordered)||_ttmm!(CB, signal_row_reordered)()) { return signal_connect_data!()(&this, cast(char*)"row-reordered", cast(GObject2.Callback)cb, data, null, cf); } @@ -2179,118 +2226,118 @@ struct TableIface { // RETURNS: a AtkObject* representing the referred to // : a #gint representing a row in @table // : a #gint representing a column in @table - extern (C) Object* /*new*/ function (Table* table, int row, int column) ref_at; + extern (C) Object* /*new*/ function (Table* table, int row, int column) nothrow ref_at; // RETURNS: a #gint representing the index at specified position. // : a #gint representing a row in @table // : a #gint representing a column in @table - extern (C) int function (Table* table, int row, int column) get_index_at; + extern (C) int function (Table* table, int row, int column) nothrow get_index_at; // RETURNS: a gint representing the column at the specified index, // : a #gint representing an index in @table - extern (C) int function (Table* table, int index_) get_column_at_index; + extern (C) int function (Table* table, int index_) nothrow get_column_at_index; // RETURNS: a gint representing the row at the specified index, // : a #gint representing an index in @table - extern (C) int function (Table* table, int index_) get_row_at_index; + extern (C) int function (Table* table, int index_) nothrow get_row_at_index; // RETURNS: a gint representing the number of columns, or 0 - extern (C) int function (Table* table) get_n_columns; + extern (C) int function (Table* table) nothrow get_n_columns; // RETURNS: a gint representing the number of rows, or 0 - extern (C) int function (Table* table) get_n_rows; + extern (C) int function (Table* table) nothrow get_n_rows; // RETURNS: a gint representing the column extent at specified position, or 0 // : a #gint representing a row in @table // : a #gint representing a column in @table - extern (C) int function (Table* table, int row, int column) get_column_extent_at; + extern (C) int function (Table* table, int row, int column) nothrow get_column_extent_at; // RETURNS: a gint representing the row extent at specified position, or 0 // : a #gint representing a row in @table // : a #gint representing a column in @table - extern (C) int function (Table* table, int row, int column) get_row_extent_at; + extern (C) int function (Table* table, int row, int column) nothrow get_row_extent_at; // RETURNS: a AtkObject* representing the table caption, or - extern (C) Object* function (Table* table) get_caption; + extern (C) Object* function (Table* table) nothrow get_caption; // RETURNS: a gchar* representing the column description, or %NULL // : a #gint representing a column in @table - extern (C) char* function (Table* table, int column) get_column_description; + extern (C) char* function (Table* table, int column) nothrow get_column_description; // RETURNS: a AtkObject* representing the specified column // : a #gint representing a column in the table - extern (C) Object* function (Table* table, int column) get_column_header; + extern (C) Object* function (Table* table, int column) nothrow get_column_header; // RETURNS: a gchar* representing the row description, or %NULL // : a #gint representing a row in @table - extern (C) char* function (Table* table, int row) get_row_description; + extern (C) char* function (Table* table, int row) nothrow get_row_description; // RETURNS: a AtkObject* representing the specified row // : a #gint representing a row in the table - extern (C) Object* function (Table* table, int row) get_row_header; + extern (C) Object* function (Table* table, int row) nothrow get_row_header; // RETURNS: a AtkObject* representing a summary description - extern (C) Object* /*new*/ function (Table* table) get_summary; + extern (C) Object* /*new*/ function (Table* table) nothrow get_summary; // : a #AtkObject representing the caption to set for @table - extern (C) void function (Table* table, Object* caption) set_caption; + extern (C) void function (Table* table, Object* caption) nothrow set_caption; // : a #gint representing a column in @table // : a #gchar representing the description text to set for the specified @column of the @table - extern (C) void function (Table* table, int column, char* description) set_column_description; + extern (C) void function (Table* table, int column, char* description) nothrow set_column_description; // : a #gint representing a column in @table //
: an #AtkTable - extern (C) void function (Table* table, int column, Object* header) set_column_header; + extern (C) void function (Table* table, int column, Object* header) nothrow set_column_header; // : a #gint representing a row in @table // : a #gchar representing the description text to set for the specified @row of @table - extern (C) void function (Table* table, int row, char* description) set_row_description; + extern (C) void function (Table* table, int row, char* description) nothrow set_row_description; // : a #gint representing a row in @table //
: an #AtkTable - extern (C) void function (Table* table, int row, Object* header) set_row_header; + extern (C) void function (Table* table, int row, Object* header) nothrow set_row_header; // : an #AtkObject representing the summary description to set for @table - extern (C) void function (Table* table, Object* accessible) set_summary; + extern (C) void function (Table* table, Object* accessible) nothrow set_summary; // RETURNS: a gint representing the number of selected columns, // : a #gint** that is to contain the selected columns numbers - extern (C) int function (Table* table, int** selected) get_selected_columns; + extern (C) int function (Table* table, int** selected) nothrow get_selected_columns; // RETURNS: a gint representing the number of selected rows, // : a #gint** that is to contain the selected row numbers - extern (C) int function (Table* table, int** selected) get_selected_rows; + extern (C) int function (Table* table, int** selected) nothrow get_selected_rows; // RETURNS: a gboolean representing if the column is selected, or 0 // : a #gint representing a column in @table - extern (C) int function (Table* table, int column) is_column_selected; + extern (C) int function (Table* table, int column) nothrow is_column_selected; // RETURNS: a gboolean representing if the row is selected, or 0 // : a #gint representing a row in @table - extern (C) int function (Table* table, int row) is_row_selected; + extern (C) int function (Table* table, int row) nothrow is_row_selected; // RETURNS: a gboolean representing if the cell is selected, or 0 // : a #gint representing a row in @table // : a #gint representing a column in @table - extern (C) int function (Table* table, int row, int column) is_selected; + extern (C) int function (Table* table, int row, int column) nothrow is_selected; // RETURNS: a gboolean representing if row was successfully added to selection, // : a #gint representing a row in @table - extern (C) int function (Table* table, int row) add_row_selection; + extern (C) int function (Table* table, int row) nothrow add_row_selection; // RETURNS: a gboolean representing if the row was successfully removed from // : a #gint representing a row in @table - extern (C) int function (Table* table, int row) remove_row_selection; + extern (C) int function (Table* table, int row) nothrow remove_row_selection; // RETURNS: a gboolean representing if the column was successfully added to // : a #gint representing a column in @table - extern (C) int function (Table* table, int column) add_column_selection; + extern (C) int function (Table* table, int column) nothrow add_column_selection; // RETURNS: a gboolean representing if the column was successfully removed from // : a #gint representing a column in @table - extern (C) int function (Table* table, int column) remove_column_selection; - extern (C) void function (Table* table, int row, int num_inserted) row_inserted; - extern (C) void function (Table* table, int column, int num_inserted) column_inserted; - extern (C) void function (Table* table, int row, int num_deleted) row_deleted; - extern (C) void function (Table* table, int column, int num_deleted) column_deleted; - extern (C) void function (Table* table) row_reordered; - extern (C) void function (Table* table) column_reordered; - extern (C) void function (Table* table) model_changed; + extern (C) int function (Table* table, int column) nothrow remove_column_selection; + extern (C) void function (Table* table, int row, int num_inserted) nothrow row_inserted; + extern (C) void function (Table* table, int column, int num_inserted) nothrow column_inserted; + extern (C) void function (Table* table, int row, int num_deleted) nothrow row_deleted; + extern (C) void function (Table* table, int column, int num_deleted) nothrow column_deleted; + extern (C) void function (Table* table) nothrow row_reordered; + extern (C) void function (Table* table) nothrow column_reordered; + extern (C) void function (Table* table) nothrow model_changed; Function pad1, pad2, pad3, pad4; } @@ -2300,7 +2347,7 @@ struct Text /* Interface */ { // RETURNS: %TRUE if success, %FALSE otherwise // : the start position of the selected region // : the offset of the first character after the selected region. - int add_selection()(int start_offset, int end_offset) { + int add_selection()(int start_offset, int end_offset) nothrow { return atk_text_add_selection(cast(Text*)&this, start_offset, end_offset); } @@ -2312,26 +2359,26 @@ struct Text /* Interface */ { // : Specify whether coordinates are relative to the screen or widget window. // : Specify the horizontal clip type. // : Specify the vertical clip type. - TextRange** /*new*/ get_bounded_ranges()(TextRectangle* rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type) { + TextRange** /*new*/ get_bounded_ranges()(TextRectangle* rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type) nothrow { return atk_text_get_bounded_ranges(cast(Text*)&this, rect, coord_type, x_clip_type, y_clip_type); } // Gets the offset position of the caret (cursor). // RETURNS: the offset position of the caret (cursor). - int get_caret_offset()() { + int get_caret_offset()() nothrow { return atk_text_get_caret_offset(cast(Text*)&this); } // Gets the specified text. // RETURNS: the character at @offset. // : position - dchar get_character_at_offset()(int offset) { + dchar get_character_at_offset()(int offset) nothrow { return atk_text_get_character_at_offset(cast(Text*)&this, offset); } // Gets the character count. // RETURNS: the number of characters. - int get_character_count()() { + int get_character_count()() nothrow { return atk_text_get_character_count(cast(Text*)&this); } @@ -2343,7 +2390,7 @@ struct Text /* Interface */ { // : Pointer for the width of the bounding box // : Pointer for the height of the bounding box // : specify whether coordinates are relative to the screen or widget window - void get_character_extents()(int offset, int* x, int* y, int* width, int* height, CoordType coords) { + void get_character_extents()(int offset, int* x, int* y, int* width, int* height, CoordType coords) nothrow { atk_text_get_character_extents(cast(Text*)&this, offset, x, y, width, height, coords); } @@ -2354,14 +2401,14 @@ struct Text /* Interface */ { // values of attributes. at @offset. this #atkattributeset should be freed by // a call to atk_attribute_set_free(). // RETURNS: an #AtkAttributeSet which contains the default - AttributeSet* /*new*/ get_default_attributes()() { + AttributeSet* /*new*/ get_default_attributes()() nothrow { return atk_text_get_default_attributes(cast(Text*)&this); } // Gets the number of selected regions. // occurred. // RETURNS: The number of selected regions, or -1 if a failure - int get_n_selections()() { + int get_n_selections()() nothrow { return atk_text_get_n_selections(cast(Text*)&this); } @@ -2373,7 +2420,7 @@ struct Text /* Interface */ { // : screen x-position of character // : screen y-position of character // : specify whether coordinates are relative to the screen or widget window - int get_offset_at_point()(int x, int y, CoordType coords) { + int get_offset_at_point()(int x, int y, CoordType coords) nothrow { return atk_text_get_offset_at_point(cast(Text*)&this, x, y, coords); } @@ -2383,7 +2430,7 @@ struct Text /* Interface */ { // : The offset of the text character after the last character for which boundary information is required. // : Specify whether coordinates are relative to the screen or widget window. // : A pointer to a AtkTextRectangle which is filled in by this function. - void get_range_extents()(int start_offset, int end_offset, CoordType coord_type, TextRectangle* rect) { + void get_range_extents()(int start_offset, int end_offset, CoordType coord_type, TextRectangle* rect) nothrow { atk_text_get_range_extents(cast(Text*)&this, start_offset, end_offset, coord_type, rect); } @@ -2400,7 +2447,7 @@ struct Text /* Interface */ { // : the offset at which to get the attributes, -1 means the offset of the character to be inserted at the caret location. // : the address to put the start offset of the range // : the address to put the end offset of the range - AttributeSet* /*new*/ get_run_attributes()(int offset, int* start_offset, int* end_offset) { + AttributeSet* /*new*/ get_run_attributes()(int offset, int* start_offset, int* end_offset) nothrow { return atk_text_get_run_attributes(cast(Text*)&this, offset, start_offset, end_offset); } @@ -2410,7 +2457,7 @@ struct Text /* Interface */ { // : The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. // : passes back the start position of the selected region // : passes back the end position of (e.g. offset immediately past) the selected region - char* /*new*/ get_selection()(int selection_num, int* start_offset, int* end_offset) { + char* /*new*/ get_selection()(int selection_num, int* start_offset, int* end_offset) nothrow { return atk_text_get_selection(cast(Text*)&this, selection_num, start_offset, end_offset); } @@ -2419,7 +2466,7 @@ struct Text /* Interface */ { // RETURNS: a newly allocated string containing the text from @start_offset up // : start position // : end position - char* /*new*/ get_text()(int start_offset, int end_offset) { + char* /*new*/ get_text()(int start_offset, int end_offset) nothrow { return atk_text_get_text(cast(Text*)&this, start_offset, end_offset); } @@ -2455,7 +2502,7 @@ struct Text /* Interface */ { // : An #AtkTextBoundary // : the start offset of the returned string // : the offset of the first character after the returned substring - char* /*new*/ get_text_after_offset()(int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) { + char* /*new*/ get_text_after_offset()(int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow { return atk_text_get_text_after_offset(cast(Text*)&this, offset, boundary_type, start_offset, end_offset); } @@ -2498,7 +2545,7 @@ struct Text /* Interface */ { // : An #AtkTextBoundary // : the start offset of the returned string // : the offset of the first character after the returned substring - char* /*new*/ get_text_at_offset()(int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) { + char* /*new*/ get_text_at_offset()(int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow { return atk_text_get_text_at_offset(cast(Text*)&this, offset, boundary_type, start_offset, end_offset); } @@ -2539,21 +2586,21 @@ struct Text /* Interface */ { // : An #AtkTextBoundary // : the start offset of the returned string // : the offset of the first character after the returned substring - char* /*new*/ get_text_before_offset()(int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) { + char* /*new*/ get_text_before_offset()(int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow { return atk_text_get_text_before_offset(cast(Text*)&this, offset, boundary_type, start_offset, end_offset); } // Removes the specified selection. // RETURNS: %TRUE if success, %FALSE otherwise // : The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - int remove_selection()(int selection_num) { + int remove_selection()(int selection_num) nothrow { return atk_text_remove_selection(cast(Text*)&this, selection_num); } // Sets the caret (cursor) position to the specified @offset. // RETURNS: %TRUE if success, %FALSE otherwise. // : position - int set_caret_offset()(int offset) { + int set_caret_offset()(int offset) nothrow { return atk_text_set_caret_offset(cast(Text*)&this, offset); } @@ -2562,46 +2609,60 @@ struct Text /* Interface */ { // : The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. // : the new start position of the selection // : the new end position of (e.g. offset immediately past) the selection - int set_selection()(int selection_num, int start_offset, int end_offset) { + int set_selection()(int selection_num, int start_offset, int end_offset) nothrow { return atk_text_set_selection(cast(Text*)&this, selection_num, start_offset, end_offset); } - extern (C) alias static void function (Text* this_, void* user_data=null) signal_text_attributes_changed; + extern (C) alias static void function (Text* this_, void* user_data=null) nothrow signal_text_attributes_changed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_text_attributes_changed)||_ttmm!(CB, signal_text_attributes_changed)()) { 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) { + extern (C) alias static void function (Text* this_, int object, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_text_caret_moved)||_ttmm!(CB, signal_text_caret_moved)()) { 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) { + extern (C) alias static void function (Text* this_, int object, int p0, void* user_data=null) nothrow signal_text_changed; + ulong signal_connect(string name:"text-changed", CB:signal_text_changed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_text_changed)||_ttmm!(CB, signal_text_changed)()) { 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) { + extern (C) alias static void function (Text* this_, int object, int p0, char* p1, void* user_data=null) nothrow signal_text_insert; + ulong signal_connect(string name:"text-insert", CB:signal_text_insert) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_text_insert)||_ttmm!(CB, signal_text_insert)()) { 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) { + extern (C) alias static void function (Text* this_, int object, int p0, char* p1, void* user_data=null) nothrow signal_text_remove; + ulong signal_connect(string name:"text-remove", CB:signal_text_remove) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_text_remove)||_ttmm!(CB, signal_text_remove)()) { 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) { + extern (C) alias static void function (Text* this_, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_text_selection_changed)||_ttmm!(CB, signal_text_selection_changed)()) { 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) { + extern (C) alias static void function (Text* this_, int object, int p0, int p1, char* p2, void* user_data=null) nothrow signal_text_update; + ulong signal_connect(string name:"text-update", CB:signal_text_update) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_text_update)||_ttmm!(CB, signal_text_update)()) { return signal_connect_data!()(&this, cast(char*)"text-update", cast(GObject2.Callback)cb, data, null, cf); } @@ -2661,42 +2722,42 @@ struct TextIface { // RETURNS: a newly allocated string containing the text from @start_offset up // : start position // : end position - extern (C) char* /*new*/ function (Text* text, int start_offset, int end_offset) get_text; + extern (C) char* /*new*/ function (Text* text, int start_offset, int end_offset) nothrow get_text; // RETURNS: a newly allocated string containing the text after @offset bounded // : position // : An #AtkTextBoundary // : the start offset of the returned string // : the offset of the first character after the returned substring - extern (C) char* /*new*/ function (Text* text, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) get_text_after_offset; + extern (C) char* /*new*/ function (Text* text, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow get_text_after_offset; // RETURNS: a newly allocated string containing the text at @offset bounded by // : position // : An #AtkTextBoundary // : the start offset of the returned string // : the offset of the first character after the returned substring - extern (C) char* /*new*/ function (Text* text, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) get_text_at_offset; + extern (C) char* /*new*/ function (Text* text, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow get_text_at_offset; // RETURNS: the character at @offset. // : position - extern (C) dchar function (Text* text, int offset) get_character_at_offset; + extern (C) dchar function (Text* text, int offset) nothrow get_character_at_offset; // RETURNS: a newly allocated string containing the text before @offset bounded // : position // : An #AtkTextBoundary // : the start offset of the returned string // : the offset of the first character after the returned substring - extern (C) char* /*new*/ function (Text* text, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) get_text_before_offset; + extern (C) char* /*new*/ function (Text* text, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow get_text_before_offset; // RETURNS: the offset position of the caret (cursor). - extern (C) int function (Text* text) get_caret_offset; + extern (C) int function (Text* text) nothrow get_caret_offset; // RETURNS: an #AtkAttributeSet which contains the attributes // : the offset at which to get the attributes, -1 means the offset of the character to be inserted at the caret location. // : the address to put the start offset of the range // : the address to put the end offset of the range - extern (C) AttributeSet* /*new*/ function (Text* text, int offset, int* start_offset, int* end_offset) get_run_attributes; + extern (C) AttributeSet* /*new*/ function (Text* text, int offset, int* start_offset, int* end_offset) nothrow get_run_attributes; // RETURNS: an #AtkAttributeSet which contains the default - extern (C) AttributeSet* /*new*/ function (Text* text) get_default_attributes; + extern (C) AttributeSet* /*new*/ function (Text* text) nothrow get_default_attributes; // : The offset of the text character for which bounding information is required. // : Pointer for the x cordinate of the bounding box @@ -2704,53 +2765,53 @@ struct TextIface { // : Pointer for the width of the bounding box // : Pointer for the height of the bounding box // : specify whether coordinates are relative to the screen or widget window - extern (C) void function (Text* text, int offset, int* x, int* y, int* width, int* height, CoordType coords) get_character_extents; + extern (C) void function (Text* text, int offset, int* x, int* y, int* width, int* height, CoordType coords) nothrow get_character_extents; // RETURNS: the number of characters. - extern (C) int function (Text* text) get_character_count; + extern (C) int function (Text* text) nothrow get_character_count; // RETURNS: the offset to the character which is located at // : screen x-position of character // : screen y-position of character // : specify whether coordinates are relative to the screen or widget window - extern (C) int function (Text* text, int x, int y, CoordType coords) get_offset_at_point; + extern (C) int function (Text* text, int x, int y, CoordType coords) nothrow get_offset_at_point; // RETURNS: The number of selected regions, or -1 if a failure - extern (C) int function (Text* text) get_n_selections; + extern (C) int function (Text* text) nothrow get_n_selections; // RETURNS: a newly allocated string containing the selected text. Use g_free() // : The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. // : passes back the start position of the selected region // : passes back the end position of (e.g. offset immediately past) the selected region - extern (C) char* /*new*/ function (Text* text, int selection_num, int* start_offset, int* end_offset) get_selection; + extern (C) char* /*new*/ function (Text* text, int selection_num, int* start_offset, int* end_offset) nothrow get_selection; // RETURNS: %TRUE if success, %FALSE otherwise // : the start position of the selected region // : the offset of the first character after the selected region. - extern (C) int function (Text* text, int start_offset, int end_offset) add_selection; + extern (C) int function (Text* text, int start_offset, int end_offset) nothrow add_selection; // RETURNS: %TRUE if success, %FALSE otherwise // : The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. - extern (C) int function (Text* text, int selection_num) remove_selection; + extern (C) int function (Text* text, int selection_num) nothrow remove_selection; // RETURNS: %TRUE if success, %FALSE otherwise // : The selection number. The selected regions are assigned numbers that correspond to how far the region is from the start of the text. The selected region closest to the beginning of the text region is assigned the number 0, etc. Note that adding, moving or deleting a selected region can change the numbering. // : the new start position of the selection // : the new end position of (e.g. offset immediately past) the selection - extern (C) int function (Text* text, int selection_num, int start_offset, int end_offset) set_selection; + extern (C) int function (Text* text, int selection_num, int start_offset, int end_offset) nothrow set_selection; // RETURNS: %TRUE if success, %FALSE otherwise. // : position - extern (C) int function (Text* text, int offset) set_caret_offset; - extern (C) void function (Text* text, int position, int length) text_changed; - extern (C) void function (Text* text, int location) text_caret_moved; - extern (C) void function (Text* text) text_selection_changed; - extern (C) void function (Text* text) text_attributes_changed; + extern (C) int function (Text* text, int offset) nothrow set_caret_offset; + extern (C) void function (Text* text, int position, int length) nothrow text_changed; + extern (C) void function (Text* text, int location) nothrow text_caret_moved; + extern (C) void function (Text* text) nothrow text_selection_changed; + extern (C) void function (Text* text) nothrow text_attributes_changed; // : 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. // : Specify whether coordinates are relative to the screen or widget window. // : A pointer to a AtkTextRectangle which is filled in by this function. - extern (C) void function (Text* text, int start_offset, int end_offset, CoordType coord_type, TextRectangle* rect) get_range_extents; - extern (C) TextRange** /*new*/ function (Text* text, TextRectangle* rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type) get_bounded_ranges; + extern (C) void function (Text* text, int start_offset, int end_offset, CoordType coord_type, TextRectangle* rect) nothrow get_range_extents; + extern (C) TextRange** /*new*/ function (Text* text, TextRectangle* rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type) nothrow get_bounded_ranges; Function pad4; } @@ -2776,28 +2837,28 @@ struct Util /* : GObject.Object */ { struct UtilClass { GObject2.ObjectClass parent; // Unintrospectable functionp: add_global_event_listener() / () - extern (C) uint function (GObject2.SignalEmissionHook listener, char* event_type) add_global_event_listener; - extern (C) void function (uint listener_id) remove_global_event_listener; + extern (C) uint function (GObject2.SignalEmissionHook listener, char* event_type) nothrow add_global_event_listener; + extern (C) void function (uint listener_id) nothrow remove_global_event_listener; // Unintrospectable functionp: add_key_event_listener() / () - extern (C) uint function (KeySnoopFunc listener, void* data) add_key_event_listener; - extern (C) void function (uint listener_id) remove_key_event_listener; + extern (C) uint function (KeySnoopFunc listener, void* data) nothrow add_key_event_listener; + extern (C) void function (uint listener_id) nothrow remove_key_event_listener; // Unintrospectable functionp: get_root() / () - extern (C) Object* function () get_root; - extern (C) char* function () get_toolkit_name; - extern (C) char* function () get_toolkit_version; + extern (C) Object* function () nothrow get_root; + extern (C) char* function () nothrow get_toolkit_name; + extern (C) char* function () nothrow get_toolkit_version; } struct Value /* Interface */ { mixin template __interface__() { // Gets the value of this object. // : a #GValue representing the current accessible value - void get_current_value()(GObject2.Value* value) { + void get_current_value()(GObject2.Value* value) nothrow { atk_value_get_current_value(cast(Value*)&this, value); } // Gets the maximum value of this object. // : a #GValue representing the maximum accessible value - void get_maximum_value()(GObject2.Value* value) { + void get_maximum_value()(GObject2.Value* value) nothrow { atk_value_get_maximum_value(cast(Value*)&this, value); } @@ -2806,20 +2867,20 @@ struct Value /* Interface */ { // the minimum increment is undefined, which may mean that it is limited only by the // floating point precision of the platform. // : a #GValue representing the minimum increment by which the accessible value may be changed - void get_minimum_increment()(GObject2.Value* value) { + void get_minimum_increment()(GObject2.Value* value) nothrow { atk_value_get_minimum_increment(cast(Value*)&this, value); } // Gets the minimum value of this object. // : a #GValue representing the minimum accessible value - void get_minimum_value()(GObject2.Value* value) { + void get_minimum_value()(GObject2.Value* value) nothrow { atk_value_get_minimum_value(cast(Value*)&this, value); } // Sets the value of this object. // RETURNS: %TRUE if new value is successfully set, %FALSE otherwise. // : a #GValue which is the desired new accessible value. - int set_current_value()(GObject2.Value* value) { + int set_current_value()(GObject2.Value* value) nothrow { return atk_value_set_current_value(cast(Value*)&this, value); } } @@ -2829,68 +2890,86 @@ struct Value /* Interface */ { struct ValueIface { GObject2.TypeInterface parent; // : a #GValue representing the current accessible value - extern (C) void function (Value* obj, GObject2.Value* value) get_current_value; + extern (C) void function (Value* obj, GObject2.Value* value) nothrow get_current_value; // : a #GValue representing the maximum accessible value - extern (C) void function (Value* obj, GObject2.Value* value) get_maximum_value; + extern (C) void function (Value* obj, GObject2.Value* value) nothrow get_maximum_value; // : a #GValue representing the minimum accessible value - extern (C) void function (Value* obj, GObject2.Value* value) get_minimum_value; + extern (C) void function (Value* obj, GObject2.Value* value) nothrow get_minimum_value; // RETURNS: %TRUE if new value is successfully set, %FALSE otherwise. // : a #GValue which is the desired new accessible value. - extern (C) int function (Value* obj, GObject2.Value* value) set_current_value; + extern (C) int function (Value* obj, GObject2.Value* value) nothrow set_current_value; // : a #GValue representing the minimum increment by which the accessible value may be changed - extern (C) void function (Value* obj, GObject2.Value* value) get_minimum_increment; + extern (C) void function (Value* obj, GObject2.Value* value) nothrow get_minimum_increment; Function pad1; } struct Window /* Interface */ { - mixin template __interface__() { extern (C) alias static void function (Window* this_, void* user_data=null) signal_activate; + mixin template __interface__() { extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_activate; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_activate)||_ttmm!(CB, signal_activate)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_create; + ulong signal_connect(string name:"create", CB:signal_create) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_create)||_ttmm!(CB, signal_create)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_deactivate; + ulong signal_connect(string name:"deactivate", CB:signal_deactivate) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_deactivate)||_ttmm!(CB, signal_deactivate)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_destroy; + ulong signal_connect(string name:"destroy", CB:signal_destroy) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_destroy)||_ttmm!(CB, signal_destroy)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_maximize; + ulong signal_connect(string name:"maximize", CB:signal_maximize) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_maximize)||_ttmm!(CB, signal_maximize)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_minimize; + ulong signal_connect(string name:"minimize", CB:signal_minimize) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_minimize)||_ttmm!(CB, signal_minimize)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_move; + ulong signal_connect(string name:"move", CB:signal_move) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_move)||_ttmm!(CB, signal_move)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_resize; + ulong signal_connect(string name:"resize", CB:signal_resize) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_resize)||_ttmm!(CB, signal_resize)()) { 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) { + extern (C) alias static void function (Window* this_, void* user_data=null) nothrow signal_restore; + ulong signal_connect(string name:"restore", CB:signal_restore) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_restore)||_ttmm!(CB, signal_restore)()) { return signal_connect_data!()(&this, cast(char*)"restore", cast(GObject2.Callback)cb, data, null, cf); } @@ -2923,7 +3002,7 @@ struct _RegistryClass { // when an object receives focus. // RETURNS: added focus tracker id, or 0 on failure. // : Function to be added to the list of functions to be called when an object receives focus. -static uint add_focus_tracker()(EventListener focus_tracker) { +static uint add_focus_tracker()(EventListener focus_tracker) nothrow { return atk_add_focus_tracker(focus_tracker); } @@ -2942,7 +3021,7 @@ static uint add_focus_tracker()(EventListener focus_tracker) { // RETURNS: added event listener id, or 0 on failure. // : the listener to notify // : the type of event for which notification is requested -static uint add_global_event_listener()(GObject2.SignalEmissionHook listener, char* event_type) { +static uint add_global_event_listener()(GObject2.SignalEmissionHook listener, char* event_type) nothrow { return atk_add_global_event_listener(listener, event_type); } @@ -2954,7 +3033,7 @@ static uint add_global_event_listener()(GObject2.SignalEmissionHook listener, ch // RETURNS: added event listener id, or 0 on failure. // : the listener to notify // : a #gpointer that points to a block of data that should be sent to the registered listeners, along with the event notification, when it occurs. -static uint add_key_event_listener()(KeySnoopFunc listener, void* data) { +static uint add_key_event_listener()(KeySnoopFunc listener, void* data) nothrow { return atk_add_key_event_listener(listener, data); } @@ -2962,7 +3041,7 @@ static uint add_key_event_listener()(KeySnoopFunc listener, void* data) { // Frees the memory used by an #AtkAttributeSet, including all its // #AtkAttributes. // : The #AtkAttributeSet to free -static void attribute_set_free()(AttributeSet* attrib_set) { +static void attribute_set_free()(AttributeSet* attrib_set) nothrow { atk_attribute_set_free(attrib_set); } @@ -2973,7 +3052,7 @@ static void attribute_set_free()(AttributeSet* attrib_set) { // ATK interface if any specific work needs to be done to enable // focus tracking. // : Function to be called for focus tracker initialization -static void focus_tracker_init()(EventListenerInit init) { +static void focus_tracker_init()(EventListenerInit init) nothrow { atk_focus_tracker_init(init); } @@ -2981,7 +3060,7 @@ static void focus_tracker_init()(EventListenerInit init) { // Cause the focus tracker functions which have been specified to be // executed for the object. // : an #AtkObject -static void focus_tracker_notify()(Object* object) { +static void focus_tracker_notify()(Object* object) nothrow { atk_focus_tracker_notify(object); } @@ -2994,7 +3073,7 @@ static void focus_tracker_notify()(Object* object) { // for whom accessibility information will be provided. // #AtkObjectFactory/type registry // RETURNS: a default implementation of the -static Registry* /*new*/ get_default_registry()() { +static Registry* /*new*/ get_default_registry()() nothrow { return atk_get_default_registry(); } @@ -3003,7 +3082,7 @@ static Registry* /*new*/ get_default_registry()() { // Gets the currently focused object. // application // RETURNS: the currently focused object for the current -static Object* get_focus_object()() { +static Object* get_focus_object()() nothrow { return atk_get_focus_object(); } @@ -3011,21 +3090,21 @@ static Object* get_focus_object()() { // Gets the root accessible container for the current application. // application // RETURNS: the root accessible container for the current -static Object* get_root()() { +static Object* get_root()() nothrow { return atk_get_root(); } // Gets name string for the GUI toolkit implementing ATK for this application. // RETURNS: name string for the GUI toolkit implementing ATK for this application -static char* get_toolkit_name()() { +static char* get_toolkit_name()() nothrow { return atk_get_toolkit_name(); } // Gets version string for the GUI toolkit implementing ATK for this application. // RETURNS: version string for the GUI toolkit implementing ATK for this application -static char* get_toolkit_version()() { +static char* get_toolkit_version()() nothrow { return atk_get_toolkit_version(); } @@ -3033,7 +3112,7 @@ static char* get_toolkit_version()() { // VERSION: 1.20 // Gets the current version for ATK. // RETURNS: version string for ATK -static char* get_version()() { +static char* get_version()() nothrow { return atk_get_version(); } @@ -3042,7 +3121,7 @@ static char* get_version()() { // or #ATK_RELATION_NULL if no matching relation type is found. // RETURNS: the #AtkRelationType enumerated type corresponding to the specified name, // : a string which is the (non-localized) name of an ATK relation type. -static RelationType relation_type_for_name()(char* name) { +static RelationType relation_type_for_name()(char* name) nothrow { return atk_relation_type_for_name(name); } @@ -3050,7 +3129,7 @@ static RelationType relation_type_for_name()(char* name) { // Gets the description string describing the #AtkRelationType @type. // RETURNS: the string describing the AtkRelationType // : The #AtkRelationType whose name is required -static char* relation_type_get_name()(RelationType type) { +static char* relation_type_get_name()(RelationType type) nothrow { return atk_relation_type_get_name(type); } @@ -3058,7 +3137,7 @@ static char* relation_type_get_name()(RelationType type) { // Associate @name with a new #AtkRelationType // RETURNS: an #AtkRelationType associated with @name // : a name string -static RelationType relation_type_register()(char* name) { +static RelationType relation_type_register()(char* name) nothrow { return atk_relation_type_register(name); } @@ -3066,21 +3145,21 @@ static RelationType relation_type_register()(char* name) { // Removes the specified focus tracker from the list of functions // to be called when any object receives focus. // : the id of the focus tracker to remove -static void remove_focus_tracker()(uint tracker_id) { +static void remove_focus_tracker()(uint tracker_id) nothrow { atk_remove_focus_tracker(tracker_id); } // Removes the specified event listener // : the id of the event listener to remove -static void remove_global_event_listener()(uint listener_id) { +static void remove_global_event_listener()(uint listener_id) nothrow { atk_remove_global_event_listener(listener_id); } // Removes the specified event listener // : the id of the event listener to remove -static void remove_key_event_listener()(uint listener_id) { +static void remove_key_event_listener()(uint listener_id) nothrow { atk_remove_key_event_listener(listener_id); } @@ -3089,7 +3168,7 @@ static void remove_key_event_listener()(uint listener_id) { // or #ATK_ROLE_INVALID if no matching role is found. // RETURNS: the #AtkRole enumerated type corresponding to the specified // : a string which is the (non-localized) name of an ATK role. -static Role role_for_name()(char* name) { +static Role role_for_name()(char* name) nothrow { return atk_role_for_name(name); } @@ -3097,7 +3176,7 @@ static Role role_for_name()(char* name) { // Gets the localized description string describing the #AtkRole @role. // RETURNS: the localized string describing the AtkRole // : The #AtkRole whose localized name is required -static char* role_get_localized_name()(Role role) { +static char* role_get_localized_name()(Role role) nothrow { return atk_role_get_localized_name(role); } @@ -3105,7 +3184,7 @@ static char* role_get_localized_name()(Role role) { // Gets the description string describing the #AtkRole @role. // RETURNS: the string describing the AtkRole // : The #AtkRole whose name is required -static char* role_get_name()(Role role) { +static char* role_get_name()(Role role) nothrow { return atk_role_get_name(role); } @@ -3113,7 +3192,7 @@ static char* role_get_name()(Role role) { // Registers the role specified by @name. // RETURNS: an #AtkRole for the new role. // : a character string describing the new role. -static Role role_register()(char* name) { +static Role role_register()(char* name) nothrow { return atk_role_register(name); } @@ -3121,7 +3200,7 @@ static Role role_register()(char* name) { // Gets the #AtkStateType corresponding to the description string @name. // RETURNS: an #AtkStateType corresponding to @name // : a character string state name -static StateType state_type_for_name()(char* name) { +static StateType state_type_for_name()(char* name) nothrow { return atk_state_type_for_name(name); } @@ -3129,7 +3208,7 @@ static StateType state_type_for_name()(char* name) { // Gets the description string describing the #AtkStateType @type. // RETURNS: the string describing the AtkStateType // : The #AtkStateType whose name is required -static char* state_type_get_name()(StateType type) { +static char* state_type_get_name()(StateType type) nothrow { return atk_state_type_get_name(type); } @@ -3137,7 +3216,7 @@ static char* state_type_get_name()(StateType type) { // Register a new object state. // RETURNS: an #AtkState value for the new state. // : a character string describing the new state. -static StateType state_type_register()(char* name) { +static StateType state_type_register()(char* name) nothrow { return atk_state_type_register(name); } @@ -3146,7 +3225,7 @@ static StateType state_type_register()(char* name) { // or #ATK_TEXT_ATTRIBUTE_INVALID if no matching text attribute is found. // RETURNS: the #AtkTextAttribute enumerated type corresponding to the specified // : a string which is the (non-localized) name of an ATK text attribute. -static TextAttribute text_attribute_for_name()(char* name) { +static TextAttribute text_attribute_for_name()(char* name) nothrow { return atk_text_attribute_for_name(name); } @@ -3154,7 +3233,7 @@ static TextAttribute text_attribute_for_name()(char* name) { // Gets the name corresponding to the #AtkTextAttribute // RETURNS: a string containing the name; this string should not be freed // : The #AtkTextAttribute whose name is required -static char* text_attribute_get_name()(TextAttribute attr) { +static char* text_attribute_get_name()(TextAttribute attr) nothrow { return atk_text_attribute_get_name(attr); } @@ -3164,7 +3243,7 @@ static char* text_attribute_get_name()(TextAttribute attr) { // RETURNS: a string containing the value; this string should not be freed; // : The #AtkTextAttribute for which a value is required // : The index of the required value -static char* text_attribute_get_value()(TextAttribute attr, int index_) { +static char* text_attribute_get_value()(TextAttribute attr, int index_) nothrow { return atk_text_attribute_get_value(attr, index_); } @@ -3172,7 +3251,7 @@ static char* text_attribute_get_value()(TextAttribute attr, int index_) { // Associate @name with a new #AtkTextAttribute // RETURNS: an #AtkTextAttribute associated with @name // : a name string -static TextAttribute text_attribute_register()(char* name) { +static TextAttribute text_attribute_register()(char* name) nothrow { return atk_text_attribute_register(name); } @@ -3182,7 +3261,7 @@ static TextAttribute text_attribute_register()(char* name) { // that the array was returned by the function atk_text_get_bounded_ranges // and is NULL terminated. // : A pointer to an array of #AtkTextRange which is to be freed. -static void text_free_ranges()(TextRange** ranges) { +static void text_free_ranges()(TextRange** ranges) nothrow { atk_text_free_ranges(ranges); } @@ -3190,211 +3269,211 @@ static void text_free_ranges()(TextRange** ranges) { // C prototypes: extern (C) { -int atk_action_do_action(Action* this_, int i); -char* atk_action_get_description(Action* this_, int i); -char* atk_action_get_keybinding(Action* this_, int i); -char* atk_action_get_localized_name(Action* this_, int i); -int atk_action_get_n_actions(Action* this_); -char* atk_action_get_name(Action* this_, int i); -int atk_action_set_description(Action* this_, int i, char* desc); -uint atk_component_add_focus_handler(Component* this_, FocusHandler handler); -int atk_component_contains(Component* this_, int x, int y, CoordType coord_type); -double atk_component_get_alpha(Component* this_); -void atk_component_get_extents(Component* this_, int* x, int* y, int* width, int* height, CoordType coord_type); -Layer atk_component_get_layer(Component* this_); -int atk_component_get_mdi_zorder(Component* this_); -void atk_component_get_position(Component* this_, int* x, int* y, CoordType coord_type); -void atk_component_get_size(Component* this_, int* width, int* height); -int atk_component_grab_focus(Component* this_); -Object* /*new*/ atk_component_ref_accessible_at_point(Component* this_, int x, int y, CoordType coord_type); -void atk_component_remove_focus_handler(Component* this_, uint handler_id); -int atk_component_set_extents(Component* this_, int x, int y, int width, int height, CoordType coord_type); -int atk_component_set_position(Component* this_, int x, int y, CoordType coord_type); -int atk_component_set_size(Component* this_, int width, int height); -char* atk_document_get_attribute_value(Document* this_, char* attribute_name); -AttributeSet* atk_document_get_attributes(Document* this_); -void* atk_document_get_document(Document* this_); -char* atk_document_get_document_type(Document* this_); -char* atk_document_get_locale(Document* this_); -int atk_document_set_attribute_value(Document* this_, char* attribute_name, char* attribute_value); -void atk_editable_text_copy_text(EditableText* this_, int start_pos, int end_pos); -void atk_editable_text_cut_text(EditableText* this_, int start_pos, int end_pos); -void atk_editable_text_delete_text(EditableText* this_, int start_pos, int end_pos); -void atk_editable_text_insert_text(EditableText* this_, char* string_, int length, int* position); -void atk_editable_text_paste_text(EditableText* this_, int position); -int atk_editable_text_set_run_attributes(EditableText* this_, AttributeSet* attrib_set, int start_offset, int end_offset); -void atk_editable_text_set_text_contents(EditableText* this_, char* string_); -Object* atk_gobject_accessible_for_object(GObject2.Object* obj); -GObject2.Object* atk_gobject_accessible_get_object(GObjectAccessible* this_); -int atk_hyperlink_get_end_index(Hyperlink* this_); -int atk_hyperlink_get_n_anchors(Hyperlink* this_); -Object* atk_hyperlink_get_object(Hyperlink* this_, int i); -int atk_hyperlink_get_start_index(Hyperlink* this_); -char* /*new*/ atk_hyperlink_get_uri(Hyperlink* this_, int i); -int atk_hyperlink_is_inline(Hyperlink* this_); -int atk_hyperlink_is_valid(Hyperlink* this_); -Hyperlink* /*new*/ atk_hyperlink_impl_get_hyperlink(HyperlinkImpl* this_); -Hyperlink* atk_hypertext_get_link(Hypertext* this_, int link_index); -int atk_hypertext_get_link_index(Hypertext* this_, int char_index); -int atk_hypertext_get_n_links(Hypertext* this_); -char* atk_image_get_image_description(Image* this_); -char* atk_image_get_image_locale(Image* this_); -void atk_image_get_image_position(Image* this_, int* x, int* y, CoordType coord_type); -void atk_image_get_image_size(Image* this_, int* width, int* height); -int atk_image_set_image_description(Image* this_, char* description); -Object* /*new*/ atk_implementor_ref_accessible(Implementor* this_); -Misc* atk_misc_get_instance(); -void atk_misc_threads_enter(Misc* this_); -void atk_misc_threads_leave(Misc* this_); -NoOpObject* /*new*/ atk_no_op_object_new(GObject2.Object* obj); -NoOpObjectFactory* /*new*/ atk_no_op_object_factory_new(); -int atk_object_add_relationship(Object* this_, RelationType relationship, Object* target); -uint atk_object_connect_property_change_handler(Object* this_, PropertyChangeHandler* handler); -AttributeSet* atk_object_get_attributes(Object* this_); -char* atk_object_get_description(Object* this_); -int atk_object_get_index_in_parent(Object* this_); -int atk_object_get_n_accessible_children(Object* this_); -char* atk_object_get_name(Object* this_); -Object* atk_object_get_parent(Object* this_); -Role atk_object_get_role(Object* this_); -void atk_object_initialize(Object* this_, void* data); -void atk_object_notify_state_change(Object* this_, State state, int value); -Object* /*new*/ atk_object_ref_accessible_child(Object* this_, int i); -RelationSet* /*new*/ atk_object_ref_relation_set(Object* this_); -StateSet* /*new*/ atk_object_ref_state_set(Object* this_); -void atk_object_remove_property_change_handler(Object* this_, uint handler_id); -int atk_object_remove_relationship(Object* this_, RelationType relationship, Object* target); -void atk_object_set_description(Object* this_, char* description); -void atk_object_set_name(Object* this_, char* name); -void atk_object_set_parent(Object* this_, Object* parent); -void atk_object_set_role(Object* this_, Role role); -Object* /*new*/ atk_object_factory_create_accessible(ObjectFactory* this_, GObject2.Object* obj); -Type atk_object_factory_get_accessible_type(ObjectFactory* this_); -void atk_object_factory_invalidate(ObjectFactory* this_); -Plug* /*new*/ atk_plug_new(); -char* /*new*/ atk_plug_get_id(Plug* this_); -ObjectFactory* atk_registry_get_factory(Registry* this_, Type type); -Type atk_registry_get_factory_type(Registry* this_, Type type); -void atk_registry_set_factory_type(Registry* this_, Type type, Type factory_type); -Relation* /*new*/ atk_relation_new(Object** targets, int n_targets, RelationType relationship); -void atk_relation_add_target(Relation* this_, Object* target); -RelationType atk_relation_get_relation_type(Relation* this_); -PtrArray* atk_relation_get_target(Relation* this_); -int atk_relation_remove_target(Relation* this_, Object* target); -RelationSet* /*new*/ atk_relation_set_new(); -void atk_relation_set_add(RelationSet* this_, Relation* relation); -void atk_relation_set_add_relation_by_type(RelationSet* this_, RelationType relationship, Object* target); -int atk_relation_set_contains(RelationSet* this_, RelationType relationship); -int atk_relation_set_get_n_relations(RelationSet* this_); -Relation* atk_relation_set_get_relation(RelationSet* this_, int i); -Relation* atk_relation_set_get_relation_by_type(RelationSet* this_, RelationType relationship); -void atk_relation_set_remove(RelationSet* this_, Relation* relation); -int atk_selection_add_selection(Selection* this_, int i); -int atk_selection_clear_selection(Selection* this_); -int atk_selection_get_selection_count(Selection* this_); -int atk_selection_is_child_selected(Selection* this_, int i); -Object* /*new*/ atk_selection_ref_selection(Selection* this_, int i); -int atk_selection_remove_selection(Selection* this_, int i); -int atk_selection_select_all_selection(Selection* this_); -Socket* /*new*/ atk_socket_new(); -void atk_socket_embed(Socket* this_, char* plug_id); -int atk_socket_is_occupied(Socket* this_); -StateSet* /*new*/ atk_state_set_new(); -int atk_state_set_add_state(StateSet* this_, StateType type); -void atk_state_set_add_states(StateSet* this_, StateType* types, int n_types); -StateSet* /*new*/ atk_state_set_and_sets(StateSet* this_, StateSet* compare_set); -void atk_state_set_clear_states(StateSet* this_); -int atk_state_set_contains_state(StateSet* this_, StateType type); -int atk_state_set_contains_states(StateSet* this_, StateType* types, int n_types); -int atk_state_set_is_empty(StateSet* this_); -StateSet* /*new*/ atk_state_set_or_sets(StateSet* this_, StateSet* compare_set); -int atk_state_set_remove_state(StateSet* this_, StateType type); -StateSet* /*new*/ atk_state_set_xor_sets(StateSet* this_, StateSet* compare_set); -char* atk_streamable_content_get_mime_type(StreamableContent* this_, int i); -int atk_streamable_content_get_n_mime_types(StreamableContent* this_); -GLib2.IOChannel* /*new*/ atk_streamable_content_get_stream(StreamableContent* this_, char* mime_type); -char* atk_streamable_content_get_uri(StreamableContent* this_, char* mime_type); -int atk_table_add_column_selection(Table* this_, int column); -int atk_table_add_row_selection(Table* this_, int row); -Object* atk_table_get_caption(Table* this_); -int atk_table_get_column_at_index(Table* this_, int index_); -char* atk_table_get_column_description(Table* this_, int column); -int atk_table_get_column_extent_at(Table* this_, int row, int column); -Object* atk_table_get_column_header(Table* this_, int column); -int atk_table_get_index_at(Table* this_, int row, int column); -int atk_table_get_n_columns(Table* this_); -int atk_table_get_n_rows(Table* this_); -int atk_table_get_row_at_index(Table* this_, int index_); -char* atk_table_get_row_description(Table* this_, int row); -int atk_table_get_row_extent_at(Table* this_, int row, int column); -Object* atk_table_get_row_header(Table* this_, int row); -int atk_table_get_selected_columns(Table* this_, int** selected); -int atk_table_get_selected_rows(Table* this_, int** selected); -Object* /*new*/ atk_table_get_summary(Table* this_); -int atk_table_is_column_selected(Table* this_, int column); -int atk_table_is_row_selected(Table* this_, int row); -int atk_table_is_selected(Table* this_, int row, int column); -Object* /*new*/ atk_table_ref_at(Table* this_, int row, int column); -int atk_table_remove_column_selection(Table* this_, int column); -int atk_table_remove_row_selection(Table* this_, int row); -void atk_table_set_caption(Table* this_, Object* caption); -void atk_table_set_column_description(Table* this_, int column, char* description); -void atk_table_set_column_header(Table* this_, int column, Object* header); -void atk_table_set_row_description(Table* this_, int row, char* description); -void atk_table_set_row_header(Table* this_, int row, Object* header); -void atk_table_set_summary(Table* this_, Object* accessible); -int atk_text_add_selection(Text* this_, int start_offset, int end_offset); -TextRange** /*new*/ atk_text_get_bounded_ranges(Text* this_, TextRectangle* rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type); -int atk_text_get_caret_offset(Text* this_); -dchar atk_text_get_character_at_offset(Text* this_, int offset); -int atk_text_get_character_count(Text* this_); -void atk_text_get_character_extents(Text* this_, int offset, int* x, int* y, int* width, int* height, CoordType coords); -AttributeSet* /*new*/ atk_text_get_default_attributes(Text* this_); -int atk_text_get_n_selections(Text* this_); -int atk_text_get_offset_at_point(Text* this_, int x, int y, CoordType coords); -void atk_text_get_range_extents(Text* this_, int start_offset, int end_offset, CoordType coord_type, TextRectangle* rect); -AttributeSet* /*new*/ atk_text_get_run_attributes(Text* this_, int offset, int* start_offset, int* end_offset); -char* /*new*/ atk_text_get_selection(Text* this_, int selection_num, int* start_offset, int* end_offset); -char* /*new*/ atk_text_get_text(Text* this_, int start_offset, int end_offset); -char* /*new*/ atk_text_get_text_after_offset(Text* this_, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset); -char* /*new*/ atk_text_get_text_at_offset(Text* this_, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset); -char* /*new*/ atk_text_get_text_before_offset(Text* this_, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset); -int atk_text_remove_selection(Text* this_, int selection_num); -int atk_text_set_caret_offset(Text* this_, int offset); -int atk_text_set_selection(Text* this_, int selection_num, int start_offset, int end_offset); -void atk_value_get_current_value(Value* this_, GObject2.Value* value); -void atk_value_get_maximum_value(Value* this_, GObject2.Value* value); -void atk_value_get_minimum_increment(Value* this_, GObject2.Value* value); -void atk_value_get_minimum_value(Value* this_, GObject2.Value* value); -int atk_value_set_current_value(Value* this_, GObject2.Value* value); -uint atk_add_focus_tracker(EventListener focus_tracker); -uint atk_add_global_event_listener(GObject2.SignalEmissionHook listener, char* event_type); -uint atk_add_key_event_listener(KeySnoopFunc listener, void* data); -void atk_attribute_set_free(AttributeSet* attrib_set); -void atk_focus_tracker_init(EventListenerInit init); -void atk_focus_tracker_notify(Object* object); -Registry* /*new*/ atk_get_default_registry(); -Object* atk_get_focus_object(); -Object* atk_get_root(); -char* atk_get_toolkit_name(); -char* atk_get_toolkit_version(); -char* atk_get_version(); -RelationType atk_relation_type_for_name(char* name); -char* atk_relation_type_get_name(RelationType type); -RelationType atk_relation_type_register(char* name); -void atk_remove_focus_tracker(uint tracker_id); -void atk_remove_global_event_listener(uint listener_id); -void atk_remove_key_event_listener(uint listener_id); -Role atk_role_for_name(char* name); -char* atk_role_get_localized_name(Role role); -char* atk_role_get_name(Role role); -Role atk_role_register(char* name); -StateType atk_state_type_for_name(char* name); -char* atk_state_type_get_name(StateType type); -StateType atk_state_type_register(char* name); -TextAttribute atk_text_attribute_for_name(char* name); -char* atk_text_attribute_get_name(TextAttribute attr); -char* atk_text_attribute_get_value(TextAttribute attr, int index_); -TextAttribute atk_text_attribute_register(char* name); -void atk_text_free_ranges(TextRange** ranges); +int atk_action_do_action(Action* this_, int i) nothrow; +char* atk_action_get_description(Action* this_, int i) nothrow; +char* atk_action_get_keybinding(Action* this_, int i) nothrow; +char* atk_action_get_localized_name(Action* this_, int i) nothrow; +int atk_action_get_n_actions(Action* this_) nothrow; +char* atk_action_get_name(Action* this_, int i) nothrow; +int atk_action_set_description(Action* this_, int i, char* desc) nothrow; +uint atk_component_add_focus_handler(Component* this_, FocusHandler handler) nothrow; +int atk_component_contains(Component* this_, int x, int y, CoordType coord_type) nothrow; +double atk_component_get_alpha(Component* this_) nothrow; +void atk_component_get_extents(Component* this_, int* x, int* y, int* width, int* height, CoordType coord_type) nothrow; +Layer atk_component_get_layer(Component* this_) nothrow; +int atk_component_get_mdi_zorder(Component* this_) nothrow; +void atk_component_get_position(Component* this_, int* x, int* y, CoordType coord_type) nothrow; +void atk_component_get_size(Component* this_, int* width, int* height) nothrow; +int atk_component_grab_focus(Component* this_) nothrow; +Object* /*new*/ atk_component_ref_accessible_at_point(Component* this_, int x, int y, CoordType coord_type) nothrow; +void atk_component_remove_focus_handler(Component* this_, uint handler_id) nothrow; +int atk_component_set_extents(Component* this_, int x, int y, int width, int height, CoordType coord_type) nothrow; +int atk_component_set_position(Component* this_, int x, int y, CoordType coord_type) nothrow; +int atk_component_set_size(Component* this_, int width, int height) nothrow; +char* atk_document_get_attribute_value(Document* this_, char* attribute_name) nothrow; +AttributeSet* atk_document_get_attributes(Document* this_) nothrow; +void* atk_document_get_document(Document* this_) nothrow; +char* atk_document_get_document_type(Document* this_) nothrow; +char* atk_document_get_locale(Document* this_) nothrow; +int atk_document_set_attribute_value(Document* this_, char* attribute_name, char* attribute_value) nothrow; +void atk_editable_text_copy_text(EditableText* this_, int start_pos, int end_pos) nothrow; +void atk_editable_text_cut_text(EditableText* this_, int start_pos, int end_pos) nothrow; +void atk_editable_text_delete_text(EditableText* this_, int start_pos, int end_pos) nothrow; +void atk_editable_text_insert_text(EditableText* this_, char* string_, int length, int* position) nothrow; +void atk_editable_text_paste_text(EditableText* this_, int position) nothrow; +int atk_editable_text_set_run_attributes(EditableText* this_, AttributeSet* attrib_set, int start_offset, int end_offset) nothrow; +void atk_editable_text_set_text_contents(EditableText* this_, char* string_) nothrow; +Object* atk_gobject_accessible_for_object(GObject2.Object* obj) nothrow; +GObject2.Object* atk_gobject_accessible_get_object(GObjectAccessible* this_) nothrow; +int atk_hyperlink_get_end_index(Hyperlink* this_) nothrow; +int atk_hyperlink_get_n_anchors(Hyperlink* this_) nothrow; +Object* atk_hyperlink_get_object(Hyperlink* this_, int i) nothrow; +int atk_hyperlink_get_start_index(Hyperlink* this_) nothrow; +char* /*new*/ atk_hyperlink_get_uri(Hyperlink* this_, int i) nothrow; +int atk_hyperlink_is_inline(Hyperlink* this_) nothrow; +int atk_hyperlink_is_valid(Hyperlink* this_) nothrow; +Hyperlink* /*new*/ atk_hyperlink_impl_get_hyperlink(HyperlinkImpl* this_) nothrow; +Hyperlink* atk_hypertext_get_link(Hypertext* this_, int link_index) nothrow; +int atk_hypertext_get_link_index(Hypertext* this_, int char_index) nothrow; +int atk_hypertext_get_n_links(Hypertext* this_) nothrow; +char* atk_image_get_image_description(Image* this_) nothrow; +char* atk_image_get_image_locale(Image* this_) nothrow; +void atk_image_get_image_position(Image* this_, int* x, int* y, CoordType coord_type) nothrow; +void atk_image_get_image_size(Image* this_, int* width, int* height) nothrow; +int atk_image_set_image_description(Image* this_, char* description) nothrow; +Object* /*new*/ atk_implementor_ref_accessible(Implementor* this_) nothrow; +Misc* atk_misc_get_instance() nothrow; +void atk_misc_threads_enter(Misc* this_) nothrow; +void atk_misc_threads_leave(Misc* this_) nothrow; +NoOpObject* /*new*/ atk_no_op_object_new(GObject2.Object* obj) nothrow; +NoOpObjectFactory* /*new*/ atk_no_op_object_factory_new() nothrow; +int atk_object_add_relationship(Object* this_, RelationType relationship, Object* target) nothrow; +uint atk_object_connect_property_change_handler(Object* this_, PropertyChangeHandler* handler) nothrow; +AttributeSet* atk_object_get_attributes(Object* this_) nothrow; +char* atk_object_get_description(Object* this_) nothrow; +int atk_object_get_index_in_parent(Object* this_) nothrow; +int atk_object_get_n_accessible_children(Object* this_) nothrow; +char* atk_object_get_name(Object* this_) nothrow; +Object* atk_object_get_parent(Object* this_) nothrow; +Role atk_object_get_role(Object* this_) nothrow; +void atk_object_initialize(Object* this_, void* data) nothrow; +void atk_object_notify_state_change(Object* this_, State state, int value) nothrow; +Object* /*new*/ atk_object_ref_accessible_child(Object* this_, int i) nothrow; +RelationSet* /*new*/ atk_object_ref_relation_set(Object* this_) nothrow; +StateSet* /*new*/ atk_object_ref_state_set(Object* this_) nothrow; +void atk_object_remove_property_change_handler(Object* this_, uint handler_id) nothrow; +int atk_object_remove_relationship(Object* this_, RelationType relationship, Object* target) nothrow; +void atk_object_set_description(Object* this_, char* description) nothrow; +void atk_object_set_name(Object* this_, char* name) nothrow; +void atk_object_set_parent(Object* this_, Object* parent) nothrow; +void atk_object_set_role(Object* this_, Role role) nothrow; +Object* /*new*/ atk_object_factory_create_accessible(ObjectFactory* this_, GObject2.Object* obj) nothrow; +Type atk_object_factory_get_accessible_type(ObjectFactory* this_) nothrow; +void atk_object_factory_invalidate(ObjectFactory* this_) nothrow; +Plug* /*new*/ atk_plug_new() nothrow; +char* /*new*/ atk_plug_get_id(Plug* this_) nothrow; +ObjectFactory* atk_registry_get_factory(Registry* this_, Type type) nothrow; +Type atk_registry_get_factory_type(Registry* this_, Type type) nothrow; +void atk_registry_set_factory_type(Registry* this_, Type type, Type factory_type) nothrow; +Relation* /*new*/ atk_relation_new(Object** targets, int n_targets, RelationType relationship) nothrow; +void atk_relation_add_target(Relation* this_, Object* target) nothrow; +RelationType atk_relation_get_relation_type(Relation* this_) nothrow; +PtrArray* atk_relation_get_target(Relation* this_) nothrow; +int atk_relation_remove_target(Relation* this_, Object* target) nothrow; +RelationSet* /*new*/ atk_relation_set_new() nothrow; +void atk_relation_set_add(RelationSet* this_, Relation* relation) nothrow; +void atk_relation_set_add_relation_by_type(RelationSet* this_, RelationType relationship, Object* target) nothrow; +int atk_relation_set_contains(RelationSet* this_, RelationType relationship) nothrow; +int atk_relation_set_get_n_relations(RelationSet* this_) nothrow; +Relation* atk_relation_set_get_relation(RelationSet* this_, int i) nothrow; +Relation* atk_relation_set_get_relation_by_type(RelationSet* this_, RelationType relationship) nothrow; +void atk_relation_set_remove(RelationSet* this_, Relation* relation) nothrow; +int atk_selection_add_selection(Selection* this_, int i) nothrow; +int atk_selection_clear_selection(Selection* this_) nothrow; +int atk_selection_get_selection_count(Selection* this_) nothrow; +int atk_selection_is_child_selected(Selection* this_, int i) nothrow; +Object* /*new*/ atk_selection_ref_selection(Selection* this_, int i) nothrow; +int atk_selection_remove_selection(Selection* this_, int i) nothrow; +int atk_selection_select_all_selection(Selection* this_) nothrow; +Socket* /*new*/ atk_socket_new() nothrow; +void atk_socket_embed(Socket* this_, char* plug_id) nothrow; +int atk_socket_is_occupied(Socket* this_) nothrow; +StateSet* /*new*/ atk_state_set_new() nothrow; +int atk_state_set_add_state(StateSet* this_, StateType type) nothrow; +void atk_state_set_add_states(StateSet* this_, StateType* types, int n_types) nothrow; +StateSet* /*new*/ atk_state_set_and_sets(StateSet* this_, StateSet* compare_set) nothrow; +void atk_state_set_clear_states(StateSet* this_) nothrow; +int atk_state_set_contains_state(StateSet* this_, StateType type) nothrow; +int atk_state_set_contains_states(StateSet* this_, StateType* types, int n_types) nothrow; +int atk_state_set_is_empty(StateSet* this_) nothrow; +StateSet* /*new*/ atk_state_set_or_sets(StateSet* this_, StateSet* compare_set) nothrow; +int atk_state_set_remove_state(StateSet* this_, StateType type) nothrow; +StateSet* /*new*/ atk_state_set_xor_sets(StateSet* this_, StateSet* compare_set) nothrow; +char* atk_streamable_content_get_mime_type(StreamableContent* this_, int i) nothrow; +int atk_streamable_content_get_n_mime_types(StreamableContent* this_) nothrow; +GLib2.IOChannel* /*new*/ atk_streamable_content_get_stream(StreamableContent* this_, char* mime_type) nothrow; +char* atk_streamable_content_get_uri(StreamableContent* this_, char* mime_type) nothrow; +int atk_table_add_column_selection(Table* this_, int column) nothrow; +int atk_table_add_row_selection(Table* this_, int row) nothrow; +Object* atk_table_get_caption(Table* this_) nothrow; +int atk_table_get_column_at_index(Table* this_, int index_) nothrow; +char* atk_table_get_column_description(Table* this_, int column) nothrow; +int atk_table_get_column_extent_at(Table* this_, int row, int column) nothrow; +Object* atk_table_get_column_header(Table* this_, int column) nothrow; +int atk_table_get_index_at(Table* this_, int row, int column) nothrow; +int atk_table_get_n_columns(Table* this_) nothrow; +int atk_table_get_n_rows(Table* this_) nothrow; +int atk_table_get_row_at_index(Table* this_, int index_) nothrow; +char* atk_table_get_row_description(Table* this_, int row) nothrow; +int atk_table_get_row_extent_at(Table* this_, int row, int column) nothrow; +Object* atk_table_get_row_header(Table* this_, int row) nothrow; +int atk_table_get_selected_columns(Table* this_, int** selected) nothrow; +int atk_table_get_selected_rows(Table* this_, int** selected) nothrow; +Object* /*new*/ atk_table_get_summary(Table* this_) nothrow; +int atk_table_is_column_selected(Table* this_, int column) nothrow; +int atk_table_is_row_selected(Table* this_, int row) nothrow; +int atk_table_is_selected(Table* this_, int row, int column) nothrow; +Object* /*new*/ atk_table_ref_at(Table* this_, int row, int column) nothrow; +int atk_table_remove_column_selection(Table* this_, int column) nothrow; +int atk_table_remove_row_selection(Table* this_, int row) nothrow; +void atk_table_set_caption(Table* this_, Object* caption) nothrow; +void atk_table_set_column_description(Table* this_, int column, char* description) nothrow; +void atk_table_set_column_header(Table* this_, int column, Object* header) nothrow; +void atk_table_set_row_description(Table* this_, int row, char* description) nothrow; +void atk_table_set_row_header(Table* this_, int row, Object* header) nothrow; +void atk_table_set_summary(Table* this_, Object* accessible) nothrow; +int atk_text_add_selection(Text* this_, int start_offset, int end_offset) nothrow; +TextRange** /*new*/ atk_text_get_bounded_ranges(Text* this_, TextRectangle* rect, CoordType coord_type, TextClipType x_clip_type, TextClipType y_clip_type) nothrow; +int atk_text_get_caret_offset(Text* this_) nothrow; +dchar atk_text_get_character_at_offset(Text* this_, int offset) nothrow; +int atk_text_get_character_count(Text* this_) nothrow; +void atk_text_get_character_extents(Text* this_, int offset, int* x, int* y, int* width, int* height, CoordType coords) nothrow; +AttributeSet* /*new*/ atk_text_get_default_attributes(Text* this_) nothrow; +int atk_text_get_n_selections(Text* this_) nothrow; +int atk_text_get_offset_at_point(Text* this_, int x, int y, CoordType coords) nothrow; +void atk_text_get_range_extents(Text* this_, int start_offset, int end_offset, CoordType coord_type, TextRectangle* rect) nothrow; +AttributeSet* /*new*/ atk_text_get_run_attributes(Text* this_, int offset, int* start_offset, int* end_offset) nothrow; +char* /*new*/ atk_text_get_selection(Text* this_, int selection_num, int* start_offset, int* end_offset) nothrow; +char* /*new*/ atk_text_get_text(Text* this_, int start_offset, int end_offset) nothrow; +char* /*new*/ atk_text_get_text_after_offset(Text* this_, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow; +char* /*new*/ atk_text_get_text_at_offset(Text* this_, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow; +char* /*new*/ atk_text_get_text_before_offset(Text* this_, int offset, TextBoundary boundary_type, int* start_offset, int* end_offset) nothrow; +int atk_text_remove_selection(Text* this_, int selection_num) nothrow; +int atk_text_set_caret_offset(Text* this_, int offset) nothrow; +int atk_text_set_selection(Text* this_, int selection_num, int start_offset, int end_offset) nothrow; +void atk_value_get_current_value(Value* this_, GObject2.Value* value) nothrow; +void atk_value_get_maximum_value(Value* this_, GObject2.Value* value) nothrow; +void atk_value_get_minimum_increment(Value* this_, GObject2.Value* value) nothrow; +void atk_value_get_minimum_value(Value* this_, GObject2.Value* value) nothrow; +int atk_value_set_current_value(Value* this_, GObject2.Value* value) nothrow; +uint atk_add_focus_tracker(EventListener focus_tracker) nothrow; +uint atk_add_global_event_listener(GObject2.SignalEmissionHook listener, char* event_type) nothrow; +uint atk_add_key_event_listener(KeySnoopFunc listener, void* data) nothrow; +void atk_attribute_set_free(AttributeSet* attrib_set) nothrow; +void atk_focus_tracker_init(EventListenerInit init) nothrow; +void atk_focus_tracker_notify(Object* object) nothrow; +Registry* /*new*/ atk_get_default_registry() nothrow; +Object* atk_get_focus_object() nothrow; +Object* atk_get_root() nothrow; +char* atk_get_toolkit_name() nothrow; +char* atk_get_toolkit_version() nothrow; +char* atk_get_version() nothrow; +RelationType atk_relation_type_for_name(char* name) nothrow; +char* atk_relation_type_get_name(RelationType type) nothrow; +RelationType atk_relation_type_register(char* name) nothrow; +void atk_remove_focus_tracker(uint tracker_id) nothrow; +void atk_remove_global_event_listener(uint listener_id) nothrow; +void atk_remove_key_event_listener(uint listener_id) nothrow; +Role atk_role_for_name(char* name) nothrow; +char* atk_role_get_localized_name(Role role) nothrow; +char* atk_role_get_name(Role role) nothrow; +Role atk_role_register(char* name) nothrow; +StateType atk_state_type_for_name(char* name) nothrow; +char* atk_state_type_get_name(StateType type) nothrow; +StateType atk_state_type_register(char* name) nothrow; +TextAttribute atk_text_attribute_for_name(char* name) nothrow; +char* atk_text_attribute_get_name(TextAttribute attr) nothrow; +char* atk_text_attribute_get_value(TextAttribute attr, int index_) nothrow; +TextAttribute atk_text_attribute_register(char* name) nothrow; +void atk_text_free_ranges(TextRange** ranges) nothrow; } diff --git a/gtk2/cairo.d b/gtk2/cairo.d index f690d37..40d0703 100644 --- a/gtk2/cairo.d +++ b/gtk2/cairo.d @@ -48,7 +48,7 @@ struct RectangleInt { int x, y, width, height; } -static void image_surface_create()() { +static void image_surface_create()() nothrow { cairo_image_surface_create(); } @@ -56,5 +56,5 @@ static void image_surface_create()() { // C prototypes: extern (C) { -void cairo_image_surface_create(); +void cairo_image_surface_create() nothrow; } diff --git a/gtk2/cally.d b/gtk2/cally.d index 0db6e9f..3fd0feb 100644 --- a/gtk2/cally.d +++ b/gtk2/cally.d @@ -48,14 +48,14 @@ alias gtk2.freetype2 freetype2; // uses the @user_data argument passed to cally_actor_add_action_full(). // : a #CallyActor // : user data passed to the function -extern (C) alias void function (Actor* cally_actor, void* user_data) ActionCallback; +extern (C) alias void function (Actor* cally_actor, void* user_data) nothrow ActionCallback; // VERSION: 1.4 // Action function, to be used on #AtkAction implementations as a individual // action // : a #CallyActor -extern (C) alias void function (Actor* cally_actor) ActionFunc; +extern (C) alias void function (Actor* cally_actor) nothrow ActionFunc; // The CallyActor structure contains only private @@ -74,9 +74,10 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { // Creates a new #CallyActor for the given @actor // RETURNS: the newly created #AtkObject // : a #ClutterActor - static Actor* /*new*/ new_()(Clutter.Actor* actor) { + static Actor* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_actor_new(actor); } + alias new_!() opCall; // Unintrospectable method: add_action() / cally_actor_add_action() // VERSION: 1.4 @@ -86,7 +87,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { // : the action description // : the action keybinding // : the callback of the action, to be executed with do_action - uint add_action()(char* action_name, char* action_description, char* action_keybinding, ActionFunc action_func) { + uint add_action()(char* action_name, char* action_description, char* action_keybinding, ActionFunc action_func) nothrow { return cally_actor_add_action(&this, action_name, action_description, action_keybinding, action_func); } @@ -99,7 +100,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { // : the callback of the action // : data to be passed to @callback // : function to be called when removing the action - uint add_action_full()(char* action_name, char* action_description, char* action_keybinding, ActionCallback callback, void* user_data, GLib2.DestroyNotify notify) { + uint add_action_full()(char* action_name, char* action_description, char* action_keybinding, ActionCallback callback, void* user_data, GLib2.DestroyNotify notify) nothrow { return cally_actor_add_action_full(&this, action_name, action_description, action_keybinding, callback, user_data, notify); } @@ -107,7 +108,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* 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 - int remove_action()(int action_id) { + int remove_action()(int action_id) nothrow { return cally_actor_remove_action(&this, action_id); } @@ -116,7 +117,7 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { // with cally_actor_add_action() // RETURNS: %TRUE if the operation was succesful, %FALSE otherwise // : the name of the action to remove - int remove_action_by_name()(char* action_name) { + int remove_action_by_name()(char* action_name) nothrow { return cally_actor_remove_action_by_name(&this, action_name); } } @@ -126,10 +127,10 @@ struct Actor /* : Atk.GObjectAccessible */ /* Version 1.4 */ { // private data struct ActorClass /* Version 1.4 */ { private Atk.GObjectAccessibleClass parent_class; - extern (C) void function (GObject2.Object* object, GObject2.ParamSpec* pspec) notify_clutter; - extern (C) int function (Clutter.Actor* actor, void* data) focus_clutter; - extern (C) int function (Clutter.Actor* container, Clutter.Actor* actor, void* data) add_actor; - extern (C) int function (Clutter.Actor* container, Clutter.Actor* actor, void* data) remove_actor; + extern (C) void function (GObject2.Object* object, GObject2.ParamSpec* pspec) nothrow notify_clutter; + extern (C) int function (Clutter.Actor* actor, void* data) nothrow focus_clutter; + extern (C) int function (Clutter.Actor* container, Clutter.Actor* actor, void* data) nothrow add_actor; + extern (C) int function (Clutter.Actor* container, Clutter.Actor* actor, void* data) nothrow remove_actor; private void*[32] _padding_dummy; } @@ -154,9 +155,10 @@ struct Clone /* : Actor */ /* Version 1.4 */ { // #ClutterClone. // RETURNS: the newly created #AtkObject // : a #ClutterActor - static Clone* /*new*/ new_()(Clutter.Actor* actor) { + static Clone* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_clone_new(actor); } + alias new_!() opCall; } @@ -187,9 +189,10 @@ struct Group /* : Actor */ /* Version 1.4 */ { // Creates a #CallyGroup for @actor // RETURNS: the newly created #CallyGroup // : a #ClutterGroup - static Group* /*new*/ new_()(Clutter.Actor* actor) { + static Group* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_group_new(actor); } + alias new_!() opCall; } @@ -221,9 +224,10 @@ struct Rectangle /* : Actor */ /* Version 1.4 */ { // a #ClutterRectangle. // RETURNS: the newly created #AtkObject // : a #ClutterActor - static Rectangle* /*new*/ new_()(Clutter.Actor* actor) { + static Rectangle* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_rectangle_new(actor); } + alias new_!() opCall; } @@ -251,9 +255,10 @@ struct Root /* : Atk.GObjectAccessible */ /* Version 1.4 */ { // VERSION: 1.4 // Creates a new #CallyRoot object. // RETURNS: the newly created #AtkObject - static Root* /*new*/ new_()() { + static Root* /*new*/ new_()() nothrow { return cally_root_new(); } + alias new_!() opCall; } @@ -286,9 +291,10 @@ struct Stage /* : Group */ /* Version 1.4 */ { // #ClutterStage. // RETURNS: the newly created #AtkObject // : a #ClutterActor - static Stage* /*new*/ new_()(Clutter.Actor* actor) { + static Stage* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_stage_new(actor); } + alias new_!() opCall; } @@ -322,9 +328,10 @@ struct Text /* : Actor */ /* Version 1.4 */ { // #ClutterText. // RETURNS: the newly created #AtkObject // : a #ClutterActor - static Text* /*new*/ new_()(Clutter.Actor* actor) { + static Text* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_text_new(actor); } + alias new_!() opCall; } @@ -356,9 +363,10 @@ struct Texture /* : Actor */ /* Version 1.4 */ { // a #ClutterTexture. // RETURNS: the newly created #AtkObject // : a #ClutterActor - static Texture* /*new*/ new_()(Clutter.Actor* actor) { + static Texture* /*new*/ new_()(Clutter.Actor* actor) nothrow { return cally_texture_new(actor); } + alias new_!() opCall; } @@ -400,7 +408,7 @@ struct UtilPrivate { // // initialized. // RETURNS: %TRUE if accessibility support has been correctly -static int accessibility_init()() { +static int accessibility_init()() nothrow { return cally_accessibility_init(); } @@ -410,7 +418,7 @@ static int accessibility_init()() { // // initialized. // RETURNS: %TRUE if accessibility support has been correctly -static int get_cally_initialized()() { +static int get_cally_initialized()() nothrow { return cally_get_cally_initialized(); } @@ -418,18 +426,18 @@ static int get_cally_initialized()() { // C prototypes: extern (C) { -Actor* /*new*/ cally_actor_new(Clutter.Actor* actor); -uint cally_actor_add_action(Actor* this_, char* action_name, char* action_description, char* action_keybinding, ActionFunc action_func); -uint cally_actor_add_action_full(Actor* this_, char* action_name, char* action_description, char* action_keybinding, ActionCallback callback, void* user_data, GLib2.DestroyNotify notify); -int cally_actor_remove_action(Actor* this_, int action_id); -int cally_actor_remove_action_by_name(Actor* this_, char* action_name); -Clone* /*new*/ cally_clone_new(Clutter.Actor* actor); -Group* /*new*/ cally_group_new(Clutter.Actor* actor); -Rectangle* /*new*/ cally_rectangle_new(Clutter.Actor* actor); -Root* /*new*/ cally_root_new(); -Stage* /*new*/ cally_stage_new(Clutter.Actor* actor); -Text* /*new*/ cally_text_new(Clutter.Actor* actor); -Texture* /*new*/ cally_texture_new(Clutter.Actor* actor); -int cally_accessibility_init(); -int cally_get_cally_initialized(); +Actor* /*new*/ cally_actor_new(Clutter.Actor* actor) nothrow; +uint cally_actor_add_action(Actor* this_, char* action_name, char* action_description, char* action_keybinding, ActionFunc action_func) nothrow; +uint cally_actor_add_action_full(Actor* this_, char* action_name, char* action_description, char* action_keybinding, ActionCallback callback, void* user_data, GLib2.DestroyNotify notify) nothrow; +int cally_actor_remove_action(Actor* this_, int action_id) nothrow; +int cally_actor_remove_action_by_name(Actor* this_, char* action_name) nothrow; +Clone* /*new*/ cally_clone_new(Clutter.Actor* actor) nothrow; +Group* /*new*/ cally_group_new(Clutter.Actor* actor) nothrow; +Rectangle* /*new*/ cally_rectangle_new(Clutter.Actor* actor) nothrow; +Root* /*new*/ cally_root_new() nothrow; +Stage* /*new*/ cally_stage_new(Clutter.Actor* actor) nothrow; +Text* /*new*/ cally_text_new(Clutter.Actor* actor) nothrow; +Texture* /*new*/ cally_texture_new(Clutter.Actor* actor) nothrow; +int cally_accessibility_init() nothrow; +int cally_get_cally_initialized() nothrow; } diff --git a/gtk2/clutter.d b/gtk2/clutter.d index d383f38..dcf3fdb 100644 --- a/gtk2/clutter.d +++ b/gtk2/clutter.d @@ -112,14 +112,14 @@ struct Action /* : ActorMeta */ /* Version 1.4 */ { // only private data struct ActionClass /* Version 1.4 */ { private ActorMetaClass parent_class; - extern (C) void function () _clutter_action1; - extern (C) void function () _clutter_action2; - extern (C) void function () _clutter_action3; - extern (C) void function () _clutter_action4; - extern (C) void function () _clutter_action5; - extern (C) void function () _clutter_action6; - extern (C) void function () _clutter_action7; - extern (C) void function () _clutter_action8; + extern (C) void function () nothrow _clutter_action1; + extern (C) void function () nothrow _clutter_action2; + extern (C) void function () nothrow _clutter_action3; + extern (C) void function () nothrow _clutter_action4; + extern (C) void function () nothrow _clutter_action5; + extern (C) void function () nothrow _clutter_action6; + extern (C) void function () nothrow _clutter_action7; + extern (C) void function () nothrow _clutter_action8; } // Base class for actors. @@ -143,9 +143,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // A newly created actor has a floating reference, which will be sunk // when it is added to another actor. // RETURNS: the newly created #ClutterActor - static Actor* /*new*/ new_()() { + static Actor* /*new*/ new_()() nothrow { return clutter_actor_new(); } + alias new_!() opCall; // VERSION: 1.4 // Adds @action to the list of actions applied to @self @@ -156,7 +157,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // clutter_actor_remove_action() or clutter_actor_clear_actions() // is called // : a #ClutterAction - void add_action()(Action* action) { + void add_action()(Action* action) nothrow { clutter_actor_add_action(&this, action); } @@ -172,7 +173,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // ]| // : the name to set on the action // : a #ClutterAction - void add_action_with_name()(char* name, Action* action) { + void add_action_with_name()(char* name, Action* action) nothrow { clutter_actor_add_action_with_name(&this, name, action); } @@ -188,7 +189,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function will emit the #ClutterContainer::actor-added signal // on @self. // : a #ClutterActor - void add_child()(Actor* child) { + void add_child()(Actor* child) nothrow { clutter_actor_add_child(&this, child); } @@ -200,7 +201,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // either clutter_actor_remove_constraint() or // clutter_actor_clear_constraints() is called. // : a #ClutterConstraint - void add_constraint()(Constraint* constraint) { + void add_constraint()(Constraint* constraint) nothrow { clutter_actor_add_constraint(&this, constraint); } @@ -216,7 +217,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // ]| // : the name to set on the constraint // : a #ClutterConstraint - void add_constraint_with_name()(char* name, Constraint* constraint) { + void add_constraint_with_name()(char* name, Constraint* constraint) nothrow { clutter_actor_add_constraint_with_name(&this, name, constraint); } @@ -227,7 +228,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // clutter_actor_remove_effect() or clutter_actor_clear_effects() is // called. // : a #ClutterEffect - void add_effect()(Effect* effect) { + void add_effect()(Effect* effect) nothrow { clutter_actor_add_effect(&this, effect); } @@ -243,7 +244,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // ]| // : the name to set on the effect // : a #ClutterEffect - void add_effect_with_name()(char* name, Effect* effect) { + void add_effect_with_name()(char* name, Effect* effect) nothrow { clutter_actor_add_effect_with_name(&this, name, effect); } @@ -259,7 +260,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // a grandparent's origin has moved. // : new allocation of the actor, in parent-relative coordinates // : flags that control the allocation - void allocate()(ActorBox* box, AllocationFlags flags) { + void allocate()(ActorBox* box, AllocationFlags flags) nothrow { clutter_actor_allocate(&this, box, flags); } @@ -283,7 +284,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : whether the actor should fill horizontally // : whether the actor should fill vertically // : allocation flags to be passed to clutter_actor_allocate() - void allocate_align_fill()(ActorBox* box, double x_align, double y_align, int x_fill, int y_fill, AllocationFlags flags) { + void allocate_align_fill()(ActorBox* box, double x_align, double y_align, int x_fill, int y_fill, AllocationFlags flags) nothrow { clutter_actor_allocate_align_fill(&this, box, x_align, y_align, x_fill, y_fill, flags); } @@ -337,7 +338,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : the maximum available width, or -1 to use the actor's natural width // : the maximum available height, or -1 to use the actor's natural height // : flags controlling the allocation - void allocate_available_size()(float x, float y, float available_width, float available_height, AllocationFlags flags) { + void allocate_available_size()(float x, float y, float available_width, float available_height, AllocationFlags flags) nothrow { clutter_actor_allocate_available_size(&this, x, y, available_width, available_height, flags); } @@ -355,7 +356,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // not meant to be used outside the implementation of the // ClutterActor::allocate virtual function. // : flags controlling the allocation - void allocate_preferred_size()(AllocationFlags flags) { + void allocate_preferred_size()(AllocationFlags flags) nothrow { clutter_actor_allocate_preferred_size(&this, flags); } @@ -555,7 +556,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : number of property names and values // : a vector containing the property names to set // : a vector containing the property values to set - Animation* animate_with_alphav()(Alpha* alpha, int n_properties, char* properties, GObject2.Value* values) { + Animation* animate_with_alphav()(Alpha* alpha, int n_properties, char* properties, GObject2.Value* values) nothrow { return clutter_actor_animate_with_alphav(&this, alpha, n_properties, properties, values); } @@ -604,7 +605,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : number of property names and values // : a vector containing the property names to set // : a vector containing the property values to set - Animation* animate_with_timelinev()(c_ulong mode, Timeline* timeline, int n_properties, char* properties, GObject2.Value* values) { + Animation* animate_with_timelinev()(c_ulong mode, Timeline* timeline, int n_properties, char* properties, GObject2.Value* values) nothrow { return clutter_actor_animate_with_timelinev(&this, mode, timeline, n_properties, properties, values); } @@ -627,7 +628,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : number of property names and values // : a vector containing the property names to set // : a vector containing the property values to set - Animation* animatev()(c_ulong mode, uint duration, int n_properties, char* properties, GObject2.Value* values) { + Animation* animatev()(c_ulong mode, uint duration, int n_properties, char* properties, GObject2.Value* values) nothrow { return clutter_actor_animatev(&this, mode, duration, n_properties, properties, values); } @@ -643,7 +644,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : A #ClutterActor ancestor, or %NULL to use the default #ClutterStage // : A point as #ClutterVertex // : The translated #ClutterVertex - void apply_relative_transform_to_point()(Actor* ancestor, Vertex* point, /*out*/ Vertex* vertex) { + void apply_relative_transform_to_point()(Actor* ancestor, Vertex* point, /*out*/ Vertex* vertex) nothrow { clutter_actor_apply_relative_transform_to_point(&this, ancestor, point, vertex); } @@ -653,25 +654,25 @@ struct Actor /* : GObject.InitiallyUnowned */ { // transformation (i.e. scale, rotation, etc) // : A point as #ClutterVertex // : The translated #ClutterVertex - void apply_transform_to_point()(Vertex* point, /*out*/ Vertex* vertex) { + void apply_transform_to_point()(Vertex* point, /*out*/ Vertex* vertex) nothrow { clutter_actor_apply_transform_to_point(&this, point, vertex); } // VERSION: 1.4 // Clears the list of actions applied to @self - void clear_actions()() { + void clear_actions()() nothrow { clutter_actor_clear_actions(&this); } // VERSION: 1.4 // Clears the list of constraints applied to @self - void clear_constraints()() { + void clear_constraints()() nothrow { clutter_actor_clear_constraints(&this); } // VERSION: 1.4 // Clears the list of effects applied to @self - void clear_effects()() { + void clear_effects()() nothrow { clutter_actor_clear_effects(&this); } @@ -681,7 +682,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // @descendant point to the same actor then it will also return %TRUE. // RETURNS: whether @descendent is contained within @self // : A #ClutterActor, possibly contained in @self - int contains()(Actor* descendant) { + int contains()(Actor* descendant) nothrow { return clutter_actor_contains(&this, descendant); } @@ -691,7 +692,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // #ClutterEffect. It will cause the run method of the next effect to // be applied, or it will paint the actual actor if the current effect // is the last effect in the chain. - void continue_paint()() { + void continue_paint()() nothrow { clutter_actor_continue_paint(&this); } @@ -705,7 +706,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Use g_object_unref() on the returned value to deallocate its // resources // RETURNS: the newly created #PangoContext. - Pango.Context* /*new*/ create_pango_context()() { + Pango.Context* /*new*/ create_pango_context()() nothrow { return clutter_actor_create_pango_context(&this); } @@ -723,7 +724,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Use g_object_unref() when done // RETURNS: the newly created #PangoLayout. // : (allow-none) the text to set on the #PangoLayout, or %NULL - Pango.Layout* /*new*/ create_pango_layout()(char* text) { + Pango.Layout* /*new*/ create_pango_layout()(char* text) nothrow { return clutter_actor_create_pango_layout(&this, text); } @@ -735,7 +736,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // Note: you cannot destroy the #ClutterStage returned by // clutter_stage_get_default(). - void destroy()() { + void destroy()() nothrow { clutter_actor_destroy(&this); } @@ -747,7 +748,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the only reference then the #ClutterAnimation becomes invalid. // // The #ClutterAnimation::completed signal will not be emitted. - void detach_animation()() { + void detach_animation()() nothrow { clutter_actor_detach_animation(&this); } @@ -761,7 +762,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // RETURNS: the return value from the signal emission: %TRUE // : a #ClutterEvent // : TRUE if event in in capture phase, FALSE otherwise. - int event()(Event* event, int capture) { + int event()(Event* event, int capture) nothrow { return clutter_actor_event(&this, event, capture); } @@ -776,7 +777,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // v[3] contains (x2, y2) // // : Pointer to a location of an array of 4 #ClutterVertex where to store the result. - void get_abs_allocation_vertices()(/*out*/ Vertex verts) { + void get_abs_allocation_vertices()(/*out*/ Vertex verts) nothrow { clutter_actor_get_abs_allocation_vertices(&this, verts); } @@ -793,7 +794,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // library contains more information about accessible objects and // their uses. // RETURNS: the #AtkObject associated with @actor - Atk.Object* get_accessible()() { + Atk.Object* get_accessible()() nothrow { return clutter_actor_get_accessible(&this); } @@ -805,7 +806,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // actor and it should not be unreferenced directly // RETURNS: a #ClutterAction for the given // : the name of the action to retrieve - Action* get_action()(char* name) { + Action* get_action()(char* name) nothrow { return clutter_actor_get_action(&this, name); } @@ -816,7 +817,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // owned by the #ClutterActor. Use g_list_free() to free the resources // allocated by the returned #GList // RETURNS: a copy - GLib2.List* /*new container*/ get_actions()() { + GLib2.List* /*new container*/ get_actions()() nothrow { return clutter_actor_get_actions(&this); } @@ -832,7 +833,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // of functions inside the implementation of the get_preferred_width() // or get_preferred_height() virtual functions. // : the function fills this in with the actor's allocation - void get_allocation_box()(/*out*/ ActorBox* box) { + void get_allocation_box()(/*out*/ ActorBox* box) nothrow { clutter_actor_get_allocation_box(&this, box); } @@ -846,7 +847,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // The returned rectangle is in pixels. // : allocation geometry in pixels - void get_allocation_geometry()(/*out*/ Geometry* geom) { + void get_allocation_geometry()(/*out*/ Geometry* geom) nothrow { clutter_actor_get_allocation_geometry(&this, geom); } @@ -867,7 +868,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the behaviour of clutter_actor_get_abs_allocation_vertices(). // : A #ClutterActor to calculate the vertices against, or %NULL to use the #ClutterStage // : return location for an array of 4 #ClutterVertex in which to store the result - void get_allocation_vertices()(Actor* ancestor, /*out*/ Vertex verts) { + void get_allocation_vertices()(Actor* ancestor, /*out*/ Vertex verts) nothrow { clutter_actor_get_allocation_vertices(&this, ancestor, verts); } @@ -875,7 +876,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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 - void get_anchor_point()(/*out*/ float* anchor_x, /*out*/ float* anchor_y) { + void get_anchor_point()(/*out*/ float* anchor_x, /*out*/ float* anchor_y) nothrow { clutter_actor_get_anchor_point(&this, anchor_x, anchor_y); } @@ -884,7 +885,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the anchor point was specified using pixels or units this will // return %CLUTTER_GRAVITY_NONE. // RETURNS: the #ClutterGravity used by the anchor point - Gravity get_anchor_point_gravity()() { + Gravity get_anchor_point_gravity()() nothrow { return clutter_actor_get_anchor_point_gravity(&this); } @@ -892,14 +893,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Retrieves the #ClutterAnimation used by @actor, if clutter_actor_animate() // has been called on @actor. // RETURNS: a #ClutterAnimation, or %NULL - Animation* get_animation()() { + Animation* get_animation()() nothrow { return clutter_actor_get_animation(&this); } // VERSION: 1.10 // Retrieves the color set using clutter_actor_set_background_color(). // : return location for a #ClutterColor - void get_background_color()(/*out*/ Color* color) { + void get_background_color()(/*out*/ Color* color) nothrow { clutter_actor_get_background_color(&this, color); } @@ -908,7 +909,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // children of @self. // RETURNS: a pointer to a #ClutterActor, or %NULL // : the position in the list of children - Actor* get_child_at_index()(int index_) { + Actor* get_child_at_index()(int index_) nothrow { return clutter_actor_get_child_at_index(&this, index_); } @@ -918,7 +919,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // allocated #GList of #ClutterActors. Use g_list_free() when // done. // RETURNS: A newly - GLib2.List* /*new container*/ get_children()() { + GLib2.List* /*new container*/ get_children()() nothrow { return clutter_actor_get_children(&this); } @@ -928,14 +929,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : return location for the Y offset of the clip rectangle, or %NULL // : return location for the width of the clip rectangle, or %NULL // : return location for the height of the clip rectangle, or %NULL - void get_clip()(/*out*/ float* xoff=null, /*out*/ float* yoff=null, /*out*/ float* width=null, /*out*/ float* height=null) { + void get_clip()(/*out*/ float* xoff=null, /*out*/ float* yoff=null, /*out*/ float* width=null, /*out*/ float* height=null) nothrow { 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()() { + int get_clip_to_allocation()() nothrow { return clutter_actor_get_clip_to_allocation(&this); } @@ -947,7 +948,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // actor and it should not be unreferenced directly // RETURNS: a #ClutterConstraint for the given // : the name of the constraint to retrieve - Constraint* get_constraint()(char* name) { + Constraint* get_constraint()(char* name) nothrow { return clutter_actor_get_constraint(&this, name); } @@ -958,13 +959,13 @@ struct Actor /* : GObject.InitiallyUnowned */ { // owned by the #ClutterActor. Use g_list_free() to free the resources // allocated by the returned #GList // RETURNS: a copy - GLib2.List* /*new container*/ get_constraints()() { + GLib2.List* /*new container*/ get_constraints()() nothrow { return clutter_actor_get_constraints(&this); } // Retrieves the depth of @self. // RETURNS: the depth of the actor - float get_depth()() { + float get_depth()() nothrow { return clutter_actor_get_depth(&this); } @@ -976,7 +977,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // actor and it should not be unreferenced directly // RETURNS: a #ClutterEffect for the given // : the name of the effect to retrieve - Effect* get_effect()(char* name) { + Effect* get_effect()(char* name) nothrow { return clutter_actor_get_effect(&this, name); } @@ -987,7 +988,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // list are owned by Clutter and they should not be freed. You should // free the returned list using g_list_free() when done // RETURNS: a list - GLib2.List* /*new container*/ get_effects()() { + GLib2.List* /*new container*/ get_effects()() nothrow { return clutter_actor_get_effects(&this); } @@ -998,7 +999,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // is not safe to modify the list of children of @self while iterating // it. // RETURNS: a pointer to a #ClutterActor, or %NULL - Actor* get_first_child()() { + Actor* get_first_child()() nothrow { return clutter_actor_get_first_child(&this); } @@ -1006,14 +1007,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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 - int get_fixed_position_set()() { + int get_fixed_position_set()() nothrow { 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()() { + ActorFlags get_flags()() nothrow { return clutter_actor_get_flags(&this); } @@ -1026,7 +1027,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // clutter_actor_get_size(), or clutter_actor_get_allocation_geometry() // instead. // : A location to store actors #ClutterGeometry - void get_geometry()(/*out*/ Geometry* geometry) { + void get_geometry()(/*out*/ Geometry* geometry) nothrow { clutter_actor_get_geometry(&this, geometry); } @@ -1034,7 +1035,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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()() { + uint get_gid()() nothrow { return clutter_actor_get_gid(&this); } @@ -1057,7 +1058,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // assigned using clutter_actor_set_height(), the height returned will // be the same value. // RETURNS: the height of the actor, in pixels - float get_height()() { + float get_height()() nothrow { return clutter_actor_get_height(&this); } @@ -1068,7 +1069,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // is not safe to modify the list of children of @self while iterating // it. // RETURNS: a pointer to a #ClutterActor, or %NULL - Actor* get_last_child()() { + Actor* get_last_child()() nothrow { return clutter_actor_get_last_child(&this); } @@ -1077,49 +1078,49 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // or %NULL // RETURNS: a pointer to the #ClutterLayoutManager, - LayoutManager* get_layout_manager()() { + LayoutManager* get_layout_manager()() nothrow { return clutter_actor_get_layout_manager(&this); } // VERSION: 1.10 // Retrieves all the components of the margin of a #ClutterActor. // : return location for a #ClutterMargin - void get_margin()(/*out*/ Margin* margin) { + void get_margin()(/*out*/ Margin* margin) nothrow { clutter_actor_get_margin(&this, margin); } // VERSION: 1.10 // Retrieves the bottom margin of a #ClutterActor. // RETURNS: the bottom margin - float get_margin_bottom()() { + float get_margin_bottom()() nothrow { return clutter_actor_get_margin_bottom(&this); } // VERSION: 1.10 // Retrieves the left margin of a #ClutterActor. // RETURNS: the left margin - float get_margin_left()() { + float get_margin_left()() nothrow { return clutter_actor_get_margin_left(&this); } // VERSION: 1.10 // Retrieves the right margin of a #ClutterActor. // RETURNS: the right margin - float get_margin_right()() { + float get_margin_right()() nothrow { return clutter_actor_get_margin_right(&this); } // VERSION: 1.10 // Retrieves the top margin of a #ClutterActor. // RETURNS: the top margin - float get_margin_top()() { + float get_margin_top()() nothrow { return clutter_actor_get_margin_top(&this); } // VERSION: 1.10 // Retrieves the number of children of @self. // RETURNS: the number of children of an actor - int get_n_children()() { + int get_n_children()() nothrow { return clutter_actor_get_n_children(&this); } @@ -1127,7 +1128,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // owned by the actor and should not be modified or freed. // RETURNS: the name of the actor, or %NULL. The returned string is - char* get_name()() { + char* get_name()() nothrow { return clutter_actor_get_name(&this); } @@ -1139,7 +1140,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // is not safe to modify the list of children of @self while iterating // it. // RETURNS: a pointer to a #ClutterActor, or %NULL - Actor* get_next_sibling()() { + Actor* get_next_sibling()() nothrow { return clutter_actor_get_next_sibling(&this); } @@ -1147,7 +1148,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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 - OffscreenRedirect get_offscreen_redirect()() { + OffscreenRedirect get_offscreen_redirect()() nothrow { return clutter_actor_get_offscreen_redirect(&this); } @@ -1157,7 +1158,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // For retrieving the absolute opacity of the actor inside a paint // virtual function, see clutter_actor_get_paint_opacity(). // RETURNS: the opacity of the actor - ubyte get_opacity()() { + ubyte get_opacity()() nothrow { return clutter_actor_get_opacity(&this); } @@ -1178,7 +1179,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // %FALSE. // RETURNS: %TRUE if a 2D paint box could be determined, else // : return location for a #ClutterActorBox - int get_paint_box()(/*out*/ ActorBox* box) { + int get_paint_box()(/*out*/ ActorBox* box) nothrow { return clutter_actor_get_paint_box(&this, box); } @@ -1191,7 +1192,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function is intended for subclasses to use in the paint virtual // function, to paint themselves with the correct opacity. // RETURNS: The actor opacity value. - ubyte get_paint_opacity()() { + ubyte get_paint_opacity()() nothrow { return clutter_actor_get_paint_opacity(&this); } @@ -1201,7 +1202,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This is by definition the same as %CLUTTER_ACTOR_IS_MAPPED. // RETURNS: %TRUE if the actor is visibile and will be painted. - int get_paint_visibility()() { + int get_paint_visibility()() nothrow { return clutter_actor_get_paint_visibility(&this); } @@ -1225,7 +1226,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // or %NULL if no volume could be determined. // RETURNS: a pointer to a #ClutterPaintVolume - PaintVolume* get_paint_volume()() { + PaintVolume* get_paint_volume()() nothrow { return clutter_actor_get_paint_volume(&this); } @@ -1245,7 +1246,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // The returned #PangoContext is owned by the actor and should not be // unreferenced by the application code // RETURNS: the #PangoContext for a #ClutterActor. - Pango.Context* get_pango_context()() { + Pango.Context* get_pango_context()() nothrow { return clutter_actor_get_pango_context(&this); } @@ -1253,7 +1254,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // if no parent is set // RETURNS: The #ClutterActor parent, or %NULL - Actor* get_parent()() { + Actor* get_parent()() nothrow { return clutter_actor_get_parent(&this); } @@ -1267,7 +1268,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // The returned position is in pixels. // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL - void get_position()(/*out*/ float* x=null, /*out*/ float* y=null) { + void get_position()(/*out*/ float* x=null, /*out*/ float* y=null) nothrow { clutter_actor_get_position(&this, x, y); } @@ -1283,7 +1284,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : available width to assume in computing desired height, or a negative value to indicate that no width is defined // : return location for minimum height, or %NULL // : return location for natural height, or %NULL - void get_preferred_height()(float for_width, /*out*/ float* min_height_p=null, /*out*/ float* natural_height_p=null) { + void get_preferred_height()(float for_width, /*out*/ float* min_height_p=null, /*out*/ float* natural_height_p=null) nothrow { clutter_actor_get_preferred_height(&this, for_width, min_height_p, natural_height_p); } @@ -1303,7 +1304,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : return location for the minimum height, or %NULL // : return location for the natural width, or %NULL // : return location for the natural height, or %NULL - void get_preferred_size()(/*out*/ float* min_width_p=null, /*out*/ float* min_height_p=null, /*out*/ float* natural_width_p=null, /*out*/ float* natural_height_p=null) { + void get_preferred_size()(/*out*/ float* min_width_p=null, /*out*/ float* min_height_p=null, /*out*/ float* natural_width_p=null, /*out*/ float* natural_height_p=null) nothrow { clutter_actor_get_preferred_size(&this, min_width_p, min_height_p, natural_width_p, natural_height_p); } @@ -1320,7 +1321,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : available height when computing the preferred width, or a negative value to indicate that no height is defined // : return location for minimum width, or %NULL // : return location for the natural width, or %NULL - void get_preferred_width()(float for_height, /*out*/ float* min_width_p=null, /*out*/ float* natural_width_p=null) { + void get_preferred_width()(float for_height, /*out*/ float* min_width_p=null, /*out*/ float* natural_width_p=null) nothrow { clutter_actor_get_preferred_width(&this, for_height, min_width_p, natural_width_p); } @@ -1332,21 +1333,21 @@ struct Actor /* : GObject.InitiallyUnowned */ { // is not safe to modify the list of children of @self while iterating // it. // RETURNS: a pointer to a #ClutterActor, or %NULL - Actor* get_previous_sibling()() { + Actor* get_previous_sibling()() nothrow { return clutter_actor_get_previous_sibling(&this); } // VERSION: 0.6 // Checks whether @actor is marked as reactive. // RETURNS: %TRUE if the actor is reactive - int get_reactive()() { + int get_reactive()() nothrow { 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()() { + RequestMode get_request_mode()() nothrow { return clutter_actor_get_request_mode(&this); } @@ -1358,7 +1359,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : return value for the X coordinate of the center of rotation // : return value for the Y coordinate of the center of rotation // : return value for the Z coordinate of the center of rotation - double get_rotation()(RotateAxis axis, /*out*/ float* x, /*out*/ float* y, /*out*/ float* z) { + double get_rotation()(RotateAxis axis, /*out*/ float* x, /*out*/ float* y, /*out*/ float* z) nothrow { return clutter_actor_get_rotation(&this, axis, x, y, z); } @@ -1366,7 +1367,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Retrieves an actors scale factors. // : Location to store horizonal scale factor, or %NULL. // : Location to store vertical scale factor, or %NULL. - void get_scale()(/*out*/ double* scale_x=null, /*out*/ double* scale_y=null) { + void get_scale()(/*out*/ double* scale_x=null, /*out*/ double* scale_y=null) nothrow { clutter_actor_get_scale(&this, scale_x, scale_y); } @@ -1377,7 +1378,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // current size of the actor. // : Location to store the X position of the scale center, or %NULL. // : Location to store the Y position of the scale center, or %NULL. - void get_scale_center()(/*out*/ float* center_x=null, /*out*/ float* center_y=null) { + void get_scale_center()(/*out*/ float* center_x=null, /*out*/ float* center_y=null) nothrow { clutter_actor_get_scale_center(&this, center_x, center_y); } @@ -1386,7 +1387,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // center was specified in pixels or units this will return // %CLUTTER_GRAVITY_NONE. // RETURNS: the scale gravity - Gravity get_scale_gravity()() { + Gravity get_scale_gravity()() nothrow { return clutter_actor_get_scale_gravity(&this); } @@ -1396,7 +1397,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // or %NULL if no shader is set. // RETURNS: The currently set #ClutterShader - Shader* get_shader()() { + Shader* get_shader()() nothrow { return clutter_actor_get_shader(&this); } @@ -1412,7 +1413,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // clutter_actor_get_preferred_width(). // : return location for the width, or %NULL. // : return location for the height, or %NULL. - void get_size()(/*out*/ float* width=null, /*out*/ float* height=null) { + void get_size()(/*out*/ float* width=null, /*out*/ float* height=null) nothrow { clutter_actor_get_size(&this, width, height); } @@ -1421,7 +1422,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // containing the actor, or %NULL // RETURNS: the stage - Clutter.Stage* get_stage()() { + Clutter.Stage* get_stage()() nothrow { return clutter_actor_get_stage(&this); } @@ -1432,7 +1433,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // direction, as returned by clutter_get_default_text_direction(), will // be returned instead // RETURNS: the #ClutterTextDirection for the actor - TextDirection get_text_direction()() { + TextDirection get_text_direction()() nothrow { return clutter_actor_get_text_direction(&this); } @@ -1440,7 +1441,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Retrieves the transformations applied to @self relative to its // parent. // : the return location for a #CoglMatrix - void get_transformation_matrix()(/*out*/ Cogl.Matrix* matrix) { + void get_transformation_matrix()(/*out*/ Cogl.Matrix* matrix) nothrow { clutter_actor_get_transformation_matrix(&this, matrix); } @@ -1460,7 +1461,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %NULL if no volume could be determined. // RETURNS: a pointer to a #ClutterPaintVolume // : A #ClutterActor that is an ancestor of @self (or %NULL for the stage) - PaintVolume* get_transformed_paint_volume()(Actor* relative_to_ancestor) { + PaintVolume* get_transformed_paint_volume()(Actor* relative_to_ancestor) nothrow { return clutter_actor_get_transformed_paint_volume(&this, relative_to_ancestor); } @@ -1468,7 +1469,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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 - void get_transformed_position()(/*out*/ float* x=null, /*out*/ float* y=null) { + void get_transformed_position()(/*out*/ float* x=null, /*out*/ float* y=null) nothrow { clutter_actor_get_transformed_position(&this, x, y); } @@ -1494,7 +1495,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // to get the coords of the actual quadrangle. // : return location for the width, or %NULL // : return location for the height, or %NULL - void get_transformed_size()(/*out*/ float* width=null, /*out*/ float* height=null) { + void get_transformed_size()(/*out*/ float* width=null, /*out*/ float* height=null) nothrow { clutter_actor_get_transformed_size(&this, width, height); } @@ -1517,7 +1518,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // assigned using clutter_actor_set_width(), the width returned will // be the same value. // RETURNS: the width of the actor, in pixels - float get_width()() { + float get_width()() nothrow { return clutter_actor_get_width(&this); } @@ -1538,7 +1539,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // transformation (i.e. scaling, rotation) // RETURNS: the X coordinate, in pixels, ignoring any - float get_x()() { + float get_x()() nothrow { return clutter_actor_get_x(&this); } @@ -1546,7 +1547,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Retrieves the horizontal alignment policy set using // clutter_actor_set_x_align(). // RETURNS: the horizontal alignment policy. - ActorAlign get_x_align()() { + ActorAlign get_x_align()() nothrow { return clutter_actor_get_x_align(&this); } @@ -1567,7 +1568,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // transformation (i.e. scaling, rotation) // RETURNS: the Y coordinate, in pixels, ignoring any - float get_y()() { + float get_y()() nothrow { return clutter_actor_get_y(&this); } @@ -1575,7 +1576,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Retrieves the vertical alignment policy set using // clutter_actor_set_y_align(). // RETURNS: the vertical alignment policy. - ActorAlign get_y_align()() { + ActorAlign get_y_align()() nothrow { return clutter_actor_get_y_align(&this); } @@ -1584,14 +1585,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // compass direction. If the center was specified in pixels or units // this will return %CLUTTER_GRAVITY_NONE. // RETURNS: the Z rotation center - Gravity get_z_rotation_gravity()() { + Gravity get_z_rotation_gravity()() nothrow { 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()() { + void grab_key_focus()() nothrow { clutter_actor_grab_key_focus(&this); } @@ -1600,7 +1601,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // %FALSE otherwise // RETURNS: %TRUE if the actor has any actions, - int has_actions()() { + int has_actions()() nothrow { return clutter_actor_has_actions(&this); } @@ -1616,14 +1617,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // If this function returns %FALSE, then the actor will normally // be allocated before it is next drawn on the screen. // RETURNS: %TRUE if the actor has an up-to-date allocation - int has_allocation()() { + int has_allocation()() nothrow { 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()() { + int has_clip()() nothrow { return clutter_actor_has_clip(&this); } @@ -1632,7 +1633,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // %FALSE otherwise // RETURNS: %TRUE if the actor has any constraints, - int has_constraints()() { + int has_constraints()() nothrow { return clutter_actor_has_constraints(&this); } @@ -1641,14 +1642,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // %FALSE otherwise // RETURNS: %TRUE if the actor has any effects, - int has_effects()() { + int has_effects()() nothrow { return clutter_actor_has_effects(&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()() { + int has_key_focus()() nothrow { return clutter_actor_has_key_focus(&this); } @@ -1666,7 +1667,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // %FALSE otherwise // RETURNS: %TRUE if the actor may have overlapping primitives, and - int has_overlaps()() { + int has_overlaps()() nothrow { return clutter_actor_has_overlaps(&this); } @@ -1676,7 +1677,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // %FALSE otherwise // RETURNS: %TRUE if the actor contains the pointer, and - int has_pointer()() { + int has_pointer()() nothrow { return clutter_actor_has_pointer(&this); } @@ -1688,7 +1689,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // If this function is called on an actor without a parent, the // #ClutterActor:show-on-set-parent property will be set to %FALSE // as a side-effect. - void hide()() { + void hide()() nothrow { clutter_actor_hide(&this); } @@ -1698,7 +1699,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // // prevent its children from being painted as well. - void hide_all()() { + void hide_all()() nothrow { clutter_actor_hide_all(&this); } @@ -1717,7 +1718,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // on @self. // : a #ClutterActor // : a child of @self, or %NULL - void insert_child_above()(Actor* child, Actor* sibling=null) { + void insert_child_above()(Actor* child, Actor* sibling=null) nothrow { clutter_actor_insert_child_above(&this, child, sibling); } @@ -1735,7 +1736,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // on @self. // : a #ClutterActor // : the index - void insert_child_at_index()(Actor* child, int index_) { + void insert_child_at_index()(Actor* child, int index_) nothrow { clutter_actor_insert_child_at_index(&this, child, index_); } @@ -1754,7 +1755,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // on @self. // : a #ClutterActor // : a child of @self, or %NULL - void insert_child_below()(Actor* child, Actor* sibling=null) { + void insert_child_below()(Actor* child, Actor* sibling=null) nothrow { clutter_actor_insert_child_below(&this, child, sibling); } @@ -1769,21 +1770,21 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // by a #ClutterClone, and %FALSE otherwise // RETURNS: %TRUE if the #ClutterActor is currently being painted - int is_in_clone_paint()() { + int is_in_clone_paint()() nothrow { 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()() { + int is_rotated()() nothrow { 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()() { + int is_scaled()() nothrow { return clutter_actor_is_scaled(&this); } @@ -1795,7 +1796,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function calls clutter_container_lower_child() internally. // : A #ClutterActor to lower below - void lower()(Actor* above=null) { + void lower()(Actor* above=null) nothrow { clutter_actor_lower(&this, above); } @@ -1805,7 +1806,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function calls clutter_actor_lower() internally. // // a %NULL sibling, instead. - void lower_bottom()() { + void lower_bottom()() nothrow { clutter_actor_lower_bottom(&this); } @@ -1820,7 +1821,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // When overriding map, it is mandatory to chain up to the parent // implementation. - void map()() { + void map()() nothrow { clutter_actor_map(&this); } @@ -1829,7 +1830,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the relative position of the actor toward its parent remains the same. // : X coordinate of the anchor point // : Y coordinate of the anchor point - void move_anchor_point()(float anchor_x, float anchor_y) { + void move_anchor_point()(float anchor_x, float anchor_y) nothrow { clutter_actor_move_anchor_point(&this, anchor_x, anchor_y); } @@ -1844,7 +1845,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // and later double the size of the actor, the anchor point will move // to the bottom right. // : #ClutterGravity. - void move_anchor_point_from_gravity()(Gravity gravity) { + void move_anchor_point_from_gravity()(Gravity gravity) nothrow { clutter_actor_move_anchor_point_from_gravity(&this, gravity); } @@ -1857,7 +1858,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // anchor point, see clutter_actor_set_anchor_point(). // : Distance to move Actor on X axis. // : Distance to move Actor on Y axis. - void move_by()(float dx, float dy) { + void move_by()(float dx, float dy) nothrow { clutter_actor_move_by(&this, dx, dy); } @@ -1874,7 +1875,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function does not paint the actor if the actor is set to 0, // unless it is performing a pick paint. - void paint()() { + void paint()() nothrow { clutter_actor_paint(&this); } @@ -1886,7 +1887,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the #ClutterActor API. This function is only useful for legacy // containers overriding the default implementation of the // #ClutterContainer interface. - void pop_internal()() { + void pop_internal()() nothrow { clutter_actor_pop_internal(&this); } @@ -1940,7 +1941,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the #ClutterActor API, and #ClutterActor implements the // #ClutterContainer interface, so this function is only useful // for legacy containers overriding the default implementation. - void push_internal()() { + void push_internal()() nothrow { clutter_actor_push_internal(&this); } @@ -1960,7 +1961,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // When you are implementing a custom actor you must queue a redraw // whenever some private state changes that will affect painting or // picking of your actor. - void queue_redraw()() { + void queue_redraw()() nothrow { clutter_actor_queue_redraw(&this); } @@ -1971,7 +1972,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // If @clip is %NULL this function is equivalent to // clutter_actor_queue_redraw(). // : a rectangular clip region, or %NULL - void queue_redraw_with_clip()(cairo.RectangleInt* clip=null) { + void queue_redraw_with_clip()(cairo.RectangleInt* clip=null) nothrow { clutter_actor_queue_redraw_with_clip(&this, clip); } @@ -1981,7 +1982,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // subclass implementations, not by applications directly. // // Queueing a new layout automatically queues a redraw as well. - void queue_relayout()() { + void queue_relayout()() nothrow { clutter_actor_queue_relayout(&this); } @@ -1993,7 +1994,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function calls clutter_container_raise_child() internally. // : A #ClutterActor to raise above. - void raise()(Actor* below=null) { + void raise()(Actor* below=null) nothrow { clutter_actor_raise(&this, below); } @@ -2003,7 +2004,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function calls clutter_actor_raise() internally. // // a %NULL sibling, instead. - void raise_top()() { + void raise_top()() nothrow { clutter_actor_raise_top(&this); } @@ -2022,7 +2023,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function does not realize child actors, except in the special // case that realizing the stage, when the stage is visible, will // suddenly map (and thus realize) the children of the stage. - void realize()() { + void realize()() nothrow { clutter_actor_realize(&this); } @@ -2031,7 +2032,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // The reference held by @self on the #ClutterAction will be released // : a #ClutterAction - void remove_action()(Action* action) { + void remove_action()(Action* action) nothrow { clutter_actor_remove_action(&this, action); } @@ -2039,7 +2040,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Removes the #ClutterAction with the given name from the list // of actions applied to @self // : the name of the action to remove - void remove_action_by_name()(char* name) { + void remove_action_by_name()(char* name) nothrow { clutter_actor_remove_action_by_name(&this, name); } @@ -2048,7 +2049,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function releases the reference added by inserting a child actor // in the list of children of @self. - void remove_all_children()() { + void remove_all_children()() nothrow { clutter_actor_remove_all_children(&this); } @@ -2063,11 +2064,11 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function will emit the #ClutterContainer::actor-removed // signal on @self. // : a #ClutterActor - void remove_child()(Actor* child) { + void remove_child()(Actor* child) nothrow { clutter_actor_remove_child(&this, child); } // Removes clip area from @self. - void remove_clip()() { + void remove_clip()() nothrow { clutter_actor_remove_clip(&this); } @@ -2076,7 +2077,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // The reference held by @self on the #ClutterConstraint will be released // : a #ClutterConstraint - void remove_constraint()(Constraint* constraint) { + void remove_constraint()(Constraint* constraint) nothrow { clutter_actor_remove_constraint(&this, constraint); } @@ -2084,7 +2085,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Removes the #ClutterConstraint with the given name from the list // of constraints applied to @self // : the name of the constraint to remove - void remove_constraint_by_name()(char* name) { + void remove_constraint_by_name()(char* name) nothrow { clutter_actor_remove_constraint_by_name(&this, name); } @@ -2093,7 +2094,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // The reference held by @self on the #ClutterEffect will be released // : a #ClutterEffect - void remove_effect()(Effect* effect) { + void remove_effect()(Effect* effect) nothrow { clutter_actor_remove_effect(&this, effect); } @@ -2101,7 +2102,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Removes the #ClutterEffect with the given name from the list // of effects applied to @self // : the name of the effect to remove - void remove_effect_by_name()(char* name) { + void remove_effect_by_name()(char* name) nothrow { clutter_actor_remove_effect_by_name(&this, name); } @@ -2126,7 +2127,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // to avoid the reference count dropping to zero and the actor being // destroyed. // : the new #ClutterActor parent - void reparent()(Actor* new_parent) { + void reparent()(Actor* new_parent) nothrow { clutter_actor_reparent(&this, new_parent); } @@ -2134,7 +2135,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Replaces @old_child with @new_child in the list of children of @self. // : the child of @self to replace // : the #ClutterActor to replace @old_child - void replace_child()(Actor* old_child, Actor* new_child) { + void replace_child()(Actor* old_child, Actor* new_child) nothrow { clutter_actor_replace_child(&this, old_child, new_child); } @@ -2212,7 +2213,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // ]| // : a #ClutterActorBox // : allocation flags - void set_allocation()(ActorBox* box, AllocationFlags flags) { + void set_allocation()(ActorBox* box, AllocationFlags flags) nothrow { clutter_actor_set_allocation(&this, box, flags); } @@ -2223,7 +2224,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // of the actor. // : X coordinate of the anchor point // : Y coordinate of the anchor point - void set_anchor_point()(float anchor_x, float anchor_y) { + void set_anchor_point()(float anchor_x, float anchor_y) nothrow { clutter_actor_set_anchor_point(&this, anchor_x, anchor_y); } @@ -2237,7 +2238,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // and later double the size of the actor, the anchor point will move // to the bottom right. // : #ClutterGravity. - void set_anchor_point_from_gravity()(Gravity gravity) { + void set_anchor_point_from_gravity()(Gravity gravity) nothrow { clutter_actor_set_anchor_point_from_gravity(&this, gravity); } @@ -2250,7 +2251,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // To check whether an actor has a background color, you can use the // #ClutterActor:background-color-set actor property. // : a #ClutterColor, or %NULL to unset a previously set color - void set_background_color()(Color* color=null) { + void set_background_color()(Color* color=null) nothrow { clutter_actor_set_background_color(&this, color); } @@ -2264,7 +2265,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or change state on @child. // : a #ClutterActor child of @self // : a #ClutterActor child of @self, or %NULL - void set_child_above_sibling()(Actor* child, Actor* sibling=null) { + void set_child_above_sibling()(Actor* child, Actor* sibling=null) nothrow { clutter_actor_set_child_above_sibling(&this, child, sibling); } @@ -2276,7 +2277,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // emit signals or change state on @child. // : a #ClutterActor child of @self // : the new index for @child - void set_child_at_index()(Actor* child, int index_) { + void set_child_at_index()(Actor* child, int index_) nothrow { clutter_actor_set_child_at_index(&this, child, index_); } @@ -2290,7 +2291,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or change state on @child. // : a #ClutterActor child of @self // : a #ClutterActor child of @self, or %NULL - void set_child_below_sibling()(Actor* child, Actor* sibling=null) { + void set_child_below_sibling()(Actor* child, Actor* sibling=null) nothrow { clutter_actor_set_child_below_sibling(&this, child, sibling); } @@ -2302,7 +2303,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : Y offset of the clip rectangle // : Width of the clip rectangle // : Height of the clip rectangle - void set_clip()(float xoff, float yoff, float width, float height) { + void set_clip()(float xoff, float yoff, float width, float height) nothrow { clutter_actor_set_clip(&this, xoff, yoff, width, height); } @@ -2310,7 +2311,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Sets whether @self should be clipped to the same size as its // allocation // : %TRUE to apply a clip tracking the allocation - void set_clip_to_allocation()(int clip_set) { + void set_clip_to_allocation()(int clip_set) nothrow { clutter_actor_set_clip_to_allocation(&this, clip_set); } @@ -2319,7 +2320,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // The unit used by @depth is dependant on the perspective setup. See // also clutter_stage_set_perspective(). // : Z co-ord - void set_depth()(float depth) { + void set_depth()(float depth) nothrow { clutter_actor_set_depth(&this, depth); } @@ -2327,7 +2328,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Sets whether an actor has a fixed position set (and will thus be // unaffected by any layout manager). // : whether to use fixed position - void set_fixed_position_set()(int is_set) { + void set_fixed_position_set()(int is_set) nothrow { clutter_actor_set_fixed_position_set(&this, is_set); } @@ -2336,7 +2337,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function will emit notifications for the changed properties // : the flags to set - void set_flags()(ActorFlags flags) { + void set_flags()(ActorFlags flags) nothrow { clutter_actor_set_flags(&this, flags); } @@ -2348,7 +2349,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // clutter_actor_set_size() instead. // : A #ClutterGeometry - void set_geometry()(Geometry* geometry) { + void set_geometry()(Geometry* geometry) nothrow { clutter_actor_set_geometry(&this, geometry); } @@ -2361,7 +2362,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function sets both the minimum and natural size of the actor. // : Requested new height for the actor, in pixels, or -1 - void set_height()(float height) { + void set_height()(float height) nothrow { clutter_actor_set_height(&this, height); } @@ -2373,49 +2374,49 @@ struct Actor /* : GObject.InitiallyUnowned */ { // will be released either when the layout manager is removed, or when // the actor is destroyed. // : a #ClutterLayoutManager, or %NULL to unset it - void set_layout_manager()(LayoutManager* manager=null) { + void set_layout_manager()(LayoutManager* manager=null) nothrow { clutter_actor_set_layout_manager(&this, manager); } // VERSION: 1.10 // Sets all the components of the margin of a #ClutterActor. // : a #ClutterMargin - void set_margin()(Margin* margin) { + void set_margin()(Margin* margin) nothrow { clutter_actor_set_margin(&this, margin); } // VERSION: 1.10 // Sets the margin from the bottom of a #ClutterActor. // : the bottom margin - void set_margin_bottom()(float margin) { + void set_margin_bottom()(float margin) nothrow { clutter_actor_set_margin_bottom(&this, margin); } // VERSION: 1.10 // Sets the margin from the left of a #ClutterActor. // : the left margin - void set_margin_left()(float margin) { + void set_margin_left()(float margin) nothrow { clutter_actor_set_margin_left(&this, margin); } // VERSION: 1.10 // Sets the margin from the right of a #ClutterActor. // : the right margin - void set_margin_right()(float margin) { + void set_margin_right()(float margin) nothrow { clutter_actor_set_margin_right(&this, margin); } // VERSION: 1.10 // Sets the margin from the top of a #ClutterActor. // : the top margin - void set_margin_top()(float margin) { + void set_margin_top()(float margin) nothrow { clutter_actor_set_margin_top(&this, margin); } // Sets the given name to @self. The name can be used to identify // a #ClutterActor. // : Textual tag to apply to actor - void set_name()(char* name) { + void set_name()(char* name) nothrow { clutter_actor_set_name(&this, name); } @@ -2478,14 +2479,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // recommended to override the has_overlaps() virtual to return %FALSE // for maximum efficiency. // : New offscreen redirect flags for the actor. - void set_offscreen_redirect()(OffscreenRedirect redirect) { + void set_offscreen_redirect()(OffscreenRedirect redirect) nothrow { clutter_actor_set_offscreen_redirect(&this, redirect); } // Sets the actor's opacity, with zero being completely transparent and // 255 (0xff) being fully opaque. // : New opacity value for the actor. - void set_opacity()(ubyte opacity) { + void set_opacity()(ubyte opacity) nothrow { clutter_actor_set_opacity(&this, opacity); } @@ -2499,7 +2500,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function should only be called by legacy #ClutterActors // implementing the #ClutterContainer interface. // : A new #ClutterActor parent - void set_parent()(Actor* parent) { + void set_parent()(Actor* parent) nothrow { clutter_actor_set_parent(&this, parent); } @@ -2510,14 +2511,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // layout manager and force a fixed position. // : New left position of actor in pixels. // : New top position of actor in pixels. - void set_position()(float x, float y) { + void set_position()(float x, float y) nothrow { 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) { + void set_reactive()(int reactive) nothrow { clutter_actor_set_reactive(&this, reactive); } @@ -2528,7 +2529,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // clutter_actor_get_preferred_width() and // clutter_actor_get_preferred_height() // : the request mode - void set_request_mode()(RequestMode mode) { + void set_request_mode()(RequestMode mode) nothrow { clutter_actor_set_request_mode(&this, mode); } @@ -2550,7 +2551,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : X coordinate of the rotation center // : Y coordinate of the rotation center // : Z coordinate of the rotation center - void set_rotation()(RotateAxis axis, double angle, float x, float y, float z) { + void set_rotation()(RotateAxis axis, double angle, float x, float y, float z) nothrow { clutter_actor_set_rotation(&this, axis, angle, x, y, z); } @@ -2560,7 +2561,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // unchanged by this function and defaults to 0,0. // : double factor to scale actor by horizontally. // : double factor to scale actor by vertically. - void set_scale()(double scale_x, double scale_y) { + void set_scale()(double scale_x, double scale_y) nothrow { clutter_actor_set_scale(&this, scale_x, scale_y); } @@ -2572,7 +2573,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : double factor to scale actor by vertically. // : X coordinate of the center of the scale. // : Y coordinate of the center of the scale - void set_scale_full()(double scale_x, double scale_y, float center_x, float center_y) { + void set_scale_full()(double scale_x, double scale_y, float center_x, float center_y) nothrow { clutter_actor_set_scale_full(&this, scale_x, scale_y, center_x, center_y); } @@ -2585,7 +2586,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : double factor to scale actor by horizontally. // : double factor to scale actor by vertically. // : the location of the scale center expressed as a compass direction. - void set_scale_with_gravity()(double scale_x, double scale_y, Gravity gravity) { + void set_scale_with_gravity()(double scale_x, double scale_y, Gravity gravity) nothrow { clutter_actor_set_scale_with_gravity(&this, scale_x, scale_y, gravity); } @@ -2605,7 +2606,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // clutter_actor_add_effect() instead. // RETURNS: %TRUE if the shader was successfully applied // : a #ClutterShader or %NULL to unset the shader. - int set_shader()(Shader* shader=null) { + int set_shader()(Shader* shader=null) nothrow { return clutter_actor_set_shader(&this, shader); } @@ -2615,7 +2616,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // to @actor. // : the name of the parameter // : the value of the parameter - void set_shader_param()(char* param, GObject2.Value* value) { + void set_shader_param()(char* param, GObject2.Value* value) nothrow { clutter_actor_set_shader_param(&this, param, value); } @@ -2625,7 +2626,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // to @actor. // : the name of the parameter // : the value of the parameter - void set_shader_param_float()(char* param, float value) { + void set_shader_param_float()(char* param, float value) nothrow { clutter_actor_set_shader_param_float(&this, param, value); } @@ -2635,7 +2636,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // @actor. // : the name of the parameter // : the value of the parameter - void set_shader_param_int()(char* param, int value) { + void set_shader_param_int()(char* param, int value) nothrow { clutter_actor_set_shader_param_int(&this, param, value); } @@ -2651,7 +2652,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // This function sets or unsets both the minimum and natural size. // : New width of actor in pixels, or -1 // : New height of actor in pixels, or -1 - void set_size()(float width, float height) { + void set_size()(float width, float height) nothrow { clutter_actor_set_size(&this, width, height); } @@ -2667,7 +2668,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // special handling when the text direction changes, should connect to // the #GObject::notify signal for the #ClutterActor:text-direction property // : the text direction for @self - void set_text_direction()(TextDirection text_dir) { + void set_text_direction()(TextDirection text_dir) nothrow { clutter_actor_set_text_direction(&this, text_dir); } @@ -2680,7 +2681,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function sets both the minimum and natural size of the actor. // : Requested new width for the actor, in pixels, or -1 - void set_width()(float width) { + void set_width()(float width) nothrow { clutter_actor_set_width(&this, width); } @@ -2690,7 +2691,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Overrides any layout manager and forces a fixed position for // the actor. // : the actor's position on the X axis - void set_x()(float x) { + void set_x()(float x) nothrow { clutter_actor_set_x(&this, x); } @@ -2700,7 +2701,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // See also the #ClutterActor:x-align property. // : the horizontal alignment policy - void set_x_align()(ActorAlign x_align) { + void set_x_align()(ActorAlign x_align) nothrow { clutter_actor_set_x_align(&this, x_align); } @@ -2710,7 +2711,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // Overrides any layout manager and forces a fixed position for // the actor. // : the actor's position on the Y axis - void set_y()(float y) { + void set_y()(float y) nothrow { clutter_actor_set_y(&this, y); } @@ -2720,7 +2721,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // See also the #ClutterActor:y-align property. // : the vertical alignment policy - void set_y_align()(ActorAlign y_align) { + void set_y_align()(ActorAlign y_align) nothrow { clutter_actor_set_y_align(&this, y_align); } @@ -2732,7 +2733,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // will move accordingly. // : the angle of rotation // : the center point of the rotation - void set_z_rotation_from_gravity()(double angle, Gravity gravity) { + void set_z_rotation_from_gravity()(double angle, Gravity gravity) nothrow { clutter_actor_set_z_rotation_from_gravity(&this, angle, gravity); } @@ -2744,7 +2745,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // %FALSE otherwise // RETURNS: %TRUE if the actor should paint its silhouette, - int should_pick_paint()() { + int should_pick_paint()() nothrow { return clutter_actor_should_pick_paint(&this); } @@ -2756,14 +2757,14 @@ struct Actor /* : GObject.InitiallyUnowned */ { // If this function is called on an actor without a parent, the // #ClutterActor:show-on-set-parent will be set to %TRUE as a side // effect. - void show()() { + void show()() nothrow { clutter_actor_show(&this); } // VERSION: 0.2 // DEPRECATED (v1.10) method: show_all - Actors are visible by default // Calls clutter_actor_show() on all children of an actor (if any). - void show_all()() { + void show_all()() nothrow { clutter_actor_show_all(&this); } @@ -2788,7 +2789,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // : y screen coordinate of the point to unproject // : return location for the unprojected x coordinance // : return location for the unprojected y coordinance - int transform_stage_point()(float x, float y, /*out*/ float* x_out, /*out*/ float* y_out) { + int transform_stage_point()(float x, float y, /*out*/ float* x_out, /*out*/ float* y_out) nothrow { return clutter_actor_transform_stage_point(&this, x, y, x_out, y_out); } @@ -2808,7 +2809,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // the #ClutterActorClass.destroy() or the #GObjectClass.dispose() // implementation, but it is guaranteed to be called before the // #GObjectClass.finalize() implementation. - void unmap()() { + void unmap()() nothrow { clutter_actor_unmap(&this); } @@ -2823,7 +2824,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function should only be called by legacy #ClutterActors // implementing the #ClutterContainer interface. - void unparent()() { + void unparent()() nothrow { clutter_actor_unparent(&this); } @@ -2840,7 +2841,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // may not be expecting. // // This function should not be called by application code. - void unrealize()() { + void unrealize()() nothrow { clutter_actor_unrealize(&this); } @@ -2849,7 +2850,7 @@ struct Actor /* : GObject.InitiallyUnowned */ { // // This function will emit notifications for the changed properties // : the flags to unset - void unset_flags()(ActorFlags flags) { + void unset_flags()(ActorFlags flags) nothrow { clutter_actor_unset_flags(&this, flags); } @@ -2862,13 +2863,15 @@ struct Actor /* : GObject.InitiallyUnowned */ { // want use this signal instead. // : a #ClutterActorBox with the new allocation // : #ClutterAllocationFlags for the allocation - extern (C) alias static void function (Actor* this_, ActorBox* box, AllocationFlags* flags, void* user_data=null) signal_allocation_changed; + extern (C) alias static void function (Actor* this_, ActorBox* box, AllocationFlags* flags, void* user_data=null) nothrow signal_allocation_changed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_allocation_changed)||_ttmm!(CB, signal_allocation_changed)()) { return signal_connect_data!()(&this, cast(char*)"allocation-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -2880,8 +2883,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterButtonEvent - extern (C) alias static c_int function (Actor* this_, ButtonEvent* 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) { + extern (C) alias static c_int function (Actor* this_, ButtonEvent* event, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_button_press_event)||_ttmm!(CB, signal_button_press_event)()) { return signal_connect_data!()(&this, cast(char*)"button-press-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -2893,8 +2898,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterButtonEvent - extern (C) alias static c_int function (Actor* this_, ButtonEvent* 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) { + extern (C) alias static c_int function (Actor* this_, ButtonEvent* event, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_button_release_event)||_ttmm!(CB, signal_button_release_event)()) { return signal_connect_data!()(&this, cast(char*)"button-release-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -2911,8 +2918,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // 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) { + extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) nothrow signal_captured_event; + ulong signal_connect(string name:"captured-event", CB:signal_captured_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_captured_event)||_ttmm!(CB, signal_captured_event)()) { return signal_connect_data!()(&this, cast(char*)"captured-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -2932,8 +2941,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // class handler of this signal and call clutter_actor_destroy() on // 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_destroy; + ulong signal_connect(string name:"destroy", CB:signal_destroy) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_destroy)||_ttmm!(CB, signal_destroy)()) { return signal_connect_data!()(&this, cast(char*)"destroy", cast(GObject2.Callback)cb, data, null, cf); } @@ -2944,8 +2955,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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_, CrossingEvent* 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) { + extern (C) alias static c_int function (Actor* this_, CrossingEvent* event, void* user_data=null) nothrow signal_enter_event; + ulong signal_connect(string name:"enter-event", CB:signal_enter_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_enter_event)||_ttmm!(CB, signal_enter_event)()) { return signal_connect_data!()(&this, cast(char*)"enter-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -2959,8 +2972,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // 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) { + extern (C) alias static c_int function (Actor* this_, Event* event, void* user_data=null) nothrow signal_event; + ulong signal_connect(string name:"event", CB:signal_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_event)||_ttmm!(CB, signal_event)()) { return signal_connect_data!()(&this, cast(char*)"event", cast(GObject2.Callback)cb, data, null, cf); } @@ -2968,24 +2983,30 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_hide; + ulong signal_connect(string name:"hide", CB:signal_hide) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_hide)||_ttmm!(CB, signal_hide)()) { 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_key_focus_in)||_ttmm!(CB, signal_key_focus_in)()) { 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_key_focus_out)||_ttmm!(CB, signal_key_focus_out)()) { return signal_connect_data!()(&this, cast(char*)"key-focus-out", cast(GObject2.Callback)cb, data, null, cf); } @@ -2997,8 +3018,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterKeyEvent - extern (C) alias static c_int function (Actor* this_, KeyEvent* 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) { + extern (C) alias static c_int function (Actor* this_, KeyEvent* event, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_key_press_event)||_ttmm!(CB, signal_key_press_event)()) { return signal_connect_data!()(&this, cast(char*)"key-press-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -3011,8 +3034,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterKeyEvent - extern (C) alias static c_int function (Actor* this_, KeyEvent* 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) { + extern (C) alias static c_int function (Actor* this_, KeyEvent* event, void* user_data=null) nothrow 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) + if (is(typeof(cb)==signal_key_release_event)||_ttmm!(CB, signal_key_release_event)()) { return signal_connect_data!()(&this, cast(char*)"key-release-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -3023,8 +3048,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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_, CrossingEvent* 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) { + extern (C) alias static c_int function (Actor* this_, CrossingEvent* event, void* user_data=null) nothrow signal_leave_event; + ulong signal_connect(string name:"leave-event", CB:signal_leave_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_leave_event)||_ttmm!(CB, signal_leave_event)()) { return signal_connect_data!()(&this, cast(char*)"leave-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -3036,8 +3063,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterMotionEvent - extern (C) alias static c_int function (Actor* this_, MotionEvent* 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) { + extern (C) alias static c_int function (Actor* this_, MotionEvent* event, void* user_data=null) nothrow signal_motion_event; + ulong signal_connect(string name:"motion-event", CB:signal_motion_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_motion_event)||_ttmm!(CB, signal_motion_event)()) { return signal_connect_data!()(&this, cast(char*)"motion-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -3050,8 +3079,10 @@ 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_paint; + ulong signal_connect(string name:"paint", CB:signal_paint) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_paint)||_ttmm!(CB, signal_paint)()) { return signal_connect_data!()(&this, cast(char*)"paint", cast(GObject2.Callback)cb, data, null, cf); } @@ -3059,8 +3090,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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=null, 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) { + extern (C) alias static void function (Actor* this_, Actor* old_parent=null, void* user_data=null) nothrow signal_parent_set; + ulong signal_connect(string name:"parent-set", CB:signal_parent_set) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_parent_set)||_ttmm!(CB, signal_parent_set)()) { return signal_connect_data!()(&this, cast(char*)"parent-set", cast(GObject2.Callback)cb, data, null, cf); } @@ -3077,8 +3110,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // It is possible to connect a handler to the ::pick signal in order // 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) { + extern (C) alias static void function (Actor* this_, Color* color, void* user_data=null) nothrow signal_pick; + ulong signal_connect(string name:"pick", CB:signal_pick) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_pick)||_ttmm!(CB, signal_pick)()) { return signal_connect_data!()(&this, cast(char*)"pick", cast(GObject2.Callback)cb, data, null, cf); } @@ -3129,8 +3164,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // been completed you should connect to the ::paint signal on the // 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) { + extern (C) alias static void function (Actor* this_, Actor* origin, void* user_data=null) nothrow signal_queue_redraw; + ulong signal_connect(string name:"queue-redraw", CB:signal_queue_redraw) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_queue_redraw)||_ttmm!(CB, signal_queue_redraw)()) { return signal_connect_data!()(&this, cast(char*)"queue-redraw", cast(GObject2.Callback)cb, data, null, cf); } @@ -3146,8 +3183,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // The main purpose of this signal is to allow relayout to be propagated // 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_queue_relayout; + ulong signal_connect(string name:"queue-relayout", CB:signal_queue_relayout) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_queue_relayout)||_ttmm!(CB, signal_queue_relayout)()) { return signal_connect_data!()(&this, cast(char*)"queue-relayout", cast(GObject2.Callback)cb, data, null, cf); } @@ -3155,8 +3194,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_realize; + ulong signal_connect(string name:"realize", CB:signal_realize) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_realize)||_ttmm!(CB, signal_realize)()) { return signal_connect_data!()(&this, cast(char*)"realize", cast(GObject2.Callback)cb, data, null, cf); } @@ -3168,8 +3209,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // or %FALSE to continue the emission. // RETURNS: %TRUE if the event has been handled by the actor, // : a #ClutterScrollEvent - extern (C) alias static c_int function (Actor* this_, ScrollEvent* 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) { + extern (C) alias static c_int function (Actor* this_, ScrollEvent* event, void* user_data=null) nothrow signal_scroll_event; + ulong signal_connect(string name:"scroll-event", CB:signal_scroll_event) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_scroll_event)||_ttmm!(CB, signal_scroll_event)()) { return signal_connect_data!()(&this, cast(char*)"scroll-event", cast(GObject2.Callback)cb, data, null, cf); } @@ -3177,8 +3220,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_show; + ulong signal_connect(string name:"show", CB:signal_show) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_show)||_ttmm!(CB, signal_show)()) { return signal_connect_data!()(&this, cast(char*)"show", cast(GObject2.Callback)cb, data, null, cf); } @@ -3186,8 +3231,10 @@ struct Actor /* : GObject.InitiallyUnowned */ { // 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) { + extern (C) alias static void function (Actor* this_, void* user_data=null) nothrow signal_unrealize; + ulong signal_connect(string name:"unrealize", CB:signal_unrealize) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_unrealize)||_ttmm!(CB, signal_unrealize)()) { return signal_connect_data!()(&this, cast(char*)"unrealize", cast(GObject2.Callback)cb, data, null, cf); } @@ -3224,13 +3271,14 @@ struct ActorBox { // : Y coordinate of the top left point // : X coordinate of the bottom right point // : Y coordinate of the bottom right point - static ActorBox* /*new*/ new_()(float x_1, float y_1, float x_2, float y_2) { + static ActorBox* /*new*/ new_()(float x_1, float y_1, float x_2, float y_2) nothrow { return clutter_actor_box_new(x_1, y_1, x_2, y_2); } + alias new_!() opCall; // VERSION: 1.2 // Clamps the components of @box to the nearest integer - void clamp_to_pixel()() { + void clamp_to_pixel()() nothrow { clutter_actor_box_clamp_to_pixel(&this); } @@ -3240,7 +3288,7 @@ struct ActorBox { // RETURNS: %TRUE if the point is contained by the #ClutterActorBox // : X coordinate of the point // : Y coordinate of the point - int contains()(float x, float y) { + int contains()(float x, float y) nothrow { return clutter_actor_box_contains(&this, x, y); } @@ -3249,7 +3297,7 @@ struct ActorBox { // // clutter_actor_box_free() to free the allocated resources // RETURNS: a newly allocated copy of #ClutterActorBox. Use - ActorBox* /*new*/ copy()() { + ActorBox* /*new*/ copy()() nothrow { return clutter_actor_box_copy(&this); } @@ -3257,14 +3305,14 @@ struct ActorBox { // Checks @box_a and @box_b for equality // RETURNS: %TRUE if the passed #ClutterActorBox are equal // : a #ClutterActorBox - int equal()(ActorBox* box_b) { + int equal()(ActorBox* box_b) nothrow { 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()() { + void free()() nothrow { clutter_actor_box_free(&this); } @@ -3272,21 +3320,21 @@ struct ActorBox { // 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 - void from_vertices()(Vertex verts) { + void from_vertices()(Vertex verts) nothrow { 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()() { + float get_area()() nothrow { 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()() { + float get_height()() nothrow { return clutter_actor_box_get_height(&this); } @@ -3294,7 +3342,7 @@ struct ActorBox { // Retrieves the origin of @box // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL - void get_origin()(/*out*/ float* x=null, /*out*/ float* y=null) { + void get_origin()(/*out*/ float* x=null, /*out*/ float* y=null) nothrow { clutter_actor_box_get_origin(&this, x, y); } @@ -3302,28 +3350,28 @@ struct ActorBox { // Retrieves the size of @box // : return location for the width, or %NULL // : return location for the height, or %NULL - void get_size()(/*out*/ float* width=null, /*out*/ float* height=null) { + void get_size()(/*out*/ float* width=null, /*out*/ float* height=null) nothrow { 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()() { + float get_width()() nothrow { 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()() { + float get_x()() nothrow { 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()() { + float get_y()() nothrow { return clutter_actor_box_get_y(&this); } @@ -3333,7 +3381,7 @@ struct ActorBox { // : the final #ClutterActorBox // : the interpolation progress // : return location for the interpolation - void interpolate()(ActorBox* final_, double progress, /*out*/ ActorBox* result) { + void interpolate()(ActorBox* final_, double progress, /*out*/ ActorBox* result) nothrow { clutter_actor_box_interpolate(&this, final_, progress, result); } @@ -3341,7 +3389,7 @@ struct ActorBox { // 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 - void set_origin()(float x, float y) { + void set_origin()(float x, float y) nothrow { clutter_actor_box_set_origin(&this, x, y); } @@ -3349,7 +3397,7 @@ struct ActorBox { // Sets the size of @box, maintaining the origin of the #ClutterActorBox. // : the new width // : the new height - void set_size()(float width, float height) { + void set_size()(float width, float height) nothrow { clutter_actor_box_set_size(&this, width, height); } @@ -3357,7 +3405,7 @@ struct ActorBox { // 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 - void union_()(ActorBox* b, /*out*/ ActorBox* result) { + void union_()(ActorBox* b, /*out*/ ActorBox* result) nothrow { clutter_actor_box_union(&this, b, result); } } @@ -3365,52 +3413,52 @@ struct ActorBox { // Base class for actors. struct ActorClass { private GObject2.InitiallyUnownedClass parent_class; - extern (C) void function (Actor* self) show; - extern (C) void function (Actor* self) show_all; - extern (C) void function (Actor* self) hide; - extern (C) void function (Actor* self) hide_all; - extern (C) void function (Actor* self) realize; - extern (C) void function (Actor* self) unrealize; - extern (C) void function (Actor* self) map; - extern (C) void function (Actor* self) unmap; - extern (C) void function (Actor* self) paint; - extern (C) void function (Actor* actor, Actor* old_parent) parent_set; - extern (C) void function (Actor* self) destroy; - extern (C) void function (Actor* actor, Color* color) pick; - extern (C) void function (Actor* actor, Actor* leaf_that_queued) queue_redraw; + extern (C) void function (Actor* self) nothrow show; + extern (C) void function (Actor* self) nothrow show_all; + extern (C) void function (Actor* self) nothrow hide; + extern (C) void function (Actor* self) nothrow hide_all; + extern (C) void function (Actor* self) nothrow realize; + extern (C) void function (Actor* self) nothrow unrealize; + extern (C) void function (Actor* self) nothrow map; + extern (C) void function (Actor* self) nothrow unmap; + extern (C) void function (Actor* self) nothrow paint; + extern (C) void function (Actor* actor, Actor* old_parent) nothrow parent_set; + extern (C) void function (Actor* self) nothrow destroy; + extern (C) void function (Actor* actor, Color* color) nothrow pick; + extern (C) void function (Actor* actor, Actor* leaf_that_queued) nothrow queue_redraw; // : available height when computing the preferred width, or a negative value to indicate that no height is defined // : return location for minimum width, or %NULL // : return location for the natural width, or %NULL - extern (C) void function (Actor* self, float for_height, /*out*/ float* min_width_p=null, /*out*/ float* natural_width_p=null) get_preferred_width; + extern (C) void function (Actor* self, float for_height, /*out*/ float* min_width_p=null, /*out*/ float* natural_width_p=null) nothrow get_preferred_width; // : available width to assume in computing desired height, or a negative value to indicate that no width is defined // : return location for minimum height, or %NULL // : return location for natural height, or %NULL - extern (C) void function (Actor* self, float for_width, /*out*/ float* min_height_p=null, /*out*/ float* natural_height_p=null) get_preferred_height; + extern (C) void function (Actor* self, float for_width, /*out*/ float* min_height_p=null, /*out*/ float* natural_height_p=null) nothrow get_preferred_height; // : new allocation of the actor, in parent-relative coordinates // : flags that control the allocation - extern (C) void function (Actor* self, ActorBox* box, AllocationFlags flags) allocate; - extern (C) void function (Actor* actor, Cogl.Matrix* matrix) apply_transform; - extern (C) int function (Actor* actor, Event* event) event; - extern (C) int function (Actor* actor, ButtonEvent* event) button_press_event; - extern (C) int function (Actor* actor, ButtonEvent* event) button_release_event; - extern (C) int function (Actor* actor, ScrollEvent* event) scroll_event; - extern (C) int function (Actor* actor, KeyEvent* event) key_press_event; - extern (C) int function (Actor* actor, KeyEvent* event) key_release_event; - extern (C) int function (Actor* actor, MotionEvent* event) motion_event; - extern (C) int function (Actor* actor, CrossingEvent* event) enter_event; - extern (C) int function (Actor* actor, CrossingEvent* event) leave_event; - extern (C) int function (Actor* actor, Event* event) captured_event; - extern (C) void function (Actor* actor) key_focus_in; - extern (C) void function (Actor* actor) key_focus_out; - extern (C) void function (Actor* self) queue_relayout; + extern (C) void function (Actor* self, ActorBox* box, AllocationFlags flags) nothrow allocate; + extern (C) void function (Actor* actor, Cogl.Matrix* matrix) nothrow apply_transform; + extern (C) int function (Actor* actor, Event* event) nothrow event; + extern (C) int function (Actor* actor, ButtonEvent* event) nothrow button_press_event; + extern (C) int function (Actor* actor, ButtonEvent* event) nothrow button_release_event; + extern (C) int function (Actor* actor, ScrollEvent* event) nothrow scroll_event; + extern (C) int function (Actor* actor, KeyEvent* event) nothrow key_press_event; + extern (C) int function (Actor* actor, KeyEvent* event) nothrow key_release_event; + extern (C) int function (Actor* actor, MotionEvent* event) nothrow motion_event; + extern (C) int function (Actor* actor, CrossingEvent* event) nothrow enter_event; + extern (C) int function (Actor* actor, CrossingEvent* event) nothrow leave_event; + extern (C) int function (Actor* actor, Event* event) nothrow captured_event; + extern (C) void function (Actor* actor) nothrow key_focus_in; + extern (C) void function (Actor* actor) nothrow key_focus_out; + extern (C) void function (Actor* self) nothrow queue_relayout; // RETURNS: the #AtkObject associated with @actor - extern (C) Atk.Object* function (Actor* self) get_accessible; - extern (C) int function (Actor* actor, PaintVolume* volume) get_paint_volume; + extern (C) Atk.Object* function (Actor* self) nothrow get_accessible; + extern (C) int function (Actor* actor, PaintVolume* volume) nothrow get_paint_volume; // RETURNS: %TRUE if the actor may have overlapping primitives, and - extern (C) int function (Actor* self) has_overlaps; + extern (C) int function (Actor* self) nothrow has_overlaps; private void*[28] _padding_dummy; } @@ -3453,7 +3501,7 @@ struct ActorIter /* Version 1.10 */ { // } // ]| // : a #ClutterActor - void init()(Actor* root) { + void init()(Actor* root) nothrow { clutter_actor_iter_init(&this, root); } @@ -3468,10 +3516,10 @@ struct ActorIter /* Version 1.10 */ { // the contents of @child are undefined. // RETURNS: %TRUE if the iterator could advance, and %FALSE otherwise. // : return location for a #ClutterActor - int next()(/*out*/ Actor** child) { + int next()(/*out*/ Actor** child) nothrow { return clutter_actor_iter_next(&this, child); } - int prev()(Actor** child) { + int prev()(Actor** child) nothrow { return clutter_actor_iter_prev(&this, child); } @@ -3484,7 +3532,7 @@ struct ActorIter /* Version 1.10 */ { // than once for the same actor. // // This function will call clutter_actor_remove_child() internally. - void remove()() { + void remove()() nothrow { clutter_actor_iter_remove(&this); } } @@ -3503,14 +3551,14 @@ struct ActorMeta /* : GObject.InitiallyUnowned */ /* Version 1.4 */ { // VERSION: 1.4 // Retrieves a pointer to the #ClutterActor that owns @meta // RETURNS: a pointer to a #ClutterActor or %NULL - Actor* get_actor()() { + Actor* get_actor()() nothrow { 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()() { + int get_enabled()() nothrow { return clutter_actor_meta_get_enabled(&this); } @@ -3521,14 +3569,14 @@ struct ActorMeta /* : GObject.InitiallyUnowned */ /* Version 1.4 */ { // by the #ClutterActorMeta instance and it should not be modified // or freed // RETURNS: the name of the #ClutterActorMeta - char* get_name()() { + char* get_name()() nothrow { 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) { + void set_enabled()(int is_enabled) nothrow { clutter_actor_meta_set_enabled(&this, is_enabled); } @@ -3537,7 +3585,7 @@ struct ActorMeta /* : GObject.InitiallyUnowned */ /* Version 1.4 */ { // // The name can be used to identify the #ClutterActorMeta instance // : the name of @meta - void set_name()(char* name) { + void set_name()(char* name) nothrow { clutter_actor_meta_set_name(&this, name); } } @@ -3547,14 +3595,14 @@ struct ActorMeta /* : GObject.InitiallyUnowned */ /* Version 1.4 */ { // only private data struct ActorMetaClass /* Version 1.4 */ { private GObject2.InitiallyUnownedClass parent_class; - extern (C) void function (ActorMeta* meta, Actor* actor) set_actor; - extern (C) void function () _clutter_meta1; - extern (C) void function () _clutter_meta2; - extern (C) void function () _clutter_meta3; - extern (C) void function () _clutter_meta4; - extern (C) void function () _clutter_meta5; - extern (C) void function () _clutter_meta6; - extern (C) void function () _clutter_meta7; + extern (C) void function (ActorMeta* meta, Actor* actor) nothrow set_actor; + extern (C) void function () nothrow _clutter_meta1; + extern (C) void function () nothrow _clutter_meta2; + extern (C) void function () nothrow _clutter_meta3; + extern (C) void function () nothrow _clutter_meta4; + extern (C) void function () nothrow _clutter_meta5; + extern (C) void function () nothrow _clutter_meta6; + extern (C) void function () nothrow _clutter_meta7; } struct ActorMetaPrivate { @@ -3593,21 +3641,22 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { // : the #ClutterActor to use as the source of the alignment, or %NULL // : the axis to be used to compute the alignment // : the alignment factor, between 0.0 and 1.0 - static AlignConstraint* new_()(Actor* source, AlignAxis axis, float factor) { + static AlignConstraint* new_()(Actor* source, AlignAxis axis, float factor) nothrow { return clutter_align_constraint_new(source, axis, factor); } + alias new_!() opCall; // VERSION: 1.4 // Retrieves the value set using clutter_align_constraint_set_align_axis() // RETURNS: the alignment axis - AlignAxis get_align_axis()() { + AlignAxis get_align_axis()() nothrow { 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()() { + float get_factor()() nothrow { return clutter_align_constraint_get_factor(&this); } @@ -3616,14 +3665,14 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { // // of the alignment // RETURNS: the #ClutterActor used as the source - Actor* get_source()() { + Actor* get_source()() nothrow { 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) { + void set_align_axis()(AlignAxis axis) nothrow { clutter_align_constraint_set_align_axis(&this, axis); } @@ -3640,14 +3689,14 @@ struct AlignConstraint /* : Constraint */ /* Version 1.4 */ { // %CLUTTER_ALIGN_Y_AXIS). A value of 0.5 aligns in the middle in either // cases // : the alignment factor, between 0.0 and 1.0 - void set_factor()(float factor) { + void set_factor()(float factor) nothrow { 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) { + void set_source()(Actor* source=null) nothrow { clutter_align_constraint_set_source(&this, source); } } @@ -3685,9 +3734,10 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // You should use the newly created #ClutterAlpha instance inside // a #ClutterBehaviour object. // RETURNS: the newly created empty #ClutterAlpha instance. - static Alpha* new_()() { + static Alpha* new_()() nothrow { return clutter_alpha_new(); } + alias new_!() opCall; // VERSION: 1.0 // Creates a new #ClutterAlpha instance and sets the timeline @@ -3697,9 +3747,10 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // RETURNS: the newly created #ClutterAlpha // : #ClutterTimeline timeline // : animation mode - static Alpha* new_full()(Timeline* timeline, c_ulong mode) { + static Alpha* new_full()(Timeline* timeline, c_ulong mode) nothrow { return clutter_alpha_new_full(timeline, mode); } + alias new_full!() opCall; // VERSION: 1.0 // Creates a new #ClutterAlpha instances and sets the timeline @@ -3713,9 +3764,10 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // : a #ClutterAlphaFunc // : data to pass to the function, or %NULL // : function to call when removing the alpha function, or %NULL - static Alpha* new_with_func()(Timeline* timeline, AlphaFunc func, void* data, GLib2.DestroyNotify destroy) { + static Alpha* new_with_func()(Timeline* timeline, AlphaFunc func, void* data, GLib2.DestroyNotify destroy) nothrow { return clutter_alpha_new_with_func(timeline, func, data, destroy); } + alias new_with_func!() opCall; // VERSION: 1.0 // #GClosure variant of clutter_alpha_register_func(). @@ -3726,7 +3778,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // The logical id is always greater than %CLUTTER_ANIMATION_LAST. // RETURNS: the logical id of the alpha function // : a #GClosure - static c_ulong register_closure()(GObject2.Closure* closure) { + static c_ulong register_closure()(GObject2.Closure* closure) nothrow { return clutter_alpha_register_closure(closure); } @@ -3739,28 +3791,28 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // RETURNS: the logical id of the alpha function // : a #ClutterAlphaFunc // : user data to pass to @func, or %NULL - static c_ulong register_func()(AlphaFunc func, void* data) { + static c_ulong register_func()(AlphaFunc func, void* data) nothrow { 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()() { + double get_alpha()() nothrow { return clutter_alpha_get_alpha(&this); } // VERSION: 1.0 // Retrieves the #ClutterAnimationMode used by @alpha. // RETURNS: the animation mode - c_ulong get_mode()() { + c_ulong get_mode()() nothrow { return clutter_alpha_get_mode(&this); } // VERSION: 0.2 // Gets the #ClutterTimeline bound to @alpha. // RETURNS: a #ClutterTimeline instance - Timeline* get_timeline()() { + Timeline* get_timeline()() nothrow { return clutter_alpha_get_timeline(&this); } @@ -3768,7 +3820,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // Sets the #GClosure used to compute the alpha value at each // frame of the #ClutterTimeline bound to @alpha. // : A #GClosure - void set_closure()(GObject2.Closure* closure) { + void set_closure()(GObject2.Closure* closure) nothrow { clutter_alpha_set_closure(&this, closure); } @@ -3781,7 +3833,7 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // : A #ClutterAlphaFunc // : user data to be passed to the alpha function, or %NULL // : notify function used when disposing the alpha function - void set_func()(AlphaFunc func, void* data, GLib2.DestroyNotify destroy) { + void set_func()(AlphaFunc func, void* data, GLib2.DestroyNotify destroy) nothrow { clutter_alpha_set_func(&this, func, data, destroy); } @@ -3790,14 +3842,14 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // of @mode, as taken by the #ClutterAnimationMode enumeration or // using the value returned by clutter_alpha_register_func(). // : a #ClutterAnimationMode - void set_mode()(c_ulong mode) { + void set_mode()(c_ulong mode) nothrow { clutter_alpha_set_mode(&this, mode); } // VERSION: 0.2 // Binds @alpha to @timeline. // : A #ClutterTimeline - void set_timeline()(Timeline* timeline) { + void set_timeline()(Timeline* timeline) nothrow { clutter_alpha_set_timeline(&this, timeline); } } @@ -3805,11 +3857,11 @@ struct Alpha /* : GObject.InitiallyUnowned */ /* Version 0.2 */ { // Base class for #ClutterAlpha struct AlphaClass /* Version 0.2 */ { private GObject2.InitiallyUnownedClass parent_class; - extern (C) void function () _clutter_alpha_1; - extern (C) void function () _clutter_alpha_2; - extern (C) void function () _clutter_alpha_3; - extern (C) void function () _clutter_alpha_4; - extern (C) void function () _clutter_alpha_5; + extern (C) void function () nothrow _clutter_alpha_1; + extern (C) void function () nothrow _clutter_alpha_2; + extern (C) void function () nothrow _clutter_alpha_3; + extern (C) void function () nothrow _clutter_alpha_4; + extern (C) void function () nothrow _clutter_alpha_5; } @@ -3819,7 +3871,7 @@ struct AlphaClass /* Version 0.2 */ { // RETURNS: a floating point value // : a #ClutterAlpha // : user data passed to the function -extern (C) alias double function (Alpha* alpha, void* user_data) AlphaFunc; +extern (C) alias double function (Alpha* alpha, void* user_data) nothrow AlphaFunc; struct AlphaPrivate { } @@ -3854,7 +3906,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { // : the final value of the animation interval // : the progress factor // : return location for the animation value - int animate_property()(Animation* animation, char* property_name, GObject2.Value* initial_value, GObject2.Value* final_value, double progress, GObject2.Value* value) { + int animate_property()(Animation* animation, char* property_name, GObject2.Value* initial_value, GObject2.Value* final_value, double progress, GObject2.Value* value) nothrow { return clutter_animatable_animate_property(cast(Animatable*)&this, animation, property_name, initial_value, final_value, progress, value); } @@ -3864,7 +3916,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { // or %NULL // RETURNS: The #GParamSpec for the given property // : the name of the animatable property to find - GObject2.ParamSpec* find_property()(char* property_name) { + GObject2.ParamSpec* find_property()(char* property_name) nothrow { return clutter_animatable_find_property(cast(Animatable*)&this, property_name); } @@ -3872,7 +3924,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { // 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 - void get_initial_state()(char* property_name, GObject2.Value* value) { + void get_initial_state()(char* property_name, GObject2.Value* value) nothrow { clutter_animatable_get_initial_state(cast(Animatable*)&this, property_name, value); } @@ -3893,7 +3945,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { // : a #ClutterInterval with the animation range // : the progress to use to interpolate between the initial and final values of the @interval // : return location for an initialized #GValue using the same type of the @interval - int interpolate_value()(char* property_name, Interval* interval, double progress, /*out*/ GObject2.Value* value) { + int interpolate_value()(char* property_name, Interval* interval, double progress, /*out*/ GObject2.Value* value) nothrow { return clutter_animatable_interpolate_value(cast(Animatable*)&this, property_name, interval, progress, value); } @@ -3901,7 +3953,7 @@ struct Animatable /* Interface */ /* Version 1.0 */ { // 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 - void set_final_state()(char* property_name, GObject2.Value* value) { + void set_final_state()(char* property_name, GObject2.Value* value) nothrow { clutter_animatable_set_final_state(cast(Animatable*)&this, property_name, value); } } @@ -3921,26 +3973,26 @@ struct AnimatableIface /* Version 1.0 */ { // : the final value of the animation interval // : the progress factor // : return location for the animation value - extern (C) int function (Animatable* animatable, Animation* animation, char* property_name, GObject2.Value* initial_value, GObject2.Value* final_value, double progress, GObject2.Value* value) animate_property; + extern (C) int function (Animatable* animatable, Animation* animation, char* property_name, GObject2.Value* initial_value, GObject2.Value* final_value, double progress, GObject2.Value* value) nothrow animate_property; // RETURNS: The #GParamSpec for the given property // : the name of the animatable property to find - extern (C) GObject2.ParamSpec* function (Animatable* animatable, char* property_name) find_property; + extern (C) GObject2.ParamSpec* function (Animatable* animatable, char* property_name) nothrow find_property; // : the name of the animatable property to retrieve // : a #GValue initialized to the type of the property to retrieve - extern (C) void function (Animatable* animatable, char* property_name, GObject2.Value* value) get_initial_state; + extern (C) void function (Animatable* animatable, char* property_name, GObject2.Value* value) nothrow get_initial_state; // : the name of the animatable property to set // : the value of the animatable property to set - extern (C) void function (Animatable* animatable, char* property_name, GObject2.Value* value) set_final_state; + extern (C) void function (Animatable* animatable, char* property_name, GObject2.Value* value) nothrow set_final_state; // RETURNS: %TRUE if the interpolation was successful, // : the name of the property to interpolate // : a #ClutterInterval with the animation range // : the progress to use to interpolate between the initial and final values of the @interval // : return location for an initialized #GValue using the same type of the @interval - extern (C) int function (Animatable* animatable, char* property_name, Interval* interval, double progress, /*out*/ GObject2.Value* value) interpolate_value; + extern (C) int function (Animatable* animatable, char* property_name, Interval* interval, double progress, /*out*/ GObject2.Value* value) nothrow interpolate_value; } @@ -3972,9 +4024,10 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // // to release the associated resources // RETURNS: the newly created #ClutterAnimation. Use g_object_unref() - static Animation* /*new*/ new_()() { + static Animation* /*new*/ new_()() nothrow { return clutter_animation_new(); } + alias new_!() opCall; // VERSION: 1.0 // Adds a single property with name @property_name to the @@ -3986,7 +4039,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // RETURNS: The animation itself. // : the property to control // : The final value of the property - Animation* bind()(char* property_name, GObject2.Value* final_) { + Animation* bind()(char* property_name, GObject2.Value* final_) nothrow { return clutter_animation_bind(&this, property_name, final_); } @@ -4001,7 +4054,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // RETURNS: The animation itself. // : the property to control // : a #ClutterInterval - Animation* bind_interval()(char* property_name, Interval* interval) { + Animation* bind_interval()(char* property_name, Interval* interval) nothrow { return clutter_animation_bind_interval(&this, property_name, interval); } @@ -4014,21 +4067,21 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // unless g_object_ref() was called before calling this function // or unless a reference was taken inside a handler for the // #ClutterAnimation::completed signal - void completed()() { + void completed()() nothrow { clutter_animation_completed(&this); } // VERSION: 1.0 // Retrieves the #ClutterAlpha used by @animation. // RETURNS: the alpha object used by the animation - Alpha* get_alpha()() { + Alpha* get_alpha()() nothrow { 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()() { + uint get_duration()() nothrow { return clutter_animation_get_duration(&this); } @@ -4040,14 +4093,14 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // owned by the #ClutterAnimation and should not be unreferenced // RETURNS: a #ClutterInterval or %NULL if no // : name of the property - Interval* get_interval()(char* property_name) { + Interval* get_interval()(char* property_name) nothrow { 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()() { + int get_loop()() nothrow { return clutter_animation_get_loop(&this); } @@ -4055,21 +4108,21 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // Retrieves the animation mode of @animation, as set by // clutter_animation_set_mode(). // RETURNS: the mode for the animation - c_ulong get_mode()() { + c_ulong get_mode()() nothrow { return clutter_animation_get_mode(&this); } // VERSION: 1.0 // Retrieves the #GObject attached to @animation. // RETURNS: a #GObject - GObject2.Object* get_object()() { + GObject2.Object* get_object()() nothrow { 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()() { + Timeline* get_timeline()() nothrow { return clutter_animation_get_timeline(&this); } @@ -4079,7 +4132,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // #ClutterAnimation, %FALSE otherwise // RETURNS: %TRUE if the property is animated by the // : name of the property - int has_property()(char* property_name) { + int has_property()(char* property_name) nothrow { return clutter_animation_has_property(&this, property_name); } @@ -4089,7 +4142,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // If @alpha is not %NULL, the #ClutterAnimation will take ownership // of the #ClutterAlpha instance. // : a #ClutterAlpha, or %NULL to unset the current #ClutterAlpha - void set_alpha()(Alpha* alpha) { + void set_alpha()(Alpha* alpha) nothrow { clutter_animation_set_alpha(&this, alpha); } @@ -4099,7 +4152,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // This function will set #ClutterAnimation:alpha and // #ClutterAnimation:timeline if needed. // : the duration in milliseconds - void set_duration()(uint msecs) { + void set_duration()(uint msecs) nothrow { clutter_animation_set_duration(&this, msecs); } @@ -4112,7 +4165,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // This function will set #ClutterAnimation:alpha and // #ClutterAnimation:timeline if needed. // : %TRUE if the animation should loop - void set_loop()(int loop) { + void set_loop()(int loop) nothrow { clutter_animation_set_loop(&this, loop); } @@ -4123,7 +4176,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // // This function will also set #ClutterAnimation:alpha if needed. // : an animation mode logical id - void set_mode()(c_ulong mode) { + void set_mode()(c_ulong mode) nothrow { clutter_animation_set_mode(&this, mode); } @@ -4131,21 +4184,21 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // Attaches @animation to @object. The #ClutterAnimation will take a // reference on @object. // : a #GObject - void set_object()(GObject2.Object* object) { + void set_object()(GObject2.Object* object) nothrow { 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) { + void set_timeline()(Timeline* timeline) nothrow { 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) { + void unbind_property()(char* property_name) nothrow { clutter_animation_unbind_property(&this, property_name); } @@ -4154,7 +4207,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // RETURNS: The animation itself. // : name of the property // : The final value of the property - Animation* update()(char* property_name, GObject2.Value* final_) { + Animation* update()(char* property_name, GObject2.Value* final_) nothrow { return clutter_animation_update(&this, property_name, final_); } @@ -4163,7 +4216,7 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // will take ownership of the passed #ClutterInterval. // : name of the property // : a #ClutterInterval - void update_interval()(char* property_name, Interval* interval) { + void update_interval()(char* property_name, Interval* interval) nothrow { clutter_animation_update_interval(&this, property_name, interval); } @@ -4173,13 +4226,15 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // // The @animation instance is guaranteed to be valid for the entire // duration of the signal emission chain. - extern (C) alias static void function (Animation* this_, void* user_data=null) signal_completed; + extern (C) alias static void function (Animation* this_, void* user_data=null) nothrow signal_completed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)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) + if (is(typeof(cb)==signal_completed)||_ttmm!(CB, signal_completed)()) { return signal_connect_data!()(&this, cast(char*)"completed", cast(GObject2.Callback)cb, data, null, cf); } @@ -4187,8 +4242,10 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // 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) { + extern (C) alias static void function (Animation* this_, void* user_data=null) nothrow signal_started; + ulong signal_connect(string name:"started", CB:signal_started) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_started)||_ttmm!(CB, signal_started)()) { return signal_connect_data!()(&this, cast(char*)"started", cast(GObject2.Callback)cb, data, null, cf); } @@ -4199,16 +4256,16 @@ struct Animation /* : GObject.Object */ /* Version 1.0 */ { // should be accessed using the provided functions. struct AnimationClass /* Version 1.0 */ { private GObject2.ObjectClass parent_class; - extern (C) void function (Animation* animation) started; - extern (C) void function (Animation* animation) completed; - extern (C) void function () _clutter_reserved1; - extern (C) void function () _clutter_reserved2; - extern (C) void function () _clutter_reserved3; - extern (C) void function () _clutter_reserved4; - extern (C) void function () _clutter_reserved5; - extern (C) void function () _clutter_reserved6; - extern (C) void function () _clutter_reserved7; - extern (C) void function () _clutter_reserved8; + extern (C) void function (Animation* animation) nothrow started; + extern (C) void function (Animation* animation) nothrow completed; + extern (C) void function () nothrow _clutter_reserved1; + extern (C) void function () nothrow _clutter_reserved2; + extern (C) void function () nothrow _clutter_reserved3; + extern (C) void function () nothrow _clutter_reserved4; + extern (C) void function () nothrow _clutter_reserved5; + extern (C) void function () nothrow _clutter_reserved6; + extern (C) void function () nothrow _clutter_reserved7; + extern (C) void function () nothrow _clutter_reserved8; } @@ -4272,9 +4329,10 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // VERSION: 1.2 // Creates a new #ClutterAnimator instance // RETURNS: a new #ClutterAnimator. - static Animator* /*new*/ new_()() { + static Animator* /*new*/ new_()() nothrow { return clutter_animator_new(); } + alias new_!() opCall; // VERSION: 1.2 // Compute the value for a managed property at a given progress. @@ -4289,14 +4347,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // : the name of the property on object to check // : a value between 0.0 and 1.0 // : an initialized value to store the computed result - int compute_value()(GObject2.Object* object, char* property_name, double progress, GObject2.Value* value) { + int compute_value()(GObject2.Object* object, char* property_name, double progress, GObject2.Value* value) nothrow { 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()() { + uint get_duration()() nothrow { return clutter_animator_get_duration(&this); } @@ -4311,14 +4369,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // : a #GObject to search for, or %NULL for all objects // : a specific property name to query for, or %NULL for all properties // : a specific progress to search for, or a negative value for all progresses - GLib2.List* /*new container*/ get_keys()(GObject2.Object* object, char* property_name, double progress) { + GLib2.List* /*new container*/ get_keys()(GObject2.Object* object, char* property_name, double progress) nothrow { 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()() { + Timeline* get_timeline()() nothrow { return clutter_animator_get_timeline(&this); } @@ -4327,7 +4385,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // RETURNS: %TRUE if the property is eased in // : a #GObject // : the name of a property on object - int property_get_ease_in()(GObject2.Object* object, char* property_name) { + int property_get_ease_in()(GObject2.Object* object, char* property_name) nothrow { return clutter_animator_property_get_ease_in(&this, object, property_name); } @@ -4337,7 +4395,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // RETURNS: a ClutterInterpolation value. // : a #GObject // : the name of a property on object - Interpolation property_get_interpolation()(GObject2.Object* object, char* property_name) { + Interpolation property_get_interpolation()(GObject2.Object* object, char* property_name) nothrow { return clutter_animator_property_get_interpolation(&this, object, property_name); } @@ -4346,7 +4404,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // : a #GObject // : the name of a property on object // : we are going to be easing in this property - void property_set_ease_in()(GObject2.Object* object, char* property_name, int ease_in) { + void property_set_ease_in()(GObject2.Object* object, char* property_name, int ease_in) nothrow { clutter_animator_property_set_ease_in(&this, object, property_name, ease_in); } @@ -4358,7 +4416,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // : a #GObject // : the name of a property on object // : the #ClutterInterpolation to use - void property_set_interpolation()(GObject2.Object* object, char* property_name, Interpolation interpolation) { + void property_set_interpolation()(GObject2.Object* object, char* property_name, Interpolation interpolation) nothrow { clutter_animator_property_set_interpolation(&this, object, property_name, interpolation); } @@ -4367,7 +4425,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // : a #GObject to search for, or %NULL for all // : a specific property name to query for, or %NULL for all // : a specific progress to search for or a negative value for all - void remove_key()(GObject2.Object* object, char* property_name, double progress) { + void remove_key()(GObject2.Object* object, char* property_name, double progress) nothrow { clutter_animator_remove_key(&this, object, property_name, progress); } @@ -4392,7 +4450,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // Runs the timeline of the #ClutterAnimator with a duration in msecs // as specified. // : milliseconds a run of the animator should last. - void set_duration()(uint duration) { + void set_duration()(uint duration) nothrow { clutter_animator_set_duration(&this, duration); } @@ -4407,14 +4465,14 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // : the id of the alpha function to use // : the normalized range at which stage of the animation this value applies // : the value property_name should have at progress. - Animator* set_key()(GObject2.Object* object, char* property_name, uint mode, double progress, GObject2.Value* value) { + Animator* set_key()(GObject2.Object* object, char* property_name, uint mode, double progress, GObject2.Value* value) nothrow { 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) { + void set_timeline()(Timeline* timeline) nothrow { clutter_animator_set_timeline(&this, timeline); } @@ -4425,7 +4483,7 @@ struct Animator /* : GObject.Object */ /* Version 1.2 */ { // the animator. The returned timeline is owned by the #ClutterAnimator // and it should not be unreferenced // RETURNS: the #ClutterTimeline that drives - Timeline* start()() { + Timeline* start()() nothrow { return clutter_animator_start(&this); } } @@ -4445,28 +4503,28 @@ struct AnimatorKey /* Version 1.2 */ { // open ended and or curved for the remainding keys for the property it // represents the easing mode. // RETURNS: the mode of a #ClutterAnimatorKey - c_ulong get_mode()() { + c_ulong get_mode()() nothrow { 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()() { + GObject2.Object* get_object()() nothrow { 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()() { + double get_progress()() nothrow { 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()() { + char* get_property_name()() nothrow { return clutter_animator_key_get_property_name(&this); } @@ -4476,7 +4534,7 @@ struct AnimatorKey /* Version 1.2 */ { // You can use this type to initialize the #GValue to pass to // clutter_animator_key_get_value() // RETURNS: the #GType of the property - Type get_property_type()() { + Type get_property_type()() nothrow { return clutter_animator_key_get_property_type(&this); } @@ -4492,7 +4550,7 @@ struct AnimatorKey /* Version 1.2 */ { // %FALSE otherwise // RETURNS: %TRUE if the passed #GValue was successfully set, and // : a #GValue initialized with the correct type for the animator key - int get_value()(GObject2.Value* value) { + int get_value()(GObject2.Value* value) nothrow { return clutter_animator_key_get_value(&this, value); } } @@ -4723,7 +4781,7 @@ struct Backend /* : GObject.Object */ /* 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()() { + uint get_double_click_distance()() nothrow { return clutter_backend_get_double_click_distance(&this); } @@ -4732,7 +4790,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // Gets the maximum time between two button press events, as set // by clutter_backend_set_double_click_time(). // RETURNS: a time in milliseconds - uint get_double_click_time()() { + uint get_double_click_time()() nothrow { return clutter_backend_get_double_click_time(&this); } @@ -4743,7 +4801,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // // owned by the #ClutterBackend and should never be modified or freed // RETURNS: the font name for the backend. The returned string is - char* get_font_name()() { + char* get_font_name()() nothrow { return clutter_backend_get_font_name(&this); } @@ -4753,7 +4811,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // The returned #cairo_font_options_t is owned by the backend and should // not be modified or freed // RETURNS: the font options of the #ClutterBackend. - cairo.FontOptions* get_font_options()() { + cairo.FontOptions* get_font_options()() nothrow { return clutter_backend_get_font_options(&this); } @@ -4771,7 +4829,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // // has been set. // RETURNS: the current resolution, or -1 if no resolution - double get_resolution()() { + double get_resolution()() nothrow { return clutter_backend_get_resolution(&this); } @@ -4779,7 +4837,7 @@ struct Backend /* : GObject.Object */ /* 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) { + void set_double_click_distance()(uint distance) nothrow { clutter_backend_set_double_click_distance(&this, distance); } @@ -4788,7 +4846,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // 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 - void set_double_click_time()(uint msec) { + void set_double_click_time()(uint msec) nothrow { clutter_backend_set_double_click_time(&this, msec); } @@ -4799,7 +4857,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // default #ClutterBackend will be used; or be something that can // be parsed by the pango_font_description_from_string() function. // : the name of the font - void set_font_name()(char* font_name) { + void set_font_name()(char* font_name) nothrow { clutter_backend_set_font_name(&this, font_name); } @@ -4814,7 +4872,7 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // This function is intended for actors creating a Pango layout // using the PangoCairo API. // : Cairo font options for the backend, or %NULL - void set_font_options()(cairo.FontOptions* options) { + void set_font_options()(cairo.FontOptions* options) nothrow { clutter_backend_set_font_options(&this, options); } @@ -4827,20 +4885,22 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // // Applications should never need to call this function. // : the resolution in "dots per inch" (Physical inches aren't actually involved; the terminology is conventional). - void set_resolution()(double dpi) { + void set_resolution()(double dpi) nothrow { 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; + extern (C) alias static void function (Backend* this_, void* user_data=null) nothrow signal_font_changed; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_font_changed)||_ttmm!(CB, signal_font_changed)()) { return signal_connect_data!()(&this, cast(char*)"font-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -4848,8 +4908,10 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // 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) { + extern (C) alias static void function (Backend* this_, void* user_data=null) nothrow signal_resolution_changed; + ulong signal_connect(string name:"resolution-changed", CB:signal_resolution_changed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_resolution_changed)||_ttmm!(CB, signal_resolution_changed)()) { return signal_connect_data!()(&this, cast(char*)"resolution-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -4857,8 +4919,10 @@ struct Backend /* : GObject.Object */ /* Version 0.4 */ { // 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) { + extern (C) alias static void function (Backend* this_, void* user_data=null) nothrow signal_settings_changed; + ulong signal_connect(string name:"settings-changed", CB:signal_settings_changed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_settings_changed)||_ttmm!(CB, signal_settings_changed)()) { return signal_connect_data!()(&this, cast(char*)"settings-changed", cast(GObject2.Callback)cb, data, null, cf); } @@ -4886,7 +4950,7 @@ struct Behaviour /* : GObject.Object */ /* 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 - void actors_foreach()(BehaviourForeachFunc func, void* data) { + void actors_foreach()(BehaviourForeachFunc func, void* data) nothrow { clutter_behaviour_actors_foreach(&this, func, data); } @@ -4895,7 +4959,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // Applies @behave to @actor. This function adds a reference on // the actor. // : a #ClutterActor - void apply()(Actor* actor) { + void apply()(Actor* actor) nothrow { clutter_behaviour_apply(&this, actor); } @@ -4908,7 +4972,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // actors. You should free the returned list with g_slist_free() when // finished using it. // RETURNS: a list of - GLib2.SList* /*new container*/ get_actors()() { + GLib2.SList* /*new container*/ get_actors()() nothrow { return clutter_behaviour_get_actors(&this); } @@ -4918,7 +4982,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // // object has been bound to this behaviour. // RETURNS: a #ClutterAlpha object, or %NULL if no alpha - Alpha* get_alpha()() { + Alpha* get_alpha()() nothrow { return clutter_behaviour_get_alpha(&this); } @@ -4926,7 +4990,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // DEPRECATED method: get_n_actors - 1.6 // Gets the number of actors this behaviour is applied too. // RETURNS: The number of applied actors - int get_n_actors()() { + int get_n_actors()() nothrow { return clutter_behaviour_get_n_actors(&this); } @@ -4935,7 +4999,7 @@ struct Behaviour /* : GObject.Object */ /* 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. - Actor* get_nth_actor()(int index_) { + Actor* get_nth_actor()(int index_) nothrow { return clutter_behaviour_get_nth_actor(&this, index_); } @@ -4944,7 +5008,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // Check if @behave applied to @actor. // RETURNS: TRUE if actor has behaviour. FALSE otherwise. // : a #ClutterActor - int is_applied()(Actor* actor) { + int is_applied()(Actor* actor) nothrow { return clutter_behaviour_is_applied(&this, actor); } @@ -4953,14 +5017,14 @@ struct Behaviour /* : GObject.Object */ /* 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) { + void remove()(Actor* actor) nothrow { clutter_behaviour_remove(&this, actor); } // VERSION: 0.4 // DEPRECATED method: remove_all - 1.6 // Removes every actor from the list that @behave holds. - void remove_all()() { + void remove_all()() nothrow { clutter_behaviour_remove_all(&this); } @@ -4976,7 +5040,7 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // If @alpha is not %NULL, the #ClutterBehaviour will take ownership // of the #ClutterAlpha instance. // : a #ClutterAlpha or %NULL to unset a previously set alpha - void set_alpha()(Alpha* alpha) { + void set_alpha()(Alpha* alpha) nothrow { clutter_behaviour_set_alpha(&this, alpha); } @@ -4985,13 +5049,15 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // The ::apply signal is emitted each time the behaviour is applied // to an actor. // : the actor the behaviour was applied to. - extern (C) alias static void function (Behaviour* this_, Actor* actor, void* user_data=null) signal_applied; + extern (C) alias static void function (Behaviour* this_, Actor* actor, void* user_data=null) nothrow signal_applied; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_applied)||_ttmm!(CB, signal_applied)()) { return signal_connect_data!()(&this, cast(char*)"applied", cast(GObject2.Callback)cb, data, null, cf); } @@ -5001,8 +5067,10 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // 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) { + extern (C) alias static void function (Behaviour* this_, Actor* actor, void* user_data=null) nothrow signal_removed; + ulong signal_connect(string name:"removed", CB:signal_removed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_removed)||_ttmm!(CB, signal_removed)()) { return signal_connect_data!()(&this, cast(char*)"removed", cast(GObject2.Callback)cb, data, null, cf); } @@ -5011,15 +5079,15 @@ struct Behaviour /* : GObject.Object */ /* Version 0.2 */ { // Base class for behaviours. struct BehaviourClass /* Version 0.2 */ { private GObject2.ObjectClass parent_class; - extern (C) void function (Behaviour* behave, double alpha_value) alpha_notify; - extern (C) void function (Behaviour* behave, Actor* actor) applied; - extern (C) void function (Behaviour* behave, Actor* actor) removed; - extern (C) void function () _clutter_behaviour1; - extern (C) void function () _clutter_behaviour2; - extern (C) void function () _clutter_behaviour3; - extern (C) void function () _clutter_behaviour4; - extern (C) void function () _clutter_behaviour5; - extern (C) void function () _clutter_behaviour6; + extern (C) void function (Behaviour* behave, double alpha_value) nothrow alpha_notify; + extern (C) void function (Behaviour* behave, Actor* actor) nothrow applied; + extern (C) void function (Behaviour* behave, Actor* actor) nothrow removed; + extern (C) void function () nothrow _clutter_behaviour1; + extern (C) void function () nothrow _clutter_behaviour2; + extern (C) void function () nothrow _clutter_behaviour3; + extern (C) void function () nothrow _clutter_behaviour4; + extern (C) void function () nothrow _clutter_behaviour5; + extern (C) void function () nothrow _clutter_behaviour6; } @@ -5049,16 +5117,17 @@ struct BehaviourDepth /* : Behaviour */ /* Version 0.2 */ { // : a #ClutterAlpha instance, or %NULL // : initial value of the depth // : final value of the depth - static BehaviourDepth* /*new*/ new_()(Alpha* alpha, int depth_start, int depth_end) { + static BehaviourDepth* /*new*/ new_()(Alpha* alpha, int depth_start, int depth_end) nothrow { return clutter_behaviour_depth_new(alpha, depth_start, depth_end); } + alias new_!() opCall; // 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 - void get_bounds()(/*out*/ int* depth_start, /*out*/ int* depth_end) { + void get_bounds()(/*out*/ int* depth_start, /*out*/ int* depth_end) nothrow { clutter_behaviour_depth_get_bounds(&this, depth_start, depth_end); } @@ -5067,7 +5136,7 @@ struct BehaviourDepth /* : Behaviour */ /* Version 0.2 */ { // Sets the boundaries of the @behaviour. // : initial value of the depth // : final value of the depth - void set_bounds()(int depth_start, int depth_end) { + void set_bounds()(int depth_start, int depth_end) nothrow { clutter_behaviour_depth_set_bounds(&this, depth_start, depth_end); } } @@ -5112,21 +5181,22 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { // : #ClutterRotateDirection of rotation // : angle in degrees at which movement starts, between 0 and 360 // : angle in degrees at which movement ends, between 0 and 360 - static BehaviourEllipse* /*new*/ new_()(Alpha* alpha, int x, int y, int width, int height, RotateDirection direction, double start, double end) { + static BehaviourEllipse* /*new*/ new_()(Alpha* alpha, int x, int y, int width, int height, RotateDirection direction, double start, double end) nothrow { return clutter_behaviour_ellipse_new(alpha, x, y, width, height, direction, start, end); } + alias new_!() opCall; // VERSION: 0.4 // Gets the at which movements ends. // RETURNS: angle in degrees - double get_angle_end()() { + double get_angle_end()() nothrow { 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()() { + double get_angle_start()() nothrow { return clutter_behaviour_ellipse_get_angle_start(&this); } @@ -5134,7 +5204,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { // Gets the tilt of the ellipse around the center in the given axis. // RETURNS: angle in degrees. // : a #ClutterRotateAxis - double get_angle_tilt()(RotateAxis axis) { + double get_angle_tilt()(RotateAxis axis) nothrow { return clutter_behaviour_ellipse_get_angle_tilt(&this, axis); } @@ -5142,21 +5212,21 @@ struct BehaviourEllipse /* : Behaviour */ /* 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 - void get_center()(/*out*/ int* x, /*out*/ int* y) { + void get_center()(/*out*/ int* x, /*out*/ int* y) nothrow { 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()() { + RotateDirection get_direction()() nothrow { 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()() { + int get_height()() nothrow { return clutter_behaviour_ellipse_get_height(&this); } @@ -5165,14 +5235,14 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { // : return location for tilt angle on the X axis, or %NULL. // : return location for tilt angle on the Y axis, or %NULL. // : return location for tilt angle on the Z axis, or %NULL. - void get_tilt()(/*out*/ double* angle_tilt_x, /*out*/ double* angle_tilt_y, /*out*/ double* angle_tilt_z) { + void get_tilt()(/*out*/ double* angle_tilt_x, /*out*/ double* angle_tilt_y, /*out*/ double* angle_tilt_z) nothrow { 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()() { + int get_width()() nothrow { return clutter_behaviour_ellipse_get_width(&this); } @@ -5180,7 +5250,7 @@ struct BehaviourEllipse /* : Behaviour */ /* 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. - void set_angle_end()(double angle_end) { + void set_angle_end()(double angle_end) nothrow { clutter_behaviour_ellipse_set_angle_end(&this, angle_end); } @@ -5188,7 +5258,7 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { // 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. - void set_angle_start()(double angle_start) { + void set_angle_start()(double angle_start) nothrow { clutter_behaviour_ellipse_set_angle_start(&this, angle_start); } @@ -5196,7 +5266,7 @@ struct BehaviourEllipse /* : Behaviour */ /* 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. - void set_angle_tilt()(RotateAxis axis, double angle_tilt) { + void set_angle_tilt()(RotateAxis axis, double angle_tilt) nothrow { clutter_behaviour_ellipse_set_angle_tilt(&this, axis, angle_tilt); } @@ -5204,21 +5274,21 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { // Sets the center of the elliptical path to the point represented by knot. // : x coordinace of centre // : y coordinace of centre - void set_center()(int x, int y) { + void set_center()(int x, int y) nothrow { 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) { + void set_direction()(RotateDirection direction) nothrow { 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) { + void set_height()(int height) nothrow { clutter_behaviour_ellipse_set_height(&this, height); } @@ -5227,14 +5297,14 @@ struct BehaviourEllipse /* : Behaviour */ /* Version 0.4 */ { // : tilt of the elipse around the center in X axis in degrees. // : tilt of the elipse around the center in Y axis in degrees. // : tilt of the elipse around the center in Z axis in degrees. - void set_tilt()(double angle_tilt_x, double angle_tilt_y, double angle_tilt_z) { + void set_tilt()(double angle_tilt_x, double angle_tilt_y, double angle_tilt_z) nothrow { 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) { + void set_width()(int width) nothrow { clutter_behaviour_ellipse_set_width(&this, width); } } @@ -5255,7 +5325,7 @@ struct BehaviourEllipsePrivate { // : the #ClutterBehaviour // : an actor driven by @behaviour // : optional data passed to the function -extern (C) alias void function (Behaviour* behaviour, Actor* actor, void* data) BehaviourForeachFunc; +extern (C) alias void function (Behaviour* behaviour, Actor* actor, void* data) nothrow BehaviourForeachFunc; // The #ClutterBehaviourOpacity structure contains only private data and @@ -5285,9 +5355,10 @@ struct BehaviourOpacity /* : Behaviour */ /* Version 0.2 */ { // : a #ClutterAlpha instance, or %NULL // : minimum level of opacity // : maximum level of opacity - static BehaviourOpacity* /*new*/ new_()(Alpha* alpha, ubyte opacity_start, ubyte opacity_end) { + static BehaviourOpacity* /*new*/ new_()(Alpha* alpha, ubyte opacity_start, ubyte opacity_end) nothrow { return clutter_behaviour_opacity_new(alpha, opacity_start, opacity_end); } + alias new_!() opCall; // VERSION: 0.6 // DEPRECATED method: get_bounds - 1.6 @@ -5295,7 +5366,7 @@ struct BehaviourOpacity /* : Behaviour */ /* Version 0.2 */ { // on each actor it controls. // : return location for the minimum level of opacity, or %NULL // : return location for the maximum level of opacity, or %NULL - void get_bounds()(/*out*/ ubyte* opacity_start, /*out*/ ubyte* opacity_end) { + void get_bounds()(/*out*/ ubyte* opacity_start, /*out*/ ubyte* opacity_end) nothrow { clutter_behaviour_opacity_get_bounds(&this, opacity_start, opacity_end); } @@ -5305,7 +5376,7 @@ struct BehaviourOpacity /* : Behaviour */ /* Version 0.2 */ { // on each actor it controls. // : minimum level of opacity // : maximum level of opacity - void set_bounds()(ubyte opacity_start, ubyte opacity_end) { + void set_bounds()(ubyte opacity_start, ubyte opacity_end) nothrow { clutter_behaviour_opacity_set_bounds(&this, opacity_start, opacity_end); } } @@ -5347,9 +5418,10 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { // RETURNS: a #ClutterBehaviour // : a #ClutterAlpha instance, or %NULL // : a #ClutterPath or %NULL for an empty path - static BehaviourPath* /*new*/ new_()(Alpha* alpha, Path* path) { + static BehaviourPath* /*new*/ new_()(Alpha* alpha, Path* path) nothrow { return clutter_behaviour_path_new(alpha, path); } + alias new_!() opCall; // VERSION: 1.0 // DEPRECATED constructor: new_with_description - 1.6 @@ -5362,9 +5434,10 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { // RETURNS: a #ClutterBehaviour // : a #ClutterAlpha instance, or %NULL // : a string description of the path - static BehaviourPath* /*new*/ new_with_description()(Alpha* alpha, char* desc) { + static BehaviourPath* /*new*/ new_with_description()(Alpha* alpha, char* desc) nothrow { return clutter_behaviour_path_new_with_description(alpha, desc); } + alias new_with_description!() opCall; // VERSION: 1.0 // DEPRECATED constructor: new_with_knots - 1.6 @@ -5382,15 +5455,16 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { // : a #ClutterAlpha instance, or %NULL // : an array of #ClutterKnots // : number of entries in @knots - static BehaviourPath* /*new*/ new_with_knots()(Alpha* alpha, Knot* knots, uint n_knots) { + static BehaviourPath* /*new*/ new_with_knots()(Alpha* alpha, Knot* knots, uint n_knots) nothrow { return clutter_behaviour_path_new_with_knots(alpha, knots, n_knots); } + alias new_with_knots!() opCall; // VERSION: 1.0 // DEPRECATED method: get_path - 1.6 // Get the current path of the behaviour // RETURNS: the path - Path* get_path()() { + Path* get_path()() nothrow { return clutter_behaviour_path_get_path(&this); } @@ -5400,7 +5474,7 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { // floating reference on the #ClutterPath so you do not need to unref // it. // : the new path to follow - void set_path()(Path* path) { + void set_path()(Path* path) nothrow { clutter_behaviour_path_set_path(&this, path); } @@ -5409,13 +5483,15 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { // This signal is emitted each time a node defined inside the path // is reached. // : the index of the #ClutterKnot reached - extern (C) alias static void function (BehaviourPath* this_, c_uint knot_num, void* user_data=null) signal_knot_reached; + extern (C) alias static void function (BehaviourPath* this_, c_uint knot_num, void* user_data=null) nothrow signal_knot_reached; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_knot_reached)||_ttmm!(CB, signal_knot_reached)()) { return signal_connect_data!()(&this, cast(char*)"knot-reached", cast(GObject2.Callback)cb, data, null, cf); } @@ -5424,11 +5500,11 @@ struct BehaviourPath /* : Behaviour */ /* Version 0.2 */ { // The #ClutterBehaviourPathClass struct contains only private data struct BehaviourPathClass /* Version 0.2 */ { private BehaviourClass parent_class; - extern (C) void function (BehaviourPath* pathb, uint knot_num) knot_reached; - extern (C) void function () _clutter_path_1; - extern (C) void function () _clutter_path_2; - extern (C) void function () _clutter_path_3; - extern (C) void function () _clutter_path_4; + extern (C) void function (BehaviourPath* pathb, uint knot_num) nothrow knot_reached; + extern (C) void function () nothrow _clutter_path_1; + extern (C) void function () nothrow _clutter_path_2; + extern (C) void function () nothrow _clutter_path_3; + extern (C) void function () nothrow _clutter_path_4; } struct BehaviourPathPrivate { @@ -5465,14 +5541,15 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { // : the rotation direction // : the starting angle in degrees, between 0 and 360. // : the final angle in degrees, between 0 and 360. - static BehaviourRotate* /*new*/ new_()(Alpha* alpha, RotateAxis axis, RotateDirection direction, double angle_start, double angle_end) { + static BehaviourRotate* /*new*/ new_()(Alpha* alpha, RotateAxis axis, RotateDirection direction, double angle_start, double angle_end) nothrow { return clutter_behaviour_rotate_new(alpha, axis, direction, angle_start, angle_end); } + alias new_!() opCall; // VERSION: 0.4 // Retrieves the #ClutterRotateAxis used by the rotate behaviour. // RETURNS: the rotation axis - RotateAxis get_axis()() { + RotateAxis get_axis()() nothrow { return clutter_behaviour_rotate_get_axis(&this); } @@ -5480,7 +5557,7 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { // Retrieves the rotation boundaries of the rotate behaviour. // : return value for the initial angle // : return value for the final angle - void get_bounds()(/*out*/ double* angle_start, /*out*/ double* angle_end) { + void get_bounds()(/*out*/ double* angle_start, /*out*/ double* angle_end) nothrow { clutter_behaviour_rotate_get_bounds(&this, angle_start, angle_end); } @@ -5490,21 +5567,21 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { // : return location for the X center of rotation // : return location for the Y center of rotation // : return location for the Z center of rotation - void get_center()(/*out*/ int* x, /*out*/ int* y, /*out*/ int* z) { + void get_center()(/*out*/ int* x, /*out*/ int* y, /*out*/ int* z) nothrow { 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()() { + RotateDirection get_direction()() nothrow { 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) { + void set_axis()(RotateAxis axis) nothrow { clutter_behaviour_rotate_set_axis(&this, axis); } @@ -5513,7 +5590,7 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { // degrees get clamped to the canonical interval <0, 360). // : initial angle in degrees, between 0 and 360. // : final angle in degrees, between 0 and 360. - void set_bounds()(double angle_start, double angle_end) { + void set_bounds()(double angle_start, double angle_end) nothrow { clutter_behaviour_rotate_set_bounds(&this, angle_start, angle_end); } @@ -5523,14 +5600,14 @@ struct BehaviourRotate /* : Behaviour */ /* Version 0.4 */ { // : X axis center of rotation // : Y axis center of rotation // : Z axis center of rotation - void set_center()(int x, int y, int z) { + void set_center()(int x, int y, int z) nothrow { 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) { + void set_direction()(RotateDirection direction) nothrow { clutter_behaviour_rotate_set_direction(&this, direction); } } @@ -5571,9 +5648,10 @@ struct BehaviourScale /* : Behaviour */ /* Version 0.2 */ { // : initial scale factor on the Y axis // : final scale factor on the X axis // : final scale factor on the Y axis - static BehaviourScale* /*new*/ new_()(Alpha* alpha, double x_scale_start, double y_scale_start, double x_scale_end, double y_scale_end) { + static BehaviourScale* /*new*/ new_()(Alpha* alpha, double x_scale_start, double y_scale_start, double x_scale_end, double y_scale_end) nothrow { return clutter_behaviour_scale_new(alpha, x_scale_start, y_scale_start, x_scale_end, y_scale_end); } + alias new_!() opCall; // VERSION: 0.4 // DEPRECATED method: get_bounds - 1.6 @@ -5582,7 +5660,7 @@ struct BehaviourScale /* : Behaviour */ /* Version 0.2 */ { // : return location for the initial scale factor on the Y axis, or %NULL // : return location for the final scale factor on the X axis, or %NULL // : return location for the final scale factor on the Y axis, or %NULL - void get_bounds()(/*out*/ double* x_scale_start, /*out*/ double* y_scale_start, /*out*/ double* x_scale_end, /*out*/ double* y_scale_end) { + void get_bounds()(/*out*/ double* x_scale_start, /*out*/ double* y_scale_start, /*out*/ double* x_scale_end, /*out*/ double* y_scale_end) nothrow { clutter_behaviour_scale_get_bounds(&this, x_scale_start, y_scale_start, x_scale_end, y_scale_end); } @@ -5593,7 +5671,7 @@ struct BehaviourScale /* : Behaviour */ /* Version 0.2 */ { // : initial scale factor on the Y axis // : final scale factor on the X axis // : final scale factor on the Y axis - void set_bounds()(double x_scale_start, double y_scale_start, double x_scale_end, double y_scale_end) { + void set_bounds()(double x_scale_start, double y_scale_start, double x_scale_end, double y_scale_end) nothrow { clutter_behaviour_scale_set_bounds(&this, x_scale_start, y_scale_start, x_scale_end, y_scale_end); } } @@ -5630,9 +5708,10 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { // RETURNS: the newly created layout manager // : the default alignment policy to be used on the horizontal axis // : the default alignment policy to be used on the vertical axis - static BinLayout* new_()(BinAlignment x_align, BinAlignment y_align) { + static BinLayout* new_()(BinAlignment x_align, BinAlignment y_align) nothrow { return clutter_bin_layout_new(x_align, y_align); } + alias new_!() opCall; // VERSION: 1.2 // Adds a #ClutterActor to the container using @self and @@ -5645,7 +5724,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { // : a #ClutterActor // : horizontal alignment policy for @child // : vertical alignment policy for @child - void add()(Actor* child, BinAlignment x_align, BinAlignment y_align) { + void add()(Actor* child, BinAlignment x_align, BinAlignment y_align) nothrow { clutter_bin_layout_add(&this, child, x_align, y_align); } @@ -5658,7 +5737,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { // : a child of @container // : return location for the horizontal alignment policy // : return location for the vertical alignment policy - void get_alignment()(Actor* child=null, /*out*/ BinAlignment* x_align=null, /*out*/ BinAlignment* y_align=null) { + void get_alignment()(Actor* child=null, /*out*/ BinAlignment* x_align=null, /*out*/ BinAlignment* y_align=null) nothrow { clutter_bin_layout_get_alignment(&this, child, x_align, y_align); } @@ -5671,7 +5750,7 @@ struct BinLayout /* : LayoutManager */ /* Version 1.2 */ { // : a child of @container // : the horizontal alignment policy to be used for the @child inside @container // : the vertical aligment policy to be used on the @child inside @container - void set_alignment()(Actor* child, BinAlignment x_align, BinAlignment y_align) { + void set_alignment()(Actor* child, BinAlignment x_align, BinAlignment y_align) nothrow { clutter_bin_layout_set_alignment(&this, child, x_align, y_align); } } @@ -5703,49 +5782,50 @@ struct BindConstraint /* : Constraint */ /* Version 1.4 */ { // : the #ClutterActor to use as the source of the binding, or %NULL // : the coordinate to bind // : the offset to apply to the binding, in pixels - static BindConstraint* new_()(Actor* source, BindCoordinate coordinate, float offset) { + static BindConstraint* new_()(Actor* source, BindCoordinate coordinate, float offset) nothrow { return clutter_bind_constraint_new(source, coordinate, offset); } + alias new_!() opCall; // VERSION: 1.4 // Retrieves the bound coordinate of the constraint // RETURNS: the bound coordinate - BindCoordinate get_coordinate()() { + BindCoordinate get_coordinate()() nothrow { 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()() { + float get_offset()() nothrow { 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()() { + Actor* get_source()() nothrow { 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) { + void set_coordinate()(BindCoordinate coordinate) nothrow { 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) { + void set_offset()(float offset) nothrow { 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) { + void set_source()(Actor* source=null) nothrow { clutter_bind_constraint_set_source(&this, source); } } @@ -5774,7 +5854,7 @@ enum BindCoordinate /* Version 1.4 */ { // : the name of the action // : the key symbol // : bitmask of the modifier flags -extern (C) alias int function (GObject2.Object* gobject, char* action_name, uint key_val, ModifierType modifiers) BindingActionFunc; +extern (C) alias int function (GObject2.Object* gobject, char* action_name, uint key_val, ModifierType modifiers) nothrow BindingActionFunc; // Container of key bindings. The #ClutterBindingPool struct is @@ -5795,15 +5875,16 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // name. Use g_object_unref() when done. // RETURNS: the newly created binding pool with the given // : the name of the binding pool - static BindingPool* /*new*/ new_()(char* name) { + static BindingPool* /*new*/ new_()(char* name) nothrow { return clutter_binding_pool_new(name); } + alias new_!() opCall; // VERSION: 1.0 // Finds the #ClutterBindingPool with @name. // RETURNS: a pointer to the #ClutterBindingPool, or %NULL // : the name of the binding pool to find - static BindingPool* find()(char* name) { + static BindingPool* find()(char* name) nothrow { return clutter_binding_pool_find(name); } @@ -5827,7 +5908,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // be freed directly // RETURNS: the binding pool for the given class. // : a #GObjectClass pointer - static BindingPool* get_for_class()(void* klass) { + static BindingPool* get_for_class()(void* klass) nothrow { return clutter_binding_pool_get_for_class(klass); } @@ -5856,14 +5937,14 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // : the key symbol // : bitmask for the modifiers // : a #GObject - int activate()(uint key_val, ModifierType modifiers, GObject2.Object* gobject) { + int activate()(uint key_val, ModifierType modifiers, GObject2.Object* gobject) nothrow { 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) { + void block_action()(char* action_name) nothrow { clutter_binding_pool_block_action(&this, action_name); } @@ -5876,7 +5957,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // RETURNS: the name of the action, if found, or %NULL. The // : a key symbol // : a bitmask for the modifiers - char* find_action()(uint key_val, ModifierType modifiers) { + char* find_action()(uint key_val, ModifierType modifiers) nothrow { return clutter_binding_pool_find_action(&this, key_val, modifiers); } @@ -5898,7 +5979,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // : function to be called when the action is activated // : data to be passed to @callback // : function to be called when the action is removed from the pool - void install_action()(char* action_name, uint key_val, ModifierType modifiers, GObject2.Callback callback, void* data, GLib2.DestroyNotify notify) { + void install_action()(char* action_name, uint key_val, ModifierType modifiers, GObject2.Callback callback, void* data, GLib2.DestroyNotify notify) nothrow { clutter_binding_pool_install_action(&this, action_name, key_val, modifiers, callback, data, notify); } @@ -5920,7 +6001,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // : key symbol // : bitmask of modifiers // : a #GClosure - void install_closure()(char* action_name, uint key_val, ModifierType modifiers, GObject2.Closure* closure) { + void install_closure()(char* action_name, uint key_val, ModifierType modifiers, GObject2.Closure* closure) nothrow { clutter_binding_pool_install_closure(&this, action_name, key_val, modifiers, closure); } @@ -5938,7 +6019,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // : function to be called when the action is activated // : data to be passed to @callback // : function to be called when the action is removed from the pool - void override_action()(uint key_val, ModifierType modifiers, GObject2.Callback callback, void* data, GLib2.DestroyNotify notify) { + void override_action()(uint key_val, ModifierType modifiers, GObject2.Callback callback, void* data, GLib2.DestroyNotify notify) nothrow { clutter_binding_pool_override_action(&this, key_val, modifiers, callback, data, notify); } @@ -5956,7 +6037,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // : key symbol // : bitmask of modifiers // : a #GClosure - void override_closure()(uint key_val, ModifierType modifiers, GObject2.Closure* closure) { + void override_closure()(uint key_val, ModifierType modifiers, GObject2.Closure* closure) nothrow { clutter_binding_pool_override_closure(&this, key_val, modifiers, closure); } @@ -5965,7 +6046,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // if any exists. // : a key symbol // : a bitmask for the modifiers - void remove_action()(uint key_val, ModifierType modifiers) { + void remove_action()(uint key_val, ModifierType modifiers) nothrow { clutter_binding_pool_remove_action(&this, key_val, modifiers); } @@ -5976,7 +6057,7 @@ struct BindingPool /* : GObject.Object */ /* Version 1.0 */ { // be invoked in case clutter_binding_pool_activate() was called on // an action previously blocked with clutter_binding_pool_block_action(). // : an action name - void unblock_action()(char* action_name) { + void unblock_action()(char* action_name) nothrow { clutter_binding_pool_unblock_action(&this, action_name); } } @@ -6000,9 +6081,10 @@ struct BlurEffect /* : OffscreenEffect */ /* Version 1.4 */ { // Creates a new #ClutterBlurEffect to be used with // clutter_actor_add_effect() // RETURNS: the newly created #ClutterBlurEffect or %NULL - static BlurEffect* new_()() { + static BlurEffect* new_()() nothrow { return clutter_blur_effect_new(); } + alias new_!() opCall; } struct BlurEffectClass { @@ -6031,9 +6113,10 @@ struct Box /* : Actor */ /* Version 1.2 */ { // out by the passed @manager // RETURNS: the newly created #ClutterBox actor // : a #ClutterLayoutManager - static Box* new_()(LayoutManager* manager) { + static Box* new_()(LayoutManager* manager) nothrow { return clutter_box_new(manager); } + alias new_!() opCall; // VERSION: 1.2 // DEPRECATED (v1.10) method: get_color - Use clutter_actor_get_background_color() instead. @@ -6042,7 +6125,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { // If the #ClutterBox:color-set property is set to %FALSE the // returned #ClutterColor is undefined // : return location for a #ClutterColor - void get_color()(/*out*/ Color* color) { + void get_color()(/*out*/ Color* color) nothrow { clutter_box_get_color(&this, color); } @@ -6053,7 +6136,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { // #ClutterLayoutManager is owned by the #ClutterBox and it should not // be unreferenced // RETURNS: a #ClutterLayoutManager. The returned - LayoutManager* get_layout_manager()() { + LayoutManager* get_layout_manager()() nothrow { return clutter_box_get_layout_manager(&this); } @@ -6137,7 +6220,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { // : the number of properties to set // : a vector containing the property names to set // : a vector containing the property values to set - void packv()(Actor* actor, uint n_properties, char* properties, GObject2.Value* values) { + void packv()(Actor* actor, uint n_properties, char* properties, GObject2.Value* values) nothrow { clutter_box_packv(&this, actor, n_properties, properties, values); } @@ -6145,7 +6228,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { // DEPRECATED (v1.10) method: set_color - Use clutter_actor_set_background_color() instead. // Sets (or unsets) the background color for @box // : the background color, or %NULL to unset - void set_color()(Color* color=null) { + void set_color()(Color* color=null) nothrow { clutter_box_set_color(&this, color); } @@ -6156,7 +6239,7 @@ struct Box /* : Actor */ /* Version 1.2 */ { // A #ClutterLayoutManager is a delegate object that controls the // layout of the children of @box // : a #ClutterLayoutManager - void set_layout_manager()(LayoutManager* manager) { + void set_layout_manager()(LayoutManager* manager) nothrow { clutter_box_set_layout_manager(&this, manager); } } @@ -6170,12 +6253,12 @@ enum BoxAlignment /* Version 1.2 */ { // The #ClutterBoxClass structure contains only private data struct BoxClass /* Version 1.2 */ { private ActorClass parent_class; - extern (C) void function () clutter_padding_1; - extern (C) void function () clutter_padding_2; - extern (C) void function () clutter_padding_3; - extern (C) void function () clutter_padding_4; - extern (C) void function () clutter_padding_5; - extern (C) void function () clutter_padding_6; + extern (C) void function () nothrow clutter_padding_1; + extern (C) void function () nothrow clutter_padding_2; + extern (C) void function () nothrow clutter_padding_3; + extern (C) void function () nothrow clutter_padding_4; + extern (C) void function () nothrow clutter_padding_5; + extern (C) void function () nothrow clutter_padding_6; } @@ -6192,9 +6275,10 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // VERSION: 1.2 // Creates a new #ClutterBoxLayout layout manager // RETURNS: the newly created #ClutterBoxLayout - static BoxLayout* new_()() { + static BoxLayout* new_()() nothrow { return clutter_box_layout_new(); } + alias new_!() opCall; // VERSION: 1.2 // Retrieves the horizontal and vertical alignment policies for @actor @@ -6202,21 +6286,21 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // : a #ClutterActor child of @layout // : return location for the horizontal alignment policy // : return location for the vertical alignment policy - void get_alignment()(Actor* actor, /*out*/ BoxAlignment* x_align, /*out*/ BoxAlignment* y_align) { + void get_alignment()(Actor* actor, /*out*/ BoxAlignment* x_align, /*out*/ BoxAlignment* y_align) nothrow { 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()() { + uint get_easing_duration()() nothrow { 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()() { + c_ulong get_easing_mode()() nothrow { return clutter_box_layout_get_easing_mode(&this); } @@ -6224,7 +6308,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // Retrieves whether @actor should expand inside @layout // RETURNS: %TRUE if the #ClutterActor should expand, %FALSE otherwise // : a #ClutterActor child of @layout - int get_expand()(Actor* actor) { + int get_expand()(Actor* actor) nothrow { return clutter_box_layout_get_expand(&this, actor); } @@ -6234,7 +6318,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // : a #ClutterActor child of @layout // : return location for the horizontal fill policy // : return location for the vertical fill policy - void get_fill()(Actor* actor, /*out*/ int* x_fill, /*out*/ int* y_fill) { + void get_fill()(Actor* actor, /*out*/ int* x_fill, /*out*/ int* y_fill) nothrow { clutter_box_layout_get_fill(&this, actor, x_fill, y_fill); } @@ -6243,7 +6327,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // // homogeneously, and %FALSE otherwise // RETURNS: %TRUE if the #ClutterBoxLayout is arranging its children - int get_homogeneous()() { + int get_homogeneous()() nothrow { return clutter_box_layout_get_homogeneous(&this); } @@ -6252,14 +6336,14 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // // at the beginning of the layout, and %FALSE otherwise // RETURNS: %TRUE if the #ClutterBoxLayout should pack children - int get_pack_start()() { + int get_pack_start()() nothrow { 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()() { + uint get_spacing()() nothrow { return clutter_box_layout_get_spacing(&this); } @@ -6268,7 +6352,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // // Since clutter_box_layout_set_use_animations() // RETURNS: %TRUE if the animations should be used, %FALSE otherwise - int get_use_animations()() { + int get_use_animations()() nothrow { return clutter_box_layout_get_use_animations(&this); } @@ -6278,7 +6362,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // // vertically, and %FALSE otherwise // RETURNS: %TRUE if the #ClutterBoxLayout is arranging its children - int get_vertical()() { + int get_vertical()() nothrow { return clutter_box_layout_get_vertical(&this); } @@ -6291,7 +6375,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // : whether the @actor should fill vertically // : the horizontal alignment policy for @actor // : the vertical alignment policy for @actor - void pack()(Actor* actor, int expand, int x_fill, int y_fill, BoxAlignment x_align, BoxAlignment y_align) { + void pack()(Actor* actor, int expand, int x_fill, int y_fill, BoxAlignment x_align, BoxAlignment y_align) nothrow { clutter_box_layout_pack(&this, actor, expand, x_fill, y_fill, x_align, y_align); } @@ -6301,7 +6385,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // : a #ClutterActor child of @layout // : Horizontal alignment policy for @actor // : Vertical alignment policy for @actor - void set_alignment()(Actor* actor, BoxAlignment x_align, BoxAlignment y_align) { + void set_alignment()(Actor* actor, BoxAlignment x_align, BoxAlignment y_align) nothrow { clutter_box_layout_set_alignment(&this, actor, x_align, y_align); } @@ -6312,7 +6396,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // Use clutter_box_layout_set_use_animations() to enable and disable the // animations // : the duration of the animations, in milliseconds - void set_easing_duration()(uint msecs) { + void set_easing_duration()(uint msecs) nothrow { clutter_box_layout_set_easing_duration(&this, msecs); } @@ -6323,7 +6407,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // Use clutter_box_layout_set_use_animations() to enable and disable the // animations // : an easing mode, either from #ClutterAnimationMode or a logical id from clutter_alpha_register_func() - void set_easing_mode()(c_ulong mode) { + void set_easing_mode()(c_ulong mode) nothrow { clutter_box_layout_set_easing_mode(&this, mode); } @@ -6331,7 +6415,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // Sets whether @actor should expand inside @layout // : a #ClutterActor child of @layout // : whether @actor should expand - void set_expand()(Actor* actor, int expand) { + void set_expand()(Actor* actor, int expand) nothrow { clutter_box_layout_set_expand(&this, actor, expand); } @@ -6341,7 +6425,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // : a #ClutterActor child of @layout // : whether @actor should fill horizontally the allocated space // : whether @actor should fill vertically the allocated space - void set_fill()(Actor* actor, int x_fill, int y_fill) { + void set_fill()(Actor* actor, int x_fill, int y_fill) nothrow { clutter_box_layout_set_fill(&this, actor, x_fill, y_fill); } @@ -6349,7 +6433,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // Sets whether the size of @layout children should be // homogeneous // : %TRUE if the layout should be homogeneous - void set_homogeneous()(int homogeneous) { + void set_homogeneous()(int homogeneous) nothrow { clutter_box_layout_set_homogeneous(&this, homogeneous); } @@ -6357,14 +6441,14 @@ struct BoxLayout /* : LayoutManager */ /* 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 - void set_pack_start()(int pack_start) { + void set_pack_start()(int pack_start) nothrow { 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) { + void set_spacing()(uint spacing) nothrow { clutter_box_layout_set_spacing(&this, spacing); } @@ -6375,7 +6459,7 @@ struct BoxLayout /* : LayoutManager */ /* Version 1.2 */ { // clutter_box_layout_set_easing_duration(); the easing mode to be used // by the animations is controlled by clutter_box_layout_set_easing_mode() // : %TRUE if the @layout should use animations - void set_use_animations()(int animate) { + void set_use_animations()(int animate) nothrow { clutter_box_layout_set_use_animations(&this, animate); } @@ -6383,7 +6467,7 @@ struct BoxLayout /* : LayoutManager */ /* 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 - void set_vertical()(int vertical) { + void set_vertical()(int vertical) nothrow { clutter_box_layout_set_vertical(&this, vertical); } } @@ -6453,9 +6537,10 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // RETURNS: the newly created #ClutterCairoTexture actor // : the width of the surface // : the height of the surface - static CairoTexture* new_()(uint width, uint height) { + static CairoTexture* new_()(uint width, uint height) nothrow { return clutter_cairo_texture_new(width, height); } + alias new_!() opCall; // VERSION: 1.0 // Clears @self's internal drawing surface, so that the next upload @@ -6464,7 +6549,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // // Calling this function from within a #ClutterCairoTexture::draw // signal handler will clear the invalidated area. - void clear()() { + void clear()() nothrow { clutter_cairo_texture_clear(&this); } @@ -6485,7 +6570,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // the clutter_cairo_texture_invalidate() function to obtain a // Cairo context for 2D drawing. // RETURNS: a newly created Cairo context. Use cairo_destroy() - cairo.Context* /*new*/ create()() { + cairo.Context* /*new*/ create()() nothrow { return clutter_cairo_texture_create(&this); } @@ -6508,7 +6593,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // : offset of the region on the Y axis // : width of the region, or -1 for the full surface width // : height of the region, or -1 for the full surface height - cairo.Context* /*new*/ create_region()(int x_offset, int y_offset, int width, int height) { + cairo.Context* /*new*/ create_region()(int x_offset, int y_offset, int width, int height) nothrow { return clutter_cairo_texture_create_region(&this, x_offset, y_offset, width, height); } @@ -6517,7 +6602,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // // allocation, and %FALSE otherwise // RETURNS: %TRUE if the #ClutterCairoTexture should track the - int get_auto_resize()() { + int get_auto_resize()() nothrow { return clutter_cairo_texture_get_auto_resize(&this); } @@ -6525,7 +6610,7 @@ struct CairoTexture /* : Texture */ /* 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 - void get_surface_size()(/*out*/ uint* width, /*out*/ uint* height) { + void get_surface_size()(/*out*/ uint* width, /*out*/ uint* height) nothrow { clutter_cairo_texture_get_surface_size(&this, width, height); } @@ -6536,7 +6621,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // to be emitted. // // See also: clutter_cairo_texture_invalidate_rectangle() - void invalidate()() { + void invalidate()() nothrow { clutter_cairo_texture_invalidate(&this); } @@ -6548,7 +6633,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // // See also: clutter_cairo_texture_invalidate() // : a rectangle with the area to invalida, or %NULL to perform an unbounded invalidation - void invalidate_rectangle()(cairo.RectangleInt* rect=null) { + void invalidate_rectangle()(cairo.RectangleInt* rect=null) nothrow { clutter_cairo_texture_invalidate_rectangle(&this, rect); } @@ -6558,7 +6643,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // the actor. If the allocation changes, the contents of the // #ClutterCairoTexture will also be invalidated automatically. // : %TRUE if the #ClutterCairoTexture should bind the surface size to the allocation - void set_auto_resize()(int value) { + void set_auto_resize()(int value) nothrow { clutter_cairo_texture_set_auto_resize(&this, value); } @@ -6571,7 +6656,7 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // clutter_cairo_texture_invalidate(). // : the new width of the surface // : the new height of the surface - void set_surface_size()(uint width, uint height) { + void set_surface_size()(uint width, uint height) nothrow { clutter_cairo_texture_set_surface_size(&this, width, height); } @@ -6588,13 +6673,15 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // RETURNS: the newly created #cairo_surface_t for the texture // : the width of the surface to create // : the height of the surface to create - extern (C) alias static cairo.Surface* /*new*/ function (CairoTexture* this_, c_uint width, c_uint height, void* user_data=null) signal_create_surface; + extern (C) alias static cairo.Surface* /*new*/ function (CairoTexture* this_, c_uint width, c_uint height, void* user_data=null) nothrow signal_create_surface; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)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) + if (is(typeof(cb)==signal_create_surface)||_ttmm!(CB, signal_create_surface)()) { return signal_connect_data!()(&this, cast(char*)"create-surface", cast(GObject2.Callback)cb, data, null, cf); } @@ -6614,8 +6701,10 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // to continue // 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) { + extern (C) alias static c_int function (CairoTexture* this_, cairo.Context* cr, void* user_data=null) nothrow signal_draw; + ulong signal_connect(string name:"draw", CB:signal_draw) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_draw)||_ttmm!(CB, signal_draw)()) { return signal_connect_data!()(&this, cast(char*)"draw", cast(GObject2.Callback)cb, data, null, cf); } @@ -6624,10 +6713,10 @@ struct CairoTexture /* : Texture */ /* Version 1.0 */ { // The #ClutterCairoTextureClass struct contains only private data. struct CairoTextureClass /* Version 1.0 */ { private TextureClass parent_class; - extern (C) cairo.Surface* /*new*/ function (CairoTexture* texture, uint width, uint height) create_surface; - extern (C) int function (CairoTexture* texture, cairo.Context* cr) draw; - extern (C) void function () _clutter_cairo_3; - extern (C) void function () _clutter_cairo_4; + extern (C) cairo.Surface* /*new*/ function (CairoTexture* texture, uint width, uint height) nothrow create_surface; + extern (C) int function (CairoTexture* texture, cairo.Context* cr) nothrow draw; + extern (C) void function () nothrow _clutter_cairo_3; + extern (C) void function () nothrow _clutter_cairo_4; } struct CairoTexturePrivate { @@ -6639,7 +6728,7 @@ enum int Calendar = 269025056; // Generic callback // : a #ClutterActor // : user data -extern (C) alias void function (Actor* actor, void* data) Callback; +extern (C) alias void function (Actor* actor, void* data) nothrow Callback; enum int Cancel = 65385; enum int Caps_Lock = 65509; @@ -6693,14 +6782,14 @@ struct ChildMeta /* : GObject.Object */ /* Version 0.8 */ { // VERSION: 0.8 // Retrieves the actor wrapped by @data // RETURNS: a #ClutterActor - Actor* get_actor()() { + Actor* get_actor()() nothrow { return clutter_child_meta_get_actor(&this); } // VERSION: 0.8 // Retrieves the container using @data // RETURNS: a #ClutterContainer - Container* get_container()() { + Container* get_container()() nothrow { return clutter_child_meta_get_container(&this); } } @@ -6726,14 +6815,15 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // VERSION: 1.4 // Creates a new #ClutterClickAction instance // RETURNS: the newly created #ClutterClickAction - static ClickAction* new_()() { + static ClickAction* new_()() nothrow { return clutter_click_action_new(); } + alias new_!() opCall; // VERSION: 1.4 // Retrieves the button that was pressed. // RETURNS: the button value - uint get_button()() { + uint get_button()() nothrow { return clutter_click_action_get_button(&this); } @@ -6741,14 +6831,14 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // Retrieves the screen coordinates of the button press. // : return location for the X coordinate, or %NULL // : return location for the Y coordinate, or %NULL - void get_coords()(/*out*/ float* press_x, /*out*/ float* press_y) { + void get_coords()(/*out*/ float* press_x, /*out*/ float* press_y) nothrow { 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()() { + ModifierType get_state()() nothrow { return clutter_click_action_get_state(&this); } @@ -6761,7 +6851,7 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // // This function is useful to break a grab, for instance after a certain // amount of time has passed. - void release()() { + void release()() nothrow { clutter_click_action_release(&this); } @@ -6770,13 +6860,15 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // a #ClutterClickAction has been applied should respond to a // pointer button press and release events // : the #ClutterActor attached to the @action - extern (C) alias static void function (ClickAction* this_, Actor* actor, void* user_data=null) signal_clicked; + extern (C) alias static void function (ClickAction* this_, Actor* actor, void* user_data=null) nothrow signal_clicked; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_clicked)||_ttmm!(CB, signal_clicked)()) { return signal_connect_data!()(&this, cast(char*)"clicked", cast(GObject2.Callback)cb, data, null, cf); } @@ -6802,8 +6894,10 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // RETURNS: Only the %CLUTTER_LONG_PRESS_QUERY state uses the // : 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) { + extern (C) alias static c_int function (ClickAction* this_, Actor* actor, LongPressState* state, void* user_data=null) nothrow signal_long_press; + ulong signal_connect(string name:"long-press", CB:signal_long_press) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_long_press)||_ttmm!(CB, signal_long_press)()) { return signal_connect_data!()(&this, cast(char*)"long-press", cast(GObject2.Callback)cb, data, null, cf); } @@ -6814,15 +6908,15 @@ struct ClickAction /* : Action */ /* Version 1.4 */ { // contains only private data struct ClickActionClass /* Version 1.4 */ { private ActionClass parent_class; - extern (C) void function (ClickAction* action, Actor* actor) clicked; - extern (C) int function (ClickAction* action, Actor* actor, LongPressState state) long_press; - extern (C) void function () _clutter_click_action1; - extern (C) void function () _clutter_click_action2; - extern (C) void function () _clutter_click_action3; - extern (C) void function () _clutter_click_action4; - extern (C) void function () _clutter_click_action5; - extern (C) void function () _clutter_click_action6; - extern (C) void function () _clutter_click_action7; + extern (C) void function (ClickAction* action, Actor* actor) nothrow clicked; + extern (C) int function (ClickAction* action, Actor* actor, LongPressState state) nothrow long_press; + extern (C) void function () nothrow _clutter_click_action1; + extern (C) void function () nothrow _clutter_click_action2; + extern (C) void function () nothrow _clutter_click_action3; + extern (C) void function () nothrow _clutter_click_action4; + extern (C) void function () nothrow _clutter_click_action5; + extern (C) void function () nothrow _clutter_click_action6; + extern (C) void function () nothrow _clutter_click_action7; } struct ClickActionPrivate { @@ -6847,21 +6941,22 @@ struct Clone /* : Actor */ /* Version 1.0 */ { // Creates a new #ClutterActor which clones @source/ // RETURNS: the newly created #ClutterClone // : a #ClutterActor, or %NULL - static Clone* new_()(Actor* source) { + static Clone* new_()(Actor* source) nothrow { return clutter_clone_new(source); } + alias new_!() opCall; // VERSION: 1.0 // Retrieves the source #ClutterActor being cloned by @self. // RETURNS: the actor source for the clone - Actor* get_source()() { + Actor* get_source()() nothrow { return clutter_clone_get_source(&this); } // VERSION: 1.0 // Sets @source as the source actor to be cloned by @self. // : a #ClutterActor, or %NULL - void set_source()(Actor* source=null) { + void set_source()(Actor* source=null) nothrow { clutter_clone_set_source(&this, source); } } @@ -6869,10 +6964,10 @@ struct Clone /* : Actor */ /* Version 1.0 */ { // The #ClutterCloneClass structure contains only private data struct CloneClass /* Version 1.0 */ { private ActorClass parent_class; - extern (C) void function () _clutter_actor_clone1; - extern (C) void function () _clutter_actor_clone2; - extern (C) void function () _clutter_actor_clone3; - extern (C) void function () _clutter_actor_clone4; + extern (C) void function () nothrow _clutter_actor_clone1; + extern (C) void function () nothrow _clutter_actor_clone2; + extern (C) void function () nothrow _clutter_actor_clone3; + extern (C) void function () nothrow _clutter_actor_clone4; } struct ClonePrivate { @@ -6895,9 +6990,10 @@ struct Color { // : green component of the color, between 0 and 255 // : blue component of the color, between 0 and 255 // : alpha component of the color, between 0 and 255 - static Color* /*new*/ new_()(ubyte red, ubyte green, ubyte blue, ubyte alpha) { + static Color* /*new*/ new_()(ubyte red, ubyte green, ubyte blue, ubyte alpha) nothrow { return clutter_color_new(red, green, blue, alpha); } + alias new_!() opCall; // Adds @a to @b and saves the resulting color inside @result. // @@ -6905,7 +7001,7 @@ struct Color { // between the alpha channels of @a and @b. // : a #ClutterColor // : return location for the result - void add()(Color* b, /*out*/ Color* result) { + void add()(Color* b, /*out*/ Color* result) nothrow { clutter_color_add(&this, b, result); } @@ -6913,20 +7009,20 @@ struct Color { // Makes a copy of the color structure. The result must be // freed using clutter_color_free(). // RETURNS: an allocated copy of @color. - Color* /*new*/ copy()() { + Color* /*new*/ copy()() nothrow { return clutter_color_copy(&this); } // Darkens @color by a fixed amount, and saves the changed color // in @result. // : return location for the darker color - void darken()(/*out*/ Color* result) { + void darken()(/*out*/ Color* result) nothrow { clutter_color_darken(&this, result); } // VERSION: 0.2 // Frees a color structure created with clutter_color_copy(). - void free()() { + void free()() nothrow { clutter_color_free(&this); } @@ -6935,14 +7031,14 @@ struct Color { // : hue value, in the 0 .. 360 range // : luminance value, in the 0 .. 1 range // : saturation value, in the 0 .. 1 range - void from_hls()(float hue, float luminance, float saturation) { + void from_hls()(float hue, float luminance, float saturation) nothrow { clutter_color_from_hls(&this, hue, luminance, saturation); } // Converts @pixel from the packed representation of a four 8 bit channel // color to a #ClutterColor. // : a 32 bit packed integer containing a color - void from_pixel()(uint pixel) { + void from_pixel()(uint pixel) nothrow { clutter_color_from_pixel(&this, pixel); } @@ -7000,7 +7096,7 @@ struct Color { // be fully opaque. // RETURNS: %TRUE if parsing succeeded, and %FALSE otherwise // : a string specifiying a color - int from_string()(char* str) { + int from_string()(char* str) nothrow { return clutter_color_from_string(&this, str); } @@ -7010,21 +7106,21 @@ struct Color { // : the final #ClutterColor // : the interpolation progress // : return location for the interpolation - void interpolate()(Color* final_, double progress, /*out*/ Color* result) { + void interpolate()(Color* final_, double progress, /*out*/ Color* result) nothrow { clutter_color_interpolate(&this, final_, progress, result); } // Lightens @color by a fixed amount, and saves the changed color // in @result. // : return location for the lighter color - void lighten()(/*out*/ Color* result) { + void lighten()(/*out*/ Color* result) nothrow { clutter_color_lighten(&this, result); } // Shades @color by @factor and saves the modified color into @result. // : the shade factor to apply // : return location for the shaded color - void shade()(double factor, /*out*/ Color* result) { + void shade()(double factor, /*out*/ Color* result) nothrow { clutter_color_shade(&this, factor, result); } @@ -7037,7 +7133,7 @@ struct Color { // between the alpha channels of @a and @b. // : a #ClutterColor // : return location for the result - void subtract()(Color* b, /*out*/ Color* result) { + void subtract()(Color* b, /*out*/ Color* result) nothrow { clutter_color_subtract(&this, b, result); } @@ -7048,14 +7144,14 @@ struct Color { // : return location for the hue value or %NULL // : return location for the luminance value or %NULL // : return location for the saturation value or %NULL - void to_hls()(/*out*/ float* hue, /*out*/ float* luminance, /*out*/ float* saturation) { + void to_hls()(/*out*/ float* hue, /*out*/ float* luminance, /*out*/ float* saturation) nothrow { clutter_color_to_hls(&this, hue, luminance, saturation); } // Converts @color into a packed 32 bit integer, containing // all the four 8 bit channels used by #ClutterColor. // RETURNS: a packed color - uint to_pixel()() { + uint to_pixel()() nothrow { return clutter_color_to_pixel(&this); } @@ -7066,7 +7162,7 @@ struct Color { // hexadecimal digits representing the red, green, blue and alpha components // respectively. // RETURNS: a newly-allocated text string - char* /*new*/ to_string()() { + char* /*new*/ to_string()() nothrow { return clutter_color_to_string(&this); } @@ -7078,7 +7174,7 @@ struct Color { // RETURNS: %TRUE if the two colors are the same. // : a #ClutterColor // : a #ClutterColor - static int equal()(const(void)* v1, const(void)* v2) { + static int equal()(const(void)* v1, const(void)* v2) nothrow { return clutter_color_equal(v1, v2); } @@ -7091,7 +7187,7 @@ struct Color { // is owned by Clutter and it should never be modified or freed // RETURNS: a pointer to a static color; the returned pointer // : the named global color - static Color* get_static()(StaticColor color) { + static Color* get_static()(StaticColor color) nothrow { return clutter_color_get_static(color); } @@ -7102,7 +7198,7 @@ struct Color { // parameter, when using #ClutterColors as keys in a #GHashTable. // RETURNS: a hash value corresponding to the color // : a #ClutterColor - static uint hash()(const(void)* v) { + static uint hash()(const(void)* v) nothrow { return clutter_color_hash(v); } } @@ -7122,21 +7218,22 @@ struct ColorizeEffect /* : OffscreenEffect */ /* Version 1.4 */ { // clutter_actor_add_effect() // RETURNS: the newly created #ClutterColorizeEffect or %NULL // : the color to be used - static ColorizeEffect* new_()(Color* tint) { + static ColorizeEffect* new_()(Color* tint) nothrow { return clutter_colorize_effect_new(tint); } + alias new_!() opCall; // VERSION: 1.4 // Retrieves the tint used by @effect // : return location for the color used - void get_tint()(/*out*/ Color* tint) { + void get_tint()(/*out*/ Color* tint) nothrow { 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) { + void set_tint()(Color* tint) nothrow { clutter_colorize_effect_set_tint(&this, tint); } } @@ -7160,15 +7257,15 @@ struct Constraint /* : ActorMeta */ /* Version 1.4 */ { // only private data struct ConstraintClass /* Version 1.4 */ { private ActorMetaClass parent_class; - extern (C) void function (Constraint* constraint, Actor* actor, ActorBox* allocation) update_allocation; - extern (C) void function () _clutter_constraint1; - extern (C) void function () _clutter_constraint2; - extern (C) void function () _clutter_constraint3; - extern (C) void function () _clutter_constraint4; - extern (C) void function () _clutter_constraint5; - extern (C) void function () _clutter_constraint6; - extern (C) void function () _clutter_constraint7; - extern (C) void function () _clutter_constraint8; + extern (C) void function (Constraint* constraint, Actor* actor, ActorBox* allocation) nothrow update_allocation; + extern (C) void function () nothrow _clutter_constraint1; + extern (C) void function () nothrow _clutter_constraint2; + extern (C) void function () nothrow _clutter_constraint3; + extern (C) void function () nothrow _clutter_constraint4; + extern (C) void function () nothrow _clutter_constraint5; + extern (C) void function () nothrow _clutter_constraint6; + extern (C) void function () nothrow _clutter_constraint7; + extern (C) void function () nothrow _clutter_constraint8; } @@ -7183,7 +7280,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // RETURNS: The #GParamSpec for the property or %NULL // : a #GObjectClass implementing the #ClutterContainer interface. // : a property name. - static GObject2.ParamSpec* class_find_child_property()(GObject2.ObjectClass* klass, char* property_name) { + static GObject2.ParamSpec* class_find_child_property()(GObject2.ObjectClass* klass, char* property_name) nothrow { return clutter_container_class_find_child_property(klass, property_name); } @@ -7194,7 +7291,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // RETURNS: an array // : a #GObjectClass implementing the #ClutterContainer interface. // : return location for length of returned array. - static GObject2.ParamSpec** /*new*/ class_list_child_properties()(GObject2.ObjectClass* klass, /*out*/ uint* n_properties) { + static GObject2.ParamSpec** /*new*/ class_list_child_properties()(GObject2.ObjectClass* klass, /*out*/ uint* n_properties) nothrow { return clutter_container_class_list_child_properties(klass, n_properties); } @@ -7217,7 +7314,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // @container. You cannot add a #ClutterActor to more than one // #ClutterContainer. // : the first #ClutterActor to add - void add_actor()(Actor* actor) { + void add_actor()(Actor* actor) nothrow { clutter_container_add_actor(cast(Container*)&this, actor); } @@ -7227,7 +7324,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // Alternative va_list version of clutter_container_add(). // : the first #ClutterActor to add // : list of actors to add, followed by %NULL - void add_valist()(Actor* first_actor, va_list var_args) { + void add_valist()(Actor* first_actor, va_list var_args) nothrow { clutter_container_add_valist(cast(Container*)&this, first_actor, var_args); } @@ -7255,7 +7352,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // : a #ClutterActor that is a child of @container. // : the name of the property to set. // : the value. - void child_get_property()(Actor* child, char* property, GObject2.Value* value) { + void child_get_property()(Actor* child, char* property, GObject2.Value* value) nothrow { clutter_container_child_get_property(cast(Container*)&this, child, property, value); } @@ -7265,7 +7362,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // #ClutterContainer::child-notify signal. // : a #ClutterActor // : a #GParamSpec - void child_notify()(Actor* child, GObject2.ParamSpec* pspec) { + void child_notify()(Actor* child, GObject2.ParamSpec* pspec) nothrow { clutter_container_child_notify(cast(Container*)&this, child, pspec); } @@ -7283,7 +7380,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // : a #ClutterActor that is a child of @container. // : the name of the property to set. // : the value. - void child_set_property()(Actor* child, char* property, GObject2.Value* value) { + void child_set_property()(Actor* child, char* property, GObject2.Value* value) nothrow { clutter_container_child_set_property(cast(Container*)&this, child, property, value); } @@ -7298,7 +7395,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // // Applications should not call this function. // : a #ClutterActor - void create_child_meta()(Actor* actor) { + void create_child_meta()(Actor* actor) nothrow { clutter_container_create_child_meta(cast(Container*)&this, actor); } @@ -7312,7 +7409,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // // Applications should not call this function. // : a #ClutterActor - void destroy_child_meta()(Actor* actor) { + void destroy_child_meta()(Actor* actor) nothrow { clutter_container_destroy_child_meta(cast(Container*)&this, actor); } @@ -7323,7 +7420,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // or %NULL if no actor with that name was found. // RETURNS: The child actor with the requested name, // : the name of the requested child. - Actor* find_child_by_name()(char* child_name) { + Actor* find_child_by_name()(char* child_name) nothrow { return clutter_container_find_child_by_name(cast(Container*)&this, child_name); } @@ -7340,7 +7437,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // and clutter_actor_get_previous_sibling() to iterate over it. // : a function to be called for each child // : data to be passed to the function, or %NULL - void foreach_()(Callback callback, void* user_data) { + void foreach_()(Callback callback, void* user_data) nothrow { clutter_container_foreach(cast(Container*)&this, callback, user_data); } @@ -7351,7 +7448,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // by the application. // : a function to be called for each child // : data to be passed to the function, or %NULL - void foreach_with_internals()(Callback callback, void* user_data) { + void foreach_with_internals()(Callback callback, void* user_data) nothrow { clutter_container_foreach_with_internals(cast(Container*)&this, callback, user_data); } @@ -7363,7 +7460,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // container is not configured to provide #ClutterChildMetas // RETURNS: the #ClutterChildMeta for the @actor child // : a #ClutterActor that is a child of @container. - ChildMeta* get_child_meta()(Actor* actor) { + ChildMeta* get_child_meta()(Actor* actor) nothrow { return clutter_container_get_child_meta(cast(Container*)&this, actor); } @@ -7374,7 +7471,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // of #ClutterActors. Use g_list_free() on the returned // list when done. // RETURNS: a list - GLib2.List* /*new container*/ get_children()() { + GLib2.List* /*new container*/ get_children()() nothrow { return clutter_container_get_children(cast(Container*)&this); } @@ -7383,7 +7480,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // 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 - void lower_child()(Actor* actor, Actor* sibling=null) { + void lower_child()(Actor* actor, Actor* sibling=null) nothrow { clutter_container_lower_child(cast(Container*)&this, actor, sibling); } @@ -7392,7 +7489,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // 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 - void raise_child()(Actor* actor, Actor* sibling=null) { + void raise_child()(Actor* actor, Actor* sibling=null) nothrow { clutter_container_raise_child(cast(Container*)&this, actor, sibling); } @@ -7416,7 +7513,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // yourself, using g_object_ref(). When the actor has been removed, // the "actor-removed" signal is emitted by @container. // : a #ClutterActor - void remove_actor()(Actor* actor) { + void remove_actor()(Actor* actor) nothrow { clutter_container_remove_actor(cast(Container*)&this, actor); } @@ -7426,7 +7523,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // Alternative va_list version of clutter_container_remove(). // : the first #ClutterActor to add // : list of actors to remove, followed by %NULL - void remove_valist()(Actor* first_actor, va_list var_args) { + void remove_valist()(Actor* first_actor, va_list var_args) nothrow { clutter_container_remove_valist(cast(Container*)&this, first_actor, var_args); } @@ -7438,7 +7535,7 @@ struct Container /* Interface */ /* Version 0.4 */ { // // function should not be used any more; the default implementation in // #ClutterContainer does not do anything. - void sort_depth_order()() { + void sort_depth_order()() nothrow { clutter_container_sort_depth_order(cast(Container*)&this); } @@ -7446,13 +7543,15 @@ struct Container /* Interface */ /* 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 - extern (C) alias static void function (Container* this_, Actor* actor, void* user_data=null) signal_actor_added; + extern (C) alias static void function (Container* this_, Actor* actor, void* user_data=null) nothrow signal_actor_added; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_actor_added)||_ttmm!(CB, signal_actor_added)()) { return signal_connect_data!()(&this, cast(char*)"actor-added", cast(GObject2.Callback)cb, data, null, cf); } @@ -7461,8 +7560,10 @@ struct Container /* Interface */ /* 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) { + extern (C) alias static void function (Container* this_, Actor* actor, void* user_data=null) nothrow signal_actor_removed; + ulong signal_connect(string name:"actor-removed", CB:signal_actor_removed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_actor_removed)||_ttmm!(CB, signal_actor_removed)()) { return signal_connect_data!()(&this, cast(char*)"actor-removed", cast(GObject2.Callback)cb, data, null, cf); } @@ -7473,8 +7574,10 @@ struct Container /* Interface */ /* Version 0.4 */ { // 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) { + extern (C) alias static void function (Container* this_, Actor* actor, GObject2.ParamSpec* pspec, void* user_data=null) nothrow signal_child_notify; + ulong signal_connect(string name:"child-notify", CB:signal_child_notify) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_child_notify)||_ttmm!(CB, signal_child_notify)()) { return signal_connect_data!()(&this, cast(char*)"child-notify", cast(GObject2.Callback)cb, data, null, cf); } @@ -7489,41 +7592,41 @@ struct Container /* Interface */ /* Version 0.4 */ { struct ContainerIface /* Version 0.4 */ { private GObject2.TypeInterface g_iface; // : the first #ClutterActor to add - extern (C) void function (Container* container, Actor* actor) add; + extern (C) void function (Container* container, Actor* actor) nothrow add; // : a #ClutterActor - extern (C) void function (Container* container, Actor* actor) remove; + extern (C) void function (Container* container, Actor* actor) nothrow remove; // : a function to be called for each child // : data to be passed to the function, or %NULL - extern (C) void function (Container* container, Callback callback, void* user_data) foreach_; + extern (C) void function (Container* container, Callback callback, void* user_data) nothrow foreach_; // : a function to be called for each child // : data to be passed to the function, or %NULL - extern (C) void function (Container* container, Callback callback, void* user_data) foreach_with_internals; + extern (C) void function (Container* container, Callback callback, void* user_data) nothrow foreach_with_internals; // : the actor to raise // : the sibling to raise to, or %NULL to raise to the top - extern (C) void function (Container* container, Actor* actor, Actor* sibling=null) raise; + extern (C) void function (Container* container, Actor* actor, Actor* sibling=null) nothrow raise; // : the actor to raise // : the sibling to lower to, or %NULL to lower to the bottom - extern (C) void function (Container* container, Actor* actor, Actor* sibling=null) lower; - extern (C) void function (Container* container) sort_depth_order; + extern (C) void function (Container* container, Actor* actor, Actor* sibling=null) nothrow lower; + extern (C) void function (Container* container) nothrow sort_depth_order; Type child_meta_type; // : a #ClutterActor - extern (C) void function (Container* container, Actor* actor) create_child_meta; + extern (C) void function (Container* container, Actor* actor) nothrow create_child_meta; // : a #ClutterActor - extern (C) void function (Container* container, Actor* actor) destroy_child_meta; + extern (C) void function (Container* container, Actor* actor) nothrow destroy_child_meta; // RETURNS: the #ClutterChildMeta for the @actor child // : a #ClutterActor that is a child of @container. - extern (C) ChildMeta* function (Container* container, Actor* actor) get_child_meta; - extern (C) void function (Container* container, Actor* actor) actor_added; - extern (C) void function (Container* container, Actor* actor) actor_removed; + extern (C) ChildMeta* function (Container* container, Actor* actor) nothrow get_child_meta; + extern (C) void function (Container* container, Actor* actor) nothrow actor_added; + extern (C) void function (Container* container, Actor* actor) nothrow actor_removed; // : a #ClutterActor // : a #GParamSpec - extern (C) void function (Container* container, Actor* child, GObject2.ParamSpec* pspec) child_notify; + extern (C) void function (Container* container, Actor* child, GObject2.ParamSpec* pspec) nothrow child_notify; } enum int ContrastAdjust = 269025058; @@ -7670,7 +7773,7 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { // The returned material is owned by the #ClutterDeformEffect and it // should not be freed directly // RETURNS: a handle for the material, or %NULL. - Cogl.Handle get_back_material()() { + Cogl.Handle get_back_material()() nothrow { return clutter_deform_effect_get_back_material(&this); } @@ -7679,14 +7782,14 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { // the actor's geometry during the effect // : return location for the number of horizontal tiles, or %NULL // : return location for the number of vertical tiles, or %NULL - void get_n_tiles()(/*out*/ uint* x_tiles, /*out*/ uint* y_tiles) { + void get_n_tiles()(/*out*/ uint* x_tiles, /*out*/ uint* y_tiles) nothrow { 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()() { + void invalidate()() nothrow { clutter_deform_effect_invalidate(&this); } @@ -7697,7 +7800,7 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { // The #ClutterDeformEffect will take a reference on the material's // handle // : a handle to a Cogl material - void set_back_material()(Cogl.Handle material=null) { + void set_back_material()(Cogl.Handle material=null) nothrow { clutter_deform_effect_set_back_material(&this, material); } @@ -7709,7 +7812,7 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { // of computation // : number of horizontal tiles // : number of vertical tiles - void set_n_tiles()(uint x_tiles, uint y_tiles) { + void set_n_tiles()(uint x_tiles, uint y_tiles) nothrow { clutter_deform_effect_set_n_tiles(&this, x_tiles, y_tiles); } } @@ -7719,14 +7822,14 @@ struct DeformEffect /* : OffscreenEffect */ /* Version 1.4 */ { // only private data struct DeformEffectClass /* Version 1.4 */ { private OffscreenEffectClass parent_class; - extern (C) void function (DeformEffect* effect, float width, float height, Cogl.TextureVertex* vertex) deform_vertex; - extern (C) void function () _clutter_deform1; - extern (C) void function () _clutter_deform2; - extern (C) void function () _clutter_deform3; - extern (C) void function () _clutter_deform4; - extern (C) void function () _clutter_deform5; - extern (C) void function () _clutter_deform6; - extern (C) void function () _clutter_deform7; + extern (C) void function (DeformEffect* effect, float width, float height, Cogl.TextureVertex* vertex) nothrow deform_vertex; + extern (C) void function () nothrow _clutter_deform1; + extern (C) void function () nothrow _clutter_deform2; + extern (C) void function () nothrow _clutter_deform3; + extern (C) void function () nothrow _clutter_deform4; + extern (C) void function () nothrow _clutter_deform5; + extern (C) void function () nothrow _clutter_deform6; + extern (C) void function () nothrow _clutter_deform7; } struct DeformEffectPrivate { @@ -7748,14 +7851,15 @@ struct DesaturateEffect /* : OffscreenEffect */ /* Version 1.4 */ { // clutter_actor_add_effect() // RETURNS: the newly created #ClutterDesaturateEffect or %NULL // : the desaturation factor, between 0.0 and 1.0 - static DesaturateEffect* new_()(double factor) { + static DesaturateEffect* new_()(double factor) nothrow { return clutter_desaturate_effect_new(factor); } + alias new_!() opCall; // VERSION: 1.4 // Retrieves the desaturation factor of @effect // RETURNS: the desaturation factor - double get_factor()() { + double get_factor()() nothrow { return clutter_desaturate_effect_get_factor(&this); } @@ -7763,7 +7867,7 @@ struct DesaturateEffect /* : OffscreenEffect */ /* 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 - void set_factor()(double factor) { + void set_factor()(double factor) nothrow { clutter_desaturate_effect_set_factor(&this, factor); } } @@ -7786,7 +7890,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { // The returned instance is owned by Clutter and it should not be // modified or freed // RETURNS: the #ClutterDeviceManager singleton. - static DeviceManager* get_default()() { + static DeviceManager* get_default()() nothrow { return clutter_device_manager_get_default(); } @@ -7800,7 +7904,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { // not be modified or freed // RETURNS: a #ClutterInputDevice or %NULL. The // : the type of the core device - InputDevice* get_core_device()(InputDeviceType device_type) { + InputDevice* get_core_device()(InputDeviceType device_type) nothrow { return clutter_device_manager_get_core_device(&this, device_type); } @@ -7811,7 +7915,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { // never be modified or freed // RETURNS: a #ClutterInputDevice or %NULL. The // : the integer id of a device - InputDevice* get_device()(int device_id) { + InputDevice* get_device()(int device_id) nothrow { return clutter_device_manager_get_device(&this, device_id); } @@ -7820,7 +7924,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { // // a newly allocated list of #ClutterInputDevice objects. Use // g_slist_free() to deallocate it when done - GLib2.SList* /*new container*/ list_devices()() { + GLib2.SList* /*new container*/ list_devices()() nothrow { return clutter_device_manager_list_devices(&this); } @@ -7830,7 +7934,7 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { // a pointer to the internal list of #ClutterInputDevice objects. The // returned list is owned by the #ClutterDeviceManager and should never // be modified or freed - GLib2.SList* peek_devices()() { + GLib2.SList* peek_devices()() nothrow { return clutter_device_manager_peek_devices(&this); } @@ -7838,13 +7942,15 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { // The ::device-added signal is emitted each time a device has been // added to the #ClutterDeviceManager // : the newly added #ClutterInputDevice - extern (C) alias static void function (DeviceManager* this_, InputDevice* device, void* user_data=null) signal_device_added; + extern (C) alias static void function (DeviceManager* this_, InputDevice* device, void* user_data=null) nothrow signal_device_added; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_device_added)||_ttmm!(CB, signal_device_added)()) { return signal_connect_data!()(&this, cast(char*)"device-added", cast(GObject2.Callback)cb, data, null, cf); } @@ -7853,8 +7959,10 @@ struct DeviceManager /* : GObject.Object */ /* 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) { + extern (C) alias static void function (DeviceManager* this_, InputDevice* device, void* user_data=null) nothrow signal_device_removed; + ulong signal_connect(string name:"device-removed", CB:signal_device_removed) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_device_removed)||_ttmm!(CB, signal_device_removed)()) { return signal_connect_data!()(&this, cast(char*)"device-removed", cast(GObject2.Callback)cb, data, null, cf); } @@ -7864,17 +7972,17 @@ struct DeviceManager /* : GObject.Object */ /* Version 1.2 */ { struct DeviceManagerClass /* Version 1.2 */ { private GObject2.ObjectClass parent_class; // Unintrospectable functionp: get_devices() / () - extern (C) GLib2.SList* function (DeviceManager* device_manager) get_devices; + extern (C) GLib2.SList* function (DeviceManager* device_manager) nothrow get_devices; // RETURNS: a #ClutterInputDevice or %NULL. The // : the type of the core device - extern (C) InputDevice* function (DeviceManager* device_manager, InputDeviceType device_type) get_core_device; + extern (C) InputDevice* function (DeviceManager* device_manager, InputDeviceType device_type) nothrow get_core_device; // RETURNS: a #ClutterInputDevice or %NULL. The // : the integer id of a device - extern (C) InputDevice* function (DeviceManager* device_manager, int device_id) get_device; - extern (C) void function (DeviceManager* manager, InputDevice* device) add_device; - extern (C) void function (DeviceManager* manager, InputDevice* device) remove_device; + extern (C) InputDevice* function (DeviceManager* device_manager, int device_id) nothrow get_device; + extern (C) void function (DeviceManager* manager, InputDevice* device) nothrow add_device; + extern (C) void function (DeviceManager* manager, InputDevice* device) nothrow remove_device; private void*[8] _padding; } @@ -7899,14 +8007,15 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // VERSION: 1.4 // Creates a new #ClutterDragAction instance // RETURNS: the newly created #ClutterDragAction - static DragAction* new_()() { + static DragAction* new_()() nothrow { return clutter_drag_action_new(); } + alias new_!() opCall; // VERSION: 1.4 // Retrieves the axis constraint set by clutter_drag_action_set_drag_axis() // RETURNS: the axis constraint - DragAxis get_drag_axis()() { + DragAxis get_drag_axis()() nothrow { return clutter_drag_action_get_drag_axis(&this); } @@ -7915,7 +8024,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // // handle, or %NULL if none was set // RETURNS: a #ClutterActor, used as the drag - Actor* get_drag_handle()() { + Actor* get_drag_handle()() nothrow { return clutter_drag_action_get_drag_handle(&this); } @@ -7928,7 +8037,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // by the #ClutterSettings:dnd-drag-threshold property of #ClutterSettings. // : return location for the horizontal drag threshold value, in pixels // : return location for the vertical drag threshold value, in pixels - void get_drag_threshold()(/*out*/ uint* x_threshold, /*out*/ uint* y_threshold) { + void get_drag_threshold()(/*out*/ uint* x_threshold, /*out*/ uint* y_threshold) nothrow { clutter_drag_action_get_drag_threshold(&this, x_threshold, y_threshold); } @@ -7937,7 +8046,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // event during the dragging // : return location for the latest motion event's X coordinate // : return location for the latest motion event's Y coordinate - void get_motion_coords()(/*out*/ float* motion_x, /*out*/ float* motion_y) { + void get_motion_coords()(/*out*/ float* motion_x, /*out*/ float* motion_y) nothrow { clutter_drag_action_get_motion_coords(&this, motion_x, motion_y); } @@ -7946,21 +8055,21 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // that started the dragging // : return location for the press event's X coordinate // : return location for the press event's Y coordinate - void get_press_coords()(/*out*/ float* press_x, /*out*/ float* press_y) { + void get_press_coords()(/*out*/ float* press_x, /*out*/ float* press_y) nothrow { 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) { + void set_drag_axis()(DragAxis axis) nothrow { 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) { + void set_drag_handle()(Actor* handle=null) nothrow { clutter_drag_action_set_drag_handle(&this, handle); } @@ -7973,7 +8082,7 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // property of #ClutterSettings will be used. // : a distance on the horizontal axis, in pixels, or -1 to use the default drag threshold from #ClutterSettings // : a distance on the vertical axis, in pixels, or -1 to use the default drag threshold from #ClutterSettings - void set_drag_threshold()(int x_threshold, int y_threshold) { + void set_drag_threshold()(int x_threshold, int y_threshold) nothrow { clutter_drag_action_set_drag_threshold(&this, x_threshold, y_threshold); } @@ -7988,13 +8097,15 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // : the X coordinate (in stage space) of the press event // : the Y coordinate (in stage space) of the press event // : the modifiers of the press 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_begin; + extern (C) alias static void function (DragAction* this_, Actor* actor, float event_x, float event_y, ModifierType* modifiers, void* user_data=null) nothrow signal_drag_begin; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_drag_begin)||_ttmm!(CB, signal_drag_begin)()) { return signal_connect_data!()(&this, cast(char*)"drag-begin", cast(GObject2.Callback)cb, data, null, cf); } @@ -8009,8 +8120,10 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // : the X coordinate (in stage space) of the release event // : 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) { + extern (C) alias static void function (DragAction* this_, Actor* actor, float event_x, float event_y, ModifierType* modifiers, void* user_data=null) nothrow signal_drag_end; + ulong signal_connect(string name:"drag-end", CB:signal_drag_end) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_drag_end)||_ttmm!(CB, signal_drag_end)()) { return signal_connect_data!()(&this, cast(char*)"drag-end", cast(GObject2.Callback)cb, data, null, cf); } @@ -8034,8 +8147,10 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // : the #ClutterActor attached to the action // : 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) { + extern (C) alias static void function (DragAction* this_, Actor* actor, float delta_x, float delta_y, void* user_data=null) nothrow signal_drag_motion; + ulong signal_connect(string name:"drag-motion", CB:signal_drag_motion) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_drag_motion)||_ttmm!(CB, signal_drag_motion)()) { return signal_connect_data!()(&this, cast(char*)"drag-motion", cast(GObject2.Callback)cb, data, null, cf); } @@ -8046,14 +8161,14 @@ struct DragAction /* : Action */ /* Version 1.4 */ { // only private data struct DragActionClass /* Version 1.4 */ { private ActionClass parent_class; - extern (C) void function (DragAction* action, Actor* actor, float event_x, float event_y, ModifierType modifiers) drag_begin; - extern (C) void function (DragAction* action, Actor* actor, float delta_x, float delta_y) drag_motion; - extern (C) void function (DragAction* action, Actor* actor, float event_x, float event_y, ModifierType modifiers) drag_end; - extern (C) void function () _clutter_drag_action1; - extern (C) void function () _clutter_drag_action2; - extern (C) void function () _clutter_drag_action3; - extern (C) void function () _clutter_drag_action4; - extern (C) void function () _clutter_drag_action5; + extern (C) void function (DragAction* action, Actor* actor, float event_x, float event_y, ModifierType modifiers) nothrow drag_begin; + extern (C) void function (DragAction* action, Actor* actor, float delta_x, float delta_y) nothrow drag_motion; + extern (C) void function (DragAction* action, Actor* actor, float event_x, float event_y, ModifierType modifiers) nothrow drag_end; + extern (C) void function () nothrow _clutter_drag_action1; + extern (C) void function () nothrow _clutter_drag_action2; + extern (C) void function () nothrow _clutter_drag_action3; + extern (C) void function () nothrow _clutter_drag_action4; + extern (C) void function () nothrow _clutter_drag_action5; } struct DragActionPrivate { @@ -8083,9 +8198,10 @@ struct DropAction /* : Action */ /* Version 1.8 */ { // // Use clutter_actor_add_action() to add the action to a #ClutterActor. // RETURNS: the newly created #ClutterDropAction - static DropAction* new_()() { + static DropAction* new_()() nothrow { return clutter_drop_action_new(); } + alias new_!() opCall; // VERSION: 1.8 // The ::can-drop signal is emitted when the dragged actor is dropped @@ -8098,13 +8214,15 @@ struct DropAction /* : Action */ /* Version 1.8 */ { // RETURNS: %TRUE if the drop is accepted, and %FALSE otherwise // : the #ClutterActor attached to the @action // : %TRUE if the drop is accepted, and %FALSE otherwise - extern (C) alias static c_int function (DropAction* this_, Actor* actor, float returns, float since, void* user_data=null) signal_can_drop; + extern (C) alias static c_int function (DropAction* this_, Actor* actor, float returns, float since, void* user_data=null) nothrow signal_can_drop; ulong signal_connect(string name, CB)(CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) { 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) + if (is(typeof(cb)==signal_can_drop)||_ttmm!(CB, signal_can_drop)()) { return signal_connect_data!()(&this, cast(char*)"can-drop", cast(GObject2.Callback)cb, data, null, cf); } @@ -8113,8 +8231,10 @@ struct DropAction /* : Action */ /* 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) { + extern (C) alias static void function (DropAction* this_, Actor* object, float p0, float p1, void* user_data=null) nothrow signal_drop; + ulong signal_connect(string name:"drop", CB:signal_drop) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_drop)||_ttmm!(CB, signal_drop)()) { return signal_connect_data!()(&this, cast(char*)"drop", cast(GObject2.Callback)cb, data, null, cf); } @@ -8123,8 +8243,10 @@ struct DropAction /* : Action */ /* 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) { + extern (C) alias static void function (DropAction* this_, Actor* actor, void* user_data=null) nothrow signal_over_in; + ulong signal_connect(string name:"over-in", CB:signal_over_in) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_over_in)||_ttmm!(CB, signal_over_in)()) { return signal_connect_data!()(&this, cast(char*)"over-in", cast(GObject2.Callback)cb, data, null, cf); } @@ -8133,8 +8255,10 @@ struct DropAction /* : Action */ /* 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) { + extern (C) alias static void function (DropAction* this_, Actor* actor, void* user_data=null) nothrow signal_over_out; + ulong signal_connect(string name:"over-out", CB:signal_over_out) + (CB cb, void* data=null, ConnectFlags cf=cast(ConnectFlags)0) + if (is(typeof(cb)==signal_over_out)||_ttmm!(CB, signal_over_out)()) { return signal_connect_data!()(&this, cast(char*)"over-out", cast(GObject2.Callback)cb, data, null, cf); } @@ -8145,18 +8269,18 @@ struct DropAction /* : Action */ /* Version 1.8 */ { // only private data. struct DropActionClass /* Version 1.8 */ { private ActionClass parent_class; - extern (C) int function (DropAction* action, Actor* actor, float event_x, float event_y) can_drop; - extern (C) void function (DropAction* action, Actor* actor) over_in; - extern (C) void function (DropAction* action, Actor* actor) over_out; - extern (C) void function (DropAction* action, Actor* actor, float event_x, float event_y) drop; - extern (C) void function () _clutter_drop_action1; - extern (C) void function () _clutter_drop_action2; - extern (C) void function () _clutter_drop_action3; - extern (C) void function () _clutter_drop_action4; - extern (C) void function () _clutter_drop_action5; - extern (C) void function () _clutter_drop_action6; - extern (C) void function () _clutter_drop_action7; - extern (C) void function () _clutter_drop_action8; + extern (C) int function (DropAction* action, Actor* actor, float event_x, float event_y) nothrow can_drop; + extern (C) void function (DropAction* action, Actor* actor) nothrow over_in; + extern (C) void function (DropAction* action, Actor* actor) nothrow over_out; + extern (C) void function (DropAction* action, Actor* actor, float event_x, float event_y) nothrow drop; + extern (C) void function () nothrow _clutter_drop_action1; + extern (C) void function () nothrow _clutter_drop_action2; + extern (C) void function () nothrow _clutter_drop_action3; + extern (C) void function () nothrow _clutter_drop_action4; + extern (C) void function () nothrow _clutter_drop_action5; + extern (C) void function () nothrow _clutter_drop_action6; + extern (C) void function () nothrow _clutter_drop_action7; + extern (C) void function () nothrow _clutter_drop_action8; } struct DropActionPrivate { @@ -8224,7 +8348,7 @@ struct Effect /* : ActorMeta */ /* Version 1.4 */ { // one then that will override this call. In that case this effect // will instead be called with the %CLUTTER_EFFECT_PAINT_ACTOR_DIRTY // flag set. - void queue_repaint()() { + void queue_repaint()() nothrow { clutter_effect_queue_repaint(&this); } } @@ -8232,14 +8356,14 @@ struct Effect /* : ActorMeta */ /* Version 1.4 */ { // The #ClutterEffectClass structure contains only private data struct EffectClass /* Version 1.4 */ { private ActorMetaClass parent_class; - extern (C) int function (Effect* effect) pre_paint; - extern (C) void function (Effect* effect) post_paint; - extern (C) int function (Effect* effect, PaintVolume* volume) get_paint_volume; - extern (C) void function (Effect* effect, EffectPaintFlags flags) paint; - extern (C) void function (Effect* effect, EffectPaintFlags flags) pick; - extern (C) void function () _clutter_effect4; - extern (C) void function () _clutter_effect5; - extern (C) void function () _clutter_effect6; + extern (C) int function (Effect* effect) nothrow pre_paint; + extern (C) void function (Effect* effect) nothrow post_paint; + extern (C) int function (Effect* effect, PaintVolume* volume) nothrow get_paint_volume; + extern (C) void function (Effect* effect, EffectPaintFlags flags) nothrow paint; + extern (C) void function (Effect* effect, EffectPaintFlags flags) nothrow pick; + extern (C) void function () nothrow _clutter_effect4; + extern (C) void function () nothrow _clutter_effect5; + extern (C) void function () nothrow _clutter_effect6; } // Flags passed to the ‘paint’ or ‘pick’ method of #ClutterEffect. @@ -8273,17 +8397,18 @@ union Event /* Version 0.2 */ { // Creates a new #ClutterEvent of the specified type. // RETURNS: A newly allocated #ClutterEvent. // : The type of event. - static Event* /*new*/ new_()(EventType type) { + static Event* /*new*/ new_()(EventType type) nothrow { return clutter_event_new(type); } + alias new_!() opCall; // Copies @event. // RETURNS: A newly allocated #ClutterEvent - Event* /*new*/ copy()() { + Event* /*new*/ copy()() nothrow { return clutter_event_copy(&this); } // Frees all resources used by @event. - void free()() { + void free()() nothrow { clutter_event_free(&this); } @@ -8291,21 +8416,21 @@ union Event /* Version 0.2 */ { // Retrieves the array of axes values attached to the event. // RETURNS: an array of axis values // : return location for the number of axes returned - double* get_axes()(/*out*/ uint* n_axes) { + double* get_axes()(/*out*/ uint* n_axes) nothrow { return clutter_event_get_axes(&this, n_axes); } // VERSION: 1.0 // Retrieves the button number of @event // RETURNS: the button number - uint get_button()() { + uint get_button()() nothrow { return clutter_event_get_button(&this); } // VERSION: 1.0 // Retrieves the number of clicks of @event // RETURNS: the click count - uint get_click_count()() { + uint get_click_count()() nothrow { return clutter_event_get_click_count(&this); } @@ -8313,7 +8438,7 @@ union Event /* Version 0.2 */ { // 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 - void get_coords()(/*out*/ float* x, /*out*/ float* y) { + void get_coords()(/*out*/ float* x, /*out*/ float* y) nothrow { clutter_event_get_coords(&this, x, y); } @@ -8326,7 +8451,7 @@ union Event /* Version 0.2 */ { // returned device is owned by the #ClutterEvent and it should not // be unreferenced // RETURNS: the #ClutterInputDevice or %NULL. The - InputDevice* get_device()() { + InputDevice* get_device()() nothrow { return clutter_event_get_device(&this); } @@ -8334,7 +8459,7 @@ union Event /* Version 0.2 */ { // // no specific device set. // RETURNS: A unique identifier for the device or -1 if the event has - int get_device_id()() { + int get_device_id()() nothrow { return clutter_event_get_device_id(&this); } @@ -8343,48 +8468,48 @@ union Event /* Version 0.2 */ { // // any is set // RETURNS: the #ClutterInputDeviceType for the device, if - InputDeviceType get_device_type()() { + InputDeviceType get_device_type()() nothrow { return clutter_event_get_device_type(&this); } // VERSION: 1.0 // Retrieves the #ClutterEventFlags of @event // RETURNS: the event flags - EventFlags get_flags()() { + EventFlags get_flags()() nothrow { 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()() { + ushort get_key_code()() nothrow { 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()() { + uint get_key_symbol()() nothrow { return clutter_event_get_key_symbol(&this); } // Retrieves the unicode value for the key that caused @keyev. // RETURNS: The unicode value representing the key - uint get_key_unicode()() { + uint get_key_unicode()() nothrow { 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()() { + Actor* get_related()() nothrow { 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()() { + ScrollDirection get_scroll_direction()() nothrow { return clutter_event_get_scroll_direction(&this); } @@ -8392,7 +8517,7 @@ union Event /* Version 0.2 */ { // Retrieves the source #ClutterActor the event originated from, or // NULL if the event has no source. // RETURNS: a #ClutterActor - Actor* get_source()() { + Actor* get_source()() nothrow { return clutter_event_get_source(&this); } @@ -8406,7 +8531,7 @@ union Event /* Version 0.2 */ { // // or %NULL // RETURNS: a pointer to a #ClutterInputDevice - InputDevice* get_source_device()() { + InputDevice* get_source_device()() nothrow { return clutter_event_get_source_device(&this); } @@ -8414,21 +8539,21 @@ union Event /* Version 0.2 */ { // Retrieves the source #ClutterStage the event originated for, or // %NULL if the event has no stage. // RETURNS: a #ClutterStage - Stage* get_stage()() { + Stage* get_stage()() nothrow { 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()() { + ModifierType get_state()() nothrow { 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()() { + uint get_time()() nothrow { return clutter_event_get_time(&this); } @@ -8438,14 +8563,14 @@ union Event /* Version 0.2 */ { // event signals will be emitted for this source and capture/bubbling for // its ancestors. If the source is not set it will be generated by picking // or use the actor that currently has keyboard focus - void put()() { + void put()() nothrow { clutter_event_put(&this); } // VERSION: 1.8 // Sets the button number of @event //