DockElement
Object Hierarchy:
Description:
public abstract class DockElement : Object
The base class for all dock elements.
Content:
Properties:
- public DockContainer? Container { set; get; }
The dock element's container which it is added too (if any).
- public string Text { set; get; }
The dock item's text.
- public bool IsVisible { set; get; }
Whether the item is currently visible on the dock.
- public PopupButton Button { protected set; get; }
The buttons this item shows popup menus for.
- public Animation ClickedAnimation { protected set; get; }
The animation to show for the item's last click event.
- public Animation HoveredAnimation { protected set; get; }
The animation to show for the item's last hover event.
- public Animation ScrolledAnimation { protected set; get; }
The animation to show for the item's last scroll event.
- public int64 AddTime { set; get; }
The time the item was added to the dock.
- public int64 RemoveTime { set; get; }
The time the item was removed from the dock.
- public int64 LastClicked { protected set; get; }
The last time the item was clicked.
- public int64 LastHovered { protected set; get; }
The last time the item was hovered.
- public int64 LastScrolled { protected set; get; }
The last time the item was scrolled.
- public int64 LastUrgent { protected set; get; }
The last time the item changed its urgent status.
- public int64 LastActive { protected set; get; }
The last time the item changed its active status.
- public int64 LastMove { protected set; get; }
The last time the item changed its position.
Static methods:
- protected static MenuItem create_menu_item (string title, string? icon = null, bool force_show_icon = false)
Creates a new menu item.
- protected static MenuItem create_menu_item_with_pixbuf (string title, owned Pixbuf pixbuf, bool force_show_icon = false)
Creates a new menu item.
Creation methods:
Methods:
- public void clicked (PopupButton button, ModifierType mod)
Called when an item is clicked on.
- protected virtual Animation on_clicked (PopupButton button, ModifierType mod)
Called when an item is clicked on.
- public void hovered ()
Called when an item gets hovered.
- protected virtual Animation on_hovered ()
Called when an item gets hovered.
- public void scrolled (ScrollDirection direction, ModifierType mod)
Called when an item is scrolled over.
- protected virtual Animation on_scrolled (ScrollDirection direction, ModifierType mod)
Called when an item is scrolled over.
- public weak DockController? get_dock ()
Get the dock which this element is part of
- public virtual ArrayList<MenuItem> get_menu_items ()
Returns a list of the item's menu items.
- public virtual bool can_be_removed ()
Returns if this item can be removed from the dock.
- public virtual bool can_accept_drop (ArrayList<string> uris)
Returns if the item accepts a drop of the given URIs.
- public virtual bool accept_drop (ArrayList<string> uris)
Accepts a drop of the given URIs.
- public virtual string unique_id ()
Returns a unique ID for this dock item.
- public string as_uri ()
Returns a unique URI for this dock element.
- public abstract void reset_buffers ()
Resets the buffers for this element.
Signals:
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