Workspace
A userdata which corresponds to the mounted version of
WorkspaceProps
A native component within hitokage
that displays workspace information.
This is in the particular context of running hitokage
with a window/tiling manager:
This userdata can be retrieved using:
Example
monitor = hitokage.monitor.get_primary()
---@type WorkspaceProps
workspace_props = { id = "workspace1", Workspace = { halign = "Start", item_height = 24, item_width = 24 } }
bar = monitor:attach({
children = {
Workspace = workspace_props,
},
})
workspace1 = bar:get_child_by_id("workspace1")
Attributes:
Methods:
attr
type
method
get_item_height
function get_item_height() -> integer
Get the item width
Returns:
method
get_item_width
function get_item_width() -> integer
Get the item width
Returns:
method
get_type
function get_type() -> 'Workspace'
Get the type of widget
Returns:
method
set_item_height
function set_item_height(height: integer) -> nil
Set the item width
Parameters:
Returns:
method
set_item_width
function set_item_width(width: integer) -> nil
Set the item width
Parameters:
Returns: