Used to create new gui prototypes see elements and concepts [[
| Constructor.event (event_name) | Creates a new function to add functions to an event handler |
| Constructor.extend (new_prototype) | Extents a prototype with the base functions of all gui prototypes, no metatables |
| Constructor.setter (value_type, key[, second_key]) | Creates a setter function that checks the type when a value is set |
| Constructor.store (sync, callback) | Creates a new function which adds a store to a gui define |
| Prototype:clear_store ([category]) | Sets the value in this elements store to nil, category needed if categorize function used |
| Prototype:draw_to (element) | The main function for defines, when called will draw an instance of this define to the given element what is drawn is based on the data in draw_data which is set using other functions |
| Prototype:get_store (category) | Gets the value in this elements store, category needed if categorize function used |
| Prototype:raise_event (event_name, ...) | Raises a custom event for this define, any number of params can be given |
| Prototype:set_embeded_flow (boolean) | Sets the element to be drawn inside a nameless flow, can be given a name using a function |
| Prototype:set_store (category, value) | Sets the value in this elements store, category needed if categorize function used |
| Prototype:set_style (style[, function]) | Sets the style for the element define |
| Prototype:uid () | Gets the uid for the element define |
| Prototype.debug_name | Sets a debug alias for the define |
| Prototype.on_draw | Registers a callback to the on_draw event |
| Prototype.on_style_update | Registers a callback to the on_style_update event |
| Prototype.set_caption | Sets the caption for the element define |
| Prototype.set_post_authenticator | Sets an authenticator that disables the element if check fails |
| Prototype.set_pre_authenticator | Sets an authenticator that blocks the draw function if check fails |
| Prototype.set_tooltip | Sets the tooltip for the element define |
Creates a new function to add functions to an event handler
Parameters:Extents a prototype with the base functions of all gui prototypes, no metatables
Parameters:Creates a setter function that checks the type when a value is set
Parameters:Creates a new function which adds a store to a gui define
Parameters:Sets the value in this elements store to nil, category needed if categorize function used
Parameters:The main function for defines, when called will draw an instance of this define to the given element what is drawn is based on the data in draw_data which is set using other functions
Parameters:Gets the value in this elements store, category needed if categorize function used
Parameters:Raises a custom event for this define, any number of params can be given
Parameters:Sets the element to be drawn inside a nameless flow, can be given a name using a function
Parameters:Sets the value in this elements store, category needed if categorize function used
Parameters:Sets the style for the element define
Parameters:Gets the uid for the element define
Returns:Sets a debug alias for the define
Registers a callback to the on_draw event
Registers a callback to the on_style_update event
Sets the caption for the element define
Sets an authenticator that disables the element if check fails
Sets an authenticator that blocks the draw function if check fails
Sets the tooltip for the element define