Dee.FileResourceManager

g Dee.FileResourceManager Dee.FileResourceManager Dee.ResourceManager Dee.ResourceManager Dee.ResourceManager->Dee.FileResourceManager GObject.GInterface GObject.GInterface GObject.GInterface->Dee.ResourceManager GObject.Object GObject.Object GObject.Object->Dee.FileResourceManager

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Dee.ResourceManager (3)

Structs:

GObject.ObjectClass (5)

class

new (primary_path)

add_search_path (path)

get_primary_path ()

Virtual Methods

Inherited:

GObject.Object (7), Dee.ResourceManager (2)

Properties

Name

Type

Flags

Short Description

primary-path

str

r/w/co

The primary path to to store and load resources from

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Dee.FileResourceManager(**kwargs)
Bases:

GObject.Object, Dee.ResourceManager

Abstract:

No

Structure:

Dee.FileResourceManagerClass

classmethod new(primary_path)
Parameters:

primary_path (str) – The primary path used to store and load resources. If you pass None the manager will use a default path.

Returns:

A newly allocated Dee.FileResourceManager. Free with GObject.Object.unref().

Return type:

Dee.FileResourceManager

Create a new Dee.FileResourceManager with its primary store- and load path set to primary_path.

You can manually add fallback search paths by calling Dee.FileResourceManager.add_search_path().

You normally don’t need to create you own resource managers. Instead you should call Dee.ResourceManager.get_default().

add_search_path(path)
Parameters:

path (str) – The path to add to the set of searched paths

Add a path to the set of paths searched for resources. The manager will first search the primary path as specified in the constructor and then search paths in the order they where added.

get_primary_path()
Returns:

The value of the :primary-path property

Return type:

str

Helper method to access the :primary-path property.

Property Details

Dee.FileResourceManager.props.primary_path
Name:

primary-path

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Property holding the primary path used to store and load resources