DockItem
Object Hierarchy:
Description:
[
CCode ( type_id =
"gdl_dock_item_get_type ()" ) ]
public class DockItem :
DockObject,
Implementor,
Buildable
Content:
Properties:
- public DockItemBehavior behavior { get; set; }
- public bool closed { get; set; }
If set, the dock item is closed.
- public bool iconified { get; set; }
If set, the dock item is hidden but it has a corresponding icon in the
dock bar allowing to show it again.
- public bool locked { get; set; }
- public Orientation orientation { get; set construct; }
The orientation of the docking item.
- public int preferred_height { get; set; }
- public int preferred_width { get; set; }
- public bool resize { get; set; }
Creation methods:
Methods:
- public void @lock ()
This function locks the dock item.
- public void @unlock ()
This function unlocks the dock item.
- public void bind (Widget dock)
Binds this dock item to a new dock master.
- public void dock_to (DockItem? target, DockPlacement position, int docking_param)
Relocates a dock item to a new location relative to another dock item.
- public DockItemBehavior get_behavior_flags ()
Retrieves the behavior of the item.
- public unowned Widget get_child ()
Gets the child of the DockItem, or
null
if the item contains no child widget.
- public void get_drag_area (Rectangle rect)
Gets the size and the position of the drag window in pixels.
- public unowned Widget? get_grip ()
This function returns the dock item's grip label widget.
- public Orientation get_orientation ()
Retrieves the orientation of the object.
- public unowned Widget get_tablabel ()
Gets the current tab label widget.
- public void hide_grip ()
This function hides the dock item's grip widget.
- public void hide_item ()
This function hides the dock item.
- public void iconify_item ()
This function iconifies the dock item.
- public bool is_closed ()
Checks whether a given DockItem is closed.
- public bool is_iconified ()
Checks whether a given DockItem is
iconified.
- public bool is_placeholder ()
Checks whether a given DockItem is a
placeholder created by the DockLayout object and does not contain a child.
- public void notify_deselected ()
This function emits the deselected signal.
- public void notify_selected ()
This function emits the selected signal.
- public bool or_child_has_focus ()
Checks whether a given DockItem or its
child widget has focus.
- public void preferred_size (Requisition req)
Gets the preferred size of the dock item in pixels.
- public void set_behavior_flags (DockItemBehavior behavior, bool clear)
This function sets the behavior of the dock item.
- public void set_child (Widget? child)
Set a new child for the DockItem.
- public void set_default_position (DockObject reference)
This method has only an effect when you add you dock_item with
GDL_DOCK_ITEM_BEH_NEVER_FLOATING.
- public class void set_has_grip (bool has_grip)
Define in the corresponding kind of dock item has a grip.
- public virtual void set_orientation (Orientation orientation)
This function sets the layout of the dock item.
- public void set_tablabel (Widget tablabel)
Replaces the current tab label widget with another widget.
- public void show_grip ()
This function shows the dock item's grip widget.
- public void show_item ()
This function shows the dock item.
- public void unbind ()
Unbinds this dock item from it's dock master.
- public void unset_behavior_flags (DockItemBehavior behavior)
This function sets the behavior of the dock item.
Signals:
- public signal void deselected ()
Signals that this dock has been deselected in a switcher.
- public virtual signal void dock_drag_begin ()
Signals that the dock item has begun to be dragged.
- public virtual signal void dock_drag_end (bool cancelled)
Signals that the dock item dragging has ended.
- public virtual signal void dock_drag_motion (Device device, int x, int y)
Signals that a dock item dragging motion event has occured.
- public virtual signal void move_focus_child (DirectionType direction)
The move_focus_child signal is emitted
when a change of focus is requested for the child widget of a dock item.
- public signal void selected ()
Signals that this dock has been selected from a switcher.
Inherited Members:
All known members inherited from class Gdl.DockObject
All known members inherited from class Gtk.Container
- @foreach
- add
- add_with_properties
- border_width
- check_resize
- child
- child_get
- child_get_property
- child_get_valist
- child_notify
- child_notify_by_pspec
- child_set
- child_set_property
- child_set_valist
- child_type
- class_find_child_property
- class_list_child_properties
- composite_name
- find_child_property
- forall
- forall_internal
- get_border_width
- get_child_property
- get_children
- get_focus_chain
- get_focus_child
- get_focus_hadjustment
- get_focus_vadjustment
- get_path_for_child
- get_resize_mode
- handle_border_width
- install_child_properties
- install_child_property
- list_child_properties
- propagate_draw
- remove
- resize_children
- resize_mode
- set_border_width
- set_child_property
- set_focus_chain
- set_focus_child
- set_focus_hadjustment
- set_focus_vadjustment
- set_reallocate_redraws
- set_resize_mode
- unset_focus_chain
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Buildable
- add_child
- construct_child
- custom_finished
- custom_tag_end
- custom_tag_start
- get_internal_child
- get_name
- parser_finished
- set_buildable_property
- set_name