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 IsAttached { set; get; }
Whether the item is currently hidden on the dock. If TRUE it will be
drawn and does consume space. If FALSE it will not be drawn and does not consume space.
- public bool IsVisible { set; get; }
Whether the item is currently visible on the dock. If TRUE it will be
drawn and does consume space. If FALSE it will not be drawn and does consume space.
- public PopupButton Button { protected set; get; }
The buttons this item shows popup menus for.
- public AnimationType ClickedAnimation { protected set; get; }
The animation to show for the item's last click event.
- public AnimationType HoveredAnimation { protected set; get; }
The animation to show for the item's last hover event.
- public AnimationType 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.
- public int64 LastValid { protected set; get; }
The last time the item was valid.
Static methods:
- protected static MenuItem create_menu_item (string title, string? icon = null, bool force_show_icon = false)
Creates a new menu item with mnemonics enabled.
- protected static MenuItem create_menu_item_with_pixbuf (string title, owned Pixbuf pixbuf, bool force_show_icon = false)
Creates a new menu item with mnemonics enabled.
- protected static MenuItem create_literal_menu_item (string title, string? icon = null, bool force_show_icon = true)
Creates a new menu item with mnemonics disabled.
- protected static MenuItem create_literal_menu_item_with_pixbuf (string title, owned Pixbuf pixbuf, bool force_show_icon = true)
Creates a new menu item with mnemonics disabled.
Creation methods:
Methods:
- public void clicked (PopupButton button, ModifierType mod, uint32 event_time)
Called when an item is clicked on.
- protected virtual AnimationType on_clicked (PopupButton button, ModifierType mod, uint32 event_time)
Called when an item is clicked on.
- public void hovered ()
Called when an item gets hovered.
- protected virtual AnimationType on_hovered ()
Called when an item gets hovered.
- public void scrolled (ScrollDirection direction, ModifierType mod, uint32 event_time)
Called when an item is scrolled over.
- protected virtual AnimationType on_scrolled (ScrollDirection direction, ModifierType mod, uint32 event_time)
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 string get_drop_text ()
The item's text for drop actions.
- 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
- new_valist
- newv
- new_with_properties
- 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
- getv
- 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
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
- notify
- ref_count