Plank.Factories.ItemFactory – plank – Vala Binding Reference

Plank.Factories.ItemFactory – plank Reference Manual

# ItemFactory

## Object Hierarchy:

## Description:

public class ItemFactory : Object

An item factory. Creates Items.DockItems based on .dockitem files.

Namespace: Plank.Factories
Package: plank

## Content:

### Creation methods:

- public ItemFactory ()

### Methods:

- public virtual DockElement make_element (File file)
  Creates a new Items.DockElement from a .dockitem.
- public virtual DockItem get_item_for_dock ()
  Creates a new Items.PlankDockItem for the dock itself.
- protected DockElement default_make_element (File file, string launcher)
  Creates a new Items.DockElement for a launcher parsed from a .dockitem.
- protected string get_launcher_from_dockitem (File file)
  Parses a .dockitem to get the launcher from it.
- public ArrayList<DockItem> load_items (File source_dir, string? ordering = null)
  Creates a list of Dockitems based on .dockitem files found in the given source_dir.
- public void make_default_items ()
  Creates a bunch of default .dockitem's.
- public File? make_dock_item (string uri, File? target_dir = null)
  Creates a new .dockitem for a uri.

### Fields:

- public File launchers_dir
  The directory containing .dockitem files.

### Inherited Members:

All known members inherited from class GLib.Object

- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer

- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata

- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count