add_ui_from_string
Description:
[ Version ( since = "2.4" ) ]
public uint add_ui_from_string (string buffer, ssize_t length) throws Error
public uint add_ui_from_string (string buffer, ssize_t length) throws Error
Parses a string containing a UI definition and merges it with the current contents of this.
An enclosing `<ui>` element is added if it is missing.
Parameters:
this |
a UIManager object |
buffer |
the string to parse |
length |
the length of |
Returns:
The merge id for the merged UI. The merge id can be used to unmerge the UI with remove_ui. If an error occurred, the return value is 0. |