PositionManager
Object Hierarchy:
Description:
public class PositionManager : Object
Handles computing any size/position information for the dock.
Content:
Properties:
- public DockController controller { construct set; }
- public
int
win_x { protected set; get; }
Cached x position of the dock window.
- public
int
win_y { protected set; get; }
Cached y position of the dock window.
- public
int
LineWidth { get; }
- public
int
IconSize { get; }
- public
int
IndicatorSize { get; }
Theme-based indicator size, scaled by icon size.
- public
int
IconShadowSize { get; }
Theme-based icon-shadow size, scaled by icon size.
- public
int
GlowSize { get; }
Theme-based urgent glow size, scaled by icon size.
- public
int
HorizPadding { get; }
Theme-based horizontal padding, scaled by icon size.
- public
int
TopPadding { get; }
Theme-based top padding, scaled by icon size.
- public
int
BottomPadding { get; }
Theme-based bottom padding, scaled by icon size.
- public
int
ItemPadding { get; }
Theme-based item padding, scaled by icon size.
- public
int
UrgentBounceHeight { get; }
- public
int
VisibleDockHeight { get; }
The currently visible height of the dock.
- public
int
DockHeight { get; }
The static height of the dock.
- public
int
DockBackgroundHeight { get; }
The height of the dock's background image.
- public
int
VisibleDockWidth { get; }
The currently visible width of the dock.
- public
int
DockWidth { get; }
The static width of the dock.
- public
int
DockBackgroundWidth { get; }
The width of the dock's background image.
- public
int
MaxItemCount { get; }
The maximum item count which fit the dock in its maximum size with the
current theme and icon-size.
Creation methods:
Methods:
- public void initialize ()
Initializes the position manager.
- public void reset_caches (DockTheme theme)
Resets all internal caches.
- public
Rectangle
get_cursor_region ()
Returns the cursor region for the dock. This is the region that the
cursor can interact with the dock.
- public
Rectangle
get_static_dock_region ()
Returns the static dock region for the dock. This is the region that
the dock occupies when not hidden.
- public void update_regions ()
Call when any cached region needs updating.
- public
Rectangle
item_draw_region (Rectangle
hover_rect)
The region for drawing a dock item.
- public
Rectangle
item_background_region (Rectangle
rect)
The intersecting region of a dock item's hover region and the
background.
- public
Rectangle
item_hover_region (DockItem item)
The cursor region for interacting with a dock item.
- public void get_menu_position (DockItem hovered,
Requisition
requisition, out int
x, out owned int
y)
Get's the x and y position to display a menu for a dock item.
- public void get_hover_position (DockItem hovered, out owned
int
x, out owned int
y)
Get's the x and y position to display a hover window for a dock item.
- public void get_urgent_glow_position (DockItem item, out
int
x, out int
y)
Get's the x and y position to display the urgent-glow for a dock item.
- public void update_dock_position ()
Caches the x and y position of the dock window.
- public void get_dock_draw_position (out
int
x, out int
y)
Get's the x and y position to display the main dock buffer.
- public
Rectangle
get_background_region ()
Get's the region for background of the dock.
- public
Rectangle
get_icon_geometry (ApplicationDockItem item, bool
for_hidden)
Get the item's icon geometry for the dock.
- public void get_struts (ref
ulong
[] struts)
Computes the struts for the dock.
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