Resource
Object Hierarchy:
Description:
[
CCode ( type_id =
"gimp_resource_get_type ()" ) ]
public abstract class Resource :
Object,
ConfigInterface
Functions to manipulate resources.
Content:
Properties:
- public int id { get; construct; }
Static methods:
- public static unowned Resource? get_by_id (int32 resource_id)
Returns a Resource representing
resource_id.
- public static unowned Resource? get_by_name (Type resource_type, string resource_name)
Returns the resource with the given resource_type and
resource_name.
- public static bool id_is_brush (int resource_id)
Returns whether the resource ID is a brush.
- public static bool id_is_font (int resource_id)
Returns whether the resource ID is a font.
- public static bool id_is_gradient (int resource_id)
Returns whether the resource ID is a gradient.
- public static bool id_is_palette (int resource_id)
Returns whether the resource ID is a palette.
- public static bool id_is_pattern (int resource_id)
Returns whether the resource ID is a pattern.
- public static bool id_is_valid (int resource_id)
Returns TRUE if the resource ID is valid.
Creation methods:
Methods:
- public bool @delete ()
Deletes a resource.
- public unowned Resource duplicate ()
Duplicates a resource.
- public int32 get_id ()
Note: in most use cases, you should not need a resource's ID which is
mostly internal data and not reusable across sessions.
- public string get_name ()
Returns the resource's name.
- public bool is_brush ()
Returns whether the resource is a brush.
- public bool is_editable ()
Whether the resource can be edited.
- public bool is_font ()
Returns whether the resource is a font.
- public bool is_gradient ()
Returns whether the resource is a gradient.
- public bool is_palette ()
Returns whether the resource is a palette.
- public bool is_pattern ()
Returns whether the resource is a pattern.
- public bool is_valid ()
Returns TRUE if the resource is valid.
- public bool rename (string new_name)
Renames a resource.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gimp.ConfigInterface