vegUI version 2.1.1 Scroll Bar |
vegui. scrollbar. class.jsSummary
VUI_SCOLLvegUI element type for VegUIScrollbar VegUIScrollbarextends VegUINode Inherits properties and functions from: VegUINode VegUINode Type<VUI_SCROLL> Child ElementsThese children are all accessable over this.[child_name]
Summary
Object Properties
Template Properties
disable_scroll
Similar to the VegUINode::disable_node method but makes sure all children will be disabled as well. Aliasdisable() Parameters
See also link
Links two VegUIElement as CHolder and Content. The Content element should be a child of the CHolder element Parameters
See alsoset_scroll
Sets the most common template properties for the scrollbar Aliasset() Parameters
See alsosync
Syncs the position and proportions of Btn3 to the Contenr overflow ratio of the CHolder and Content elements. Can also sync the position of the content element to the position of Btn3 Parameters
See alsotgl_scroll
Toggles auto scroll mode on or off. If the scrollbar is in auto scroll mode then the content will be scrolled until it is either toggled off again or the content’s BBox bumped Parameters
See also |
Returns the size of the active scroll area in the scrolbar.
this.asa = function()
Builds the scrollbar
this.build = this.build_scroll = function( toNode )
Similar to the VegUINode::disable_node method but makes sure all children will be disabled as well.
this.disable = this.disable_scroll = function( b )
Toggles the VUI_DISABLED flag on this element
this.disable = this.disable_node = function( b )
Move Btn3 to a new position and sync the content element’s position to it
this.drag = function( x, y )
Checks if scroll bar is an x axis or an y axis scroll bar
this.is_x = function()
Links two VegUIElement as CHolder and Content.
this.link = function( CHolder, Content )
Calculate content overflow ratio
this.overflow = function()
Scrolls content into the specified direction
this.scroll = function( dir, rep )
Sets the most common template properties for the scrollbar
this.set = this.set_scroll = function( dir, x, y, w, h )
Syncs the position and proportions of Btn3 to the Contenr overflow ratio of the CHolder and Content elements.
this.sync = function( b )
Toggles drag mode on or off.
this.tgl_drag = function( b )
Toggles auto scroll mode on or off.
this.tgl_scroll = function( b, dir )
Updates the BBox settings for the Content element that is linked to this scrollbar
this.update_content_boundary = function()
build a HTML node from the template properties of this element.
this.build = this.build_node = function( toNode, takeNode )
Template Function
this.set = this.set_node = function( nodeType, w, h, x, y, pos, z )