Plank.FileDockItem – plank – Vala Binding Reference

Plank.FileDockItem – plank Reference Manual

# FileDockItem

## Object Hierarchy:

## Description:

public class FileDockItem : DockItem

A dock item for files or folders on the dock.

Folders act like stacks and display the contents of the folder in the popup menu. Files just open the associated file.

Namespace: Plank
Package: plank

## Content:

### Properties:

- public File OwnedFile { protected construct set; get; }

### Creation methods:

- public FileDockItem.with_file (File file)
- public FileDockItem.with_dockitem_file (File file)
- public FileDockItem.with_dockitem_filename (string filename)
- public FileDockItem ()

### Methods:

- protected override void load_from_launcher ()
  Parses the associated launcher and e.g. sets the icon and text from it.
- protected override void draw_icon_fast (Surface surface)
  Draws a placeholder icon onto a surface. This method should be considered time-critical! Make sure to only use simple drawing routines, and do not rely on external resources!
- protected override void draw_icon (Surface surface)
  Draws the item's icon onto a surface.
- public void launch ()
  Launches the application associated with this item.
- protected override AnimationType on_clicked (PopupButton button, ModifierType mod, uint32 event_time)
  Called when an item is clicked on.
- public override ArrayList<MenuItem> get_menu_items ()
  Returns a list of the item's menu items.

### Inherited Members:

All known members inherited from class Plank.DockItem

- Icon
- ForcePixbuf
- Count
- CountVisible
- Progress
- ProgressVisible
- Position
- LastPosition
- State
- Indicator

- AverageIconColor
- DockItemFilename
- Launcher
- Prefs
- load_from_launcher
- @delete
- reset_icon_buffer
- reset_buffers
- unset_move_state

- get_surface
- get_background_surface
- get_foreground_surface
- get_surface_copy
- draw_icon
- draw_icon_fast
- is_valid
- copy_values_to
- deleted

All known members inherited from class Plank.DockElement

- Container
- Text
- IsAttached
- IsVisible
- Button
- ClickedAnimation
- HoveredAnimation
- ScrolledAnimation
- AddTime
- RemoveTime
- LastClicked
- LastHovered

- LastScrolled
- LastUrgent
- LastActive
- LastMove
- LastValid
- create_menu_item
- create_menu_item_with_pixbuf
- clicked
- on_clicked
- hovered
- on_hovered
- scrolled

- on_scrolled
- get_dock
- get_menu_items
- get_drop_text
- can_be_removed
- can_accept_drop
- accept_drop
- unique_id
- as_uri
- reset_buffers
- needs_redraw

All known members inherited from class GLib.Object

- @new
- new_valist
- newv
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- freeze_notify
- @get

- get_class
- get_data
- get_property
- get_qdata
- get_type
- notify_property
- @ref
- ref_sink
- replace_data
- replace_qdata
- remove_toggle_ref
- remove_weak_pointer
- @set

- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- steal_data
- steal_qdata
- thaw_notify
- unref
- weak_ref
- weak_unref
- notify
- ref_count