Class

IdeObject

Description

class Ide.Object : GObject.Object
{
  /* No available fields */
}
No description available.

Hierarchy

hierarchy this IdeObject ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

ide_object_new

This is a convenience function for creating an IdeObject and appending it to a parent.

Functions

ide_object_animate

Animates the properties of object. The can be set in a similar manner to g_object_set(). They will be animated from their current value to the target value over the time period.

ide_object_animate_full
No description available.

ide_object_animatev
No description available.

ide_object_destroyed

This function sets *object_pointer to NULL if object_pointer != NULL. It’s intended to be used as a callback connected to the “destroy” signal of a object. You connect ide_object_destroyed() as a signal handler, and pass the address of your object variable as user data. Then when the object is destroyed, the variable will be set to NULL. Useful for example to avoid multiple copies of the same dialog.

ide_object_log
No description available.

ide_object_notify_by_pspec

Like g_object_notify_by_pspec() if the caller is in the main-thread. Otherwise, the request is deferred to the main thread.

ide_object_notify_in_main

This helper will perform a g_object_notify_by_pspec() with the added requirement that it is run from the applications main thread.

Instance methods

ide_object_add

Adds child to self, with location dependent on location.

ide_object_append

Inserts child as the last child of self.

ide_object_check_ready
No description available.

ide_object_destroy
No description available.

ide_object_ensure_child_typed

Like ide_object_get_child_typed() except that it creates an object of type if it is missing.

ide_object_foreach

Calls callback for each child of self.

ide_object_get_child_typed

Finds the first child of self that is of type.

ide_object_get_children_typed

Gets all children matching type.

ide_object_get_context

Gets the IdeContext for the object.

ide_object_get_n_children

Gets the number of children for an object.

ide_object_get_nth_child

Gets the nth child of self.

ide_object_get_parent

Gets the parent IdeObject, if any.

ide_object_get_position

Gets the position of self within the parent node.

ide_object_in_destruction
No description available.

ide_object_insert_after

Inserts child into selfs children, directly after sibling.

ide_object_insert_before

Inserts child into selfs children, directly before sibling.

ide_object_insert_sorted

Locates the proper sibling for child by using func amongst selfs children IdeObject. Those objects must already be sorted.

ide_object_is_root

Checks if self is root, meaning it has no parent.

ide_object_lock

Acquires the lock for self. This can be useful when you need to do multi-threaded work with self and want to ensure exclusivity.

ide_object_prepend

Inserts child as the first child of self.

ide_object_ref_cancellable

Gets a GCancellable for the object.

ide_object_ref_context

Gets the root IdeContext for the object, if any.

ide_object_ref_parent

Gets the parent IdeObject, if any.

ide_object_ref_root

Finds and returns the toplevel object in the tree.

ide_object_remove

Removes child from self.

ide_object_repr

This function is similar to Python’s repr() which gives a string representation for the object. It is useful when debugging Builder or when writing plugins.

ide_object_set_context
No description available.

ide_object_set_error_if_destroyed
No description available.

ide_object_unlock

Releases a previously acuiqred lock from ide_object_lock().

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Ide.Object:cancellable

The “cancellable” property is a GCancellable that can be used by operations that will be cancelled when the IdeObject::destroy signal is emitted on self.

Ide.Object:parent

The parent IdeObject, if any.

Signals

Ide.Object::destroy

The “destroy” signal is emitted when the object should destroy itself and cleanup any state that is no longer necessary. This happens when the object has been removed from the because it was requested to be destroyed, or because a parent object is being destroyed.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct IdeObjectClass {
  GObjectClass parent_class;
  void (* destroy) (
    IdeObject* self
  );
  void (* add) (
    IdeObject* self,
    IdeObject* sibling,
    IdeObject* child,
    IdeObjectLocation location
  );
  void (* remove) (
    IdeObject* self,
    IdeObject* child
  );
  void (* parent_set) (
    IdeObject* self,
    IdeObject* parent
  );
  char* (* repr) (
    IdeObject* self
  );
  None _reserved;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.
destroy: void (* destroy) ( IdeObject* self )
No description available.
add: void (* add) ( IdeObject* self, IdeObject* sibling, IdeObject* child, IdeObjectLocation location )
No description available.
remove: void (* remove) ( IdeObject* self, IdeObject* child )
No description available.
parent_set: void (* parent_set) ( IdeObject* self, IdeObject* parent )
No description available.
repr: char* (* repr) ( IdeObject* self )
No description available.
_reserved: None
No description available.

Virtual methods

Ide.ObjectClass.add

Adds child to self, with location dependent on location.

Ide.ObjectClass.destroy
No description available.

Ide.ObjectClass.parent_set
No description available.

Ide.ObjectClass.remove

Removes child from self.

Ide.ObjectClass.repr

This function is similar to Python’s repr() which gives a string representation for the object. It is useful when debugging Builder or when writing plugins.