Plank.DockContainer – plank – Vala Binding Reference

Plank.DockContainer – plank Reference Manual

# DockContainer

## Object Hierarchy:

## Description:

public abstract class DockContainer : DockElement

A container and controller class for managing dock elements on a dock.

All known sub-classes:

- ApplicationDockItemProvider
- DefaultApplicationDockItemProvider

- DockController

- DockItemProvider

Namespace: Plank
Package: plank

## Content:

### Properties:

- public ArrayList<DockElement> VisibleElements { get; }
  The ordered list of the visible dock elements.
- public ArrayList<DockElement> Elements { get; }
  The list of the all containing dock elements.

### Static methods:

- protected static void move_element (List<DockElement> elements, int from, int to, List<weak DockElement>? moved = null)

### Creation methods:

- public DockContainer ()
  Creates a new container for dock elements.

### Methods:

- public virtual void prepare ()
  Do some special implementation specific preparation
- public bool add (DockElement element, DockElement? target = null)
  Adds a dock-element to the collection.
- public void prepend (DockElement element)
  Prepends a dock-element to the collection. So the dock-element will appear at the first position.
- public bool add_all (ArrayList<DockElement> elements)
  Adds a ordered list of dock-elements to the collection.
- public bool remove (DockElement element)
  Removes a dock-element from the collection.
- public bool remove_all (ArrayList<DockElement> elements)
  Removes all given dock-elements from the collection.
- public bool clear ()
  Clears and therefore removes all dock-elements from the collection.
- protected virtual void update_visible_elements ()
- public virtual bool move_to (DockElement move, DockElement target)
  Move an element to the position of another element. This shifts all elements which are placed between these two elements.
- public override void reset_buffers ()
  Reset internal buffers of all elements.
- public virtual bool replace (DockElement new_element, DockElement old_element)
  Replace an element with another element.
- protected abstract void connect_element (DockElement element)
- protected abstract void disconnect_element (DockElement element)

### Signals:

- public signal void elements_changed (List<DockElement> added, List<DockElement> removed)
  Triggered when the collection of elements has changed.
- public signal void states_changed ()
  Triggered when the state of an element changes.
- public signal void positions_changed (List<weak DockElement> elements)
  Triggered anytime element-positions were changed.

### Fields:

- protected static PlaceholderDockItem placeholder_item
- protected ArrayList<DockElement> visible_elements
- protected ArrayList<DockElement> internal_elements

### Inherited Members:

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
- create_literal_menu_item
- create_literal_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
- watch_closure
- weak_ref
- weak_unref
- notify
- ref_count