Module vLib

This class provides static members and methods for the vLib library

Functions

generate_uid () generate a unique string that you is used as viewbuilder id for widgets (avoids clashes in names between multiple instances of the same widget)
get_skin_color (name) retrieve values from the default skin/theme

Fields

uid_counter (int) when you instantiate a vLib component, it will register itself with a unique viewbuilder ID.
lazy_updates (bool) when true, complex widgets will schedule their updates, possibly saving a little CPU along the way
config (table) set once we access the XML configuration
imageroot (string) location of images
DEFAULT_BMP specify a bitmap which is *guaranteed* to exist (required when creating bitmap views before assigning the final value)
CONTROL_H (number), standard height for controls


Functions

generate_uid ()
generate a unique string that you is used as viewbuilder id for widgets (avoids clashes in names between multiple instances of the same widget)

Returns:

    string, e.g. "vlib12"
get_skin_color (name)
retrieve values from the default skin/theme

Parameters:

  • name

Fields

uid_counter
(int) when you instantiate a vLib component, it will register itself with a unique viewbuilder ID. This is the global incrementer
lazy_updates
(bool) when true, complex widgets will schedule their updates, possibly saving a little CPU along the way
config
(table) set once we access the XML configuration
imageroot
(string) location of images
DEFAULT_BMP
specify a bitmap which is *guaranteed* to exist (required when creating bitmap views before assigning the final value)
CONTROL_H
(number), standard height for controls
generated by LDoc 1.4.2