vegUI version 2.1.1 Taskbar |
vegui. taskbar. class.jsSummary
VUI_TASKBARvegUI element type for VegUITaskBar VegUITaskBarA task bar that holds one button for each window spawned. Clicking the button will give focus to the window Summary
Automatic adding of windows to taskbarIf you set the Taskbar property of the vegUIManager element to point to your taskbar then any windows will have task buttons added automatically when they are built: Manager.Taskbar = Manager.get_new(VUI_TASKBAR); Child ElementsAll of these child elements are accessable by this.[child_name] even though they may not be all direct children of this element
Template Properties
set_taskbar
Sets the most common template properties for the taskbar Aliasset() Parameters
See ParentExampleTaskBar.set(500,20,0,0,VUI_TB_HORIZONTAL,5); build_taskbar
builds the taskbar private function You should always use VegUIManager::build_element to build vegui elements Aliasbuild() Parameters
Returns
taskbutton_add
Adds a taskbutton for a window Parameters
Returns
See alsotaskbutton_remove, taskbutton_reorder ExamplemyWin = Manager.get_new(VUI_WIN); taskbutton_exists
Checks if a task button exists for a certain window Parameters
Returns
Example
taskbutton_remove
Removes the taskbutton for a window Parameters
See alsoExample
|
constructor
function VegUITaskBar( refName, Parent, Manager )
Sets the most common template properties for the taskbar
this.set_taskbar = this.set = function( w, h, x, y, type, space )
builds the taskbar
this.build_taskbar = this.build = function( toNode )
Adds a taskbutton for a window
this.taskbutton_add = function( Win )
Checks if a task button exists for a certain window
this.taskbutton_exists = function( Win )
Reorders taskbuttons, removing any that dont have a window any assigned to them any longer
this.taskbutton_reorder = function()
Removes the taskbutton for a window
this.taskbutton_remove = function( Win )
function VegUINode( refName, Parent, Manager )
Template Function
this.set = this.set_node = function( nodeType, w, h, x, y, pos, z )
builds a VegUIElement.
this.build_element = function( VegUIObj, toNode )