User:Jacek Antonelli/UI Classes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Added panel attributes |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Partial list. Will clean this up and post it somewhere later. [[User:Jacek Antonelli|Jacek Antonelli]] | Partial list. Will clean this up and post it somewhere later. [[User:Jacek Antonelli|Jacek Antonelli]] 17 January 2008 | ||
==LLView== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=rect_control|type=String}} | |||
{{XUI Attribute Entry|name=left|desc=Location of left edge|type=Integer}} | |||
{{XUI Attribute Entry|name=left_delta|type=Integer}} | |||
{{XUI Attribute Entry|name=bottom|desc=Location of bottom edge|type=Integer}} | |||
{{XUI Attribute Entry|name=bottom_delta|type=Integer}} | |||
*** | {{XUI Attribute Entry|name=right|desc=Location of right edge|type=Integer}} | ||
**** | {{XUI Attribute Entry|name=top|desc=Location of top edge|type=Integer}} | ||
** | {{XUI Attribute Entry|name=width|desc=Element width|type=Integer}} | ||
{{XUI Attribute Entry|name=height|desc=Element height|type=Integer}} | |||
{{XUI Attribute Entry|name=follows|desc=Which edges resize along with the parent element|type=String|note=A pipe-separated list of one or more: all, bottom, left, right, top }} | |||
{{XUI Attribute Entry|name=control_name|type=String}} | |||
{{XUI Attribute Entry|name=tool_tip|type=String}} | |||
{{XUI Attribute Entry|name=enabled|type=Bool}} | |||
{{XUI Attribute Entry|name=visible|type=Bool}} | |||
{{XUI Attribute Entry|name=hidden|type=Bool}} | |||
{{XUI Attribute Entry|name=default_tab_group|type=Integer}} | |||
{{XUI Attribute Entry|name=font|desc=Text font family|type=String}} | |||
{{XUI Attribute Entry|name=halign|desc=Text horizontal alignment|type=String|note=One of: left, right, center}} | |||
{{XUI Attribute Entry|name=valign|desc=Text vertical alignment|type=String|note=One of: left, right, center}} | |||
{{XUI Attribute Entry|name=style|desc=Text style|type=String|note=One of: normal, bold, italic, underline}} | |||
{{XUI Attribute Entry|name=tab_stop|type=Bool}} | |||
|} | |||
===LLUICtrl=== | |||
====<button> (LLButton)==== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=name|desc=Used to refer to element from C++|type=String}} | |||
{{XUI Attribute Entry|name=label|desc=Label text|type=String}} | |||
{{XUI Attribute Entry|name=label_selected|desc=Label text while selected|type=String}} | |||
{{XUI Attribute Entry|name=image_unselected|type=String|note=Can be name of file (e.g. foo.tga) or control}} | |||
{{XUI Attribute Entry|name=image_selected|type=String|note=ibid.}} | |||
{{XUI Attribute Entry|name=image_hover_selected|type=String|note=ibid.}} | |||
{{XUI Attribute Entry|name=image_disabled_selected|type=String|note=ibid.}} | |||
{{XUI Attribute Entry|name=image_disabled|type=String|note=ibid.}} | |||
{{XUI Attribute Entry|name=image_overlay|type=String|note=ibid.}} | |||
{{XUI Attribute Entry|name=image_overlay_alignment|desc=|type=String|note=One of: left, right, center (?)}} | |||
{{XUI Attribute Entry|name=border_width|type=Integer}} | |||
{{XUI Attribute Entry|name=border_height|type=Integer}} | |||
{{XUI Attribute Entry|name=halign|desc=Label text horiz. alignment|type=String|note=One of: left, right, center}} | |||
{{XUI Attribute Entry|name=scale_image|desc=Stretch image to fit size|type=Bool}} | |||
{{XUI Attribute Entry|name=help_url|type=String}} | |||
|} | |||
====<check_box> (LLCheckBoxCtrl)==== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=name|desc=Used to refer to element from C++|type=String}} | |||
{{XUI Attribute Entry|name=label|desc=Label text|type=String}} | |||
{{XUI Attribute Entry|name=radio_style|desc=Use radio-style (round) buttons|type=Bool}} | |||
{{XUI Attribute Entry|name=initial_value|desc=Checked or unchecked initially|type=Bool}} | |||
{{XUI Attribute Entry|name=text_enabled_color|type=Color}} | |||
{{XUI Attribute Entry|name=text_disabled_color|type=Color}} | |||
|} | |||
====<combo_box> (LLComboBox)==== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=name|desc=Used to refer to element from C++|type=String}} | |||
{{XUI Attribute Entry|name=label|desc=Label text|type=String}} | |||
{{XUI Attribute Entry|name=allow_text_entry|desc=Allow typing in new values|type=Bool}} | |||
{{XUI Attribute Entry|name=max_chars|desc=Maximum characters allowed|type=Integer}} | |||
|} | |||
=====<combo_item>===== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=value|desc=Value of the item|type=String}} | |||
{{XUI Attribute Entry|name=enabled|desc=Item can be selected|type=Bool}} | |||
|} | |||
====<line_editor> (LLLineEditor)==== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=name|desc=Used to refer to element from C++|type=String}} | |||
{{XUI Attribute Entry|name=max_length|desc=Maximum characters allowed|type=Integer}} | |||
{{XUI Attribute Entry|name=bevel_style|type=String|note=One of: none, in, out, bright}} | |||
{{XUI Attribute Entry|name=border_style|type=String|note=One of: line, texture}} | |||
{{XUI Attribute Entry|name=border_thickness|type=Integer}} | |||
{{XUI Attribute Entry|name=cursor_color|type=Color}} | |||
{{XUI Attribute Entry|name=text_color|type=Color}} | |||
{{XUI Attribute Entry|name=text_readonly_color|type=Color}} | |||
{{XUI Attribute Entry|name=text_tentative_color|type=Color}} | |||
{{XUI Attribute Entry|name=bg_readonly_color|type=Color}} | |||
{{XUI Attribute Entry|name=bg_writeable_color|type=Color}} | |||
{{XUI Attribute Entry|name=bg_focus_color|type=Color}} | |||
{{XUI Attribute Entry|name=select_on_focus|type=Bool}} | |||
{{XUI Attribute Entry|name=select_on_focus_received|type=Bool}} | |||
{{XUI Attribute Entry|name=handle_edit_keys_directly|type=Bool}} | |||
{{XUI Attribute Entry|name=commit_on_focus_lost|type=Bool}} | |||
{{XUI Attribute Entry|name=prevalidate|desc=Prevalidate input as a certain type|type=String|note=One of: | |||
* ascii | |||
* float | |||
* int | |||
* positive_s32 | |||
* non_negative_s32 | |||
* alpha_num | |||
* alpha_num_space | |||
* printable_not_pipe | |||
* printable_no_space}} | |||
|} | |||
====<panel> (LLPanel)==== | |||
{|{{XUI Attribute Table}} | |||
{{XUI Attribute Entry|name=name|desc=Used to refer to element from C++|type=String}} | |||
{{XUI Attribute Entry|name=label|desc=Label text|type=String}} | |||
{{XUI Attribute Entry|name=background_visible|type=Bool}} | |||
{{XUI Attribute Entry|name=background_opaque|type=Bool}} | |||
{{XUI Attribute Entry|name=bg_opaque_color|type=Color}} | |||
{{XUI Attribute Entry|name=bg_alpha_color|type=Color}} | |||
{{XUI Attribute Entry|name=border|desc=Element has a border|type=Bool}} | |||
{{XUI Attribute Entry|name=border_style|type=String|note=One of: line, texture}} | |||
{{XUI Attribute Entry|name=border_thickness|type=Integer}} | |||
{{XUI Attribute Entry|name=filename|type=String}} | |||
{{XUI Attribute Entry|name=orientation|type=String|note=One of: vertical, horizontal}} | |||
{{XUI Attribute Entry|name=rect_control|type=String}} | |||
|} | |||
=====<floater> (LLFloater)===== | |||
=====<radio_group> LLRadioGroup===== | |||
====<text> (LLTextBox)==== | |||
====<text_editor> (LLTextEditor)==== | |||
Latest revision as of 15:17, 18 January 2008
Partial list. Will clean this up and post it somewhere later. Jacek Antonelli 17 January 2008
LLView
| Name | Description | Data Type | Note |
|---|---|---|---|
| rect_control | String | ||
| left | Location of left edge | Integer | |
| left_delta | Integer | ||
| bottom | Location of bottom edge | Integer | |
| bottom_delta | Integer | ||
| right | Location of right edge | Integer | |
| top | Location of top edge | Integer | |
| width | Element width | Integer | |
| height | Element height | Integer | |
| follows | Which edges resize along with the parent element | String | A pipe-separated list of one or more: all, bottom, left, right, top |
| control_name | String | ||
| tool_tip | String | ||
| enabled | Bool | ||
| visible | Bool | ||
| hidden | Bool | ||
| default_tab_group | Integer | ||
| font | Text font family | String | |
| halign | Text horizontal alignment | String | One of: left, right, center |
| valign | Text vertical alignment | String | One of: left, right, center |
| style | Text style | String | One of: normal, bold, italic, underline |
| tab_stop | Bool |
LLUICtrl
<button> (LLButton)
| Name | Description | Data Type | Note |
|---|---|---|---|
| name | Used to refer to element from C++ | String | |
| label | Label text | String | |
| label_selected | Label text while selected | String | |
| image_unselected | String | Can be name of file (e.g. foo.tga) or control | |
| image_selected | String | ibid. | |
| image_hover_selected | String | ibid. | |
| image_disabled_selected | String | ibid. | |
| image_disabled | String | ibid. | |
| image_overlay | String | ibid. | |
| image_overlay_alignment | String | One of: left, right, center (?) | |
| border_width | Integer | ||
| border_height | Integer | ||
| halign | Label text horiz. alignment | String | One of: left, right, center |
| scale_image | Stretch image to fit size | Bool | |
| help_url | String |
<check_box> (LLCheckBoxCtrl)
| Name | Description | Data Type | Note |
|---|---|---|---|
| name | Used to refer to element from C++ | String | |
| label | Label text | String | |
| radio_style | Use radio-style (round) buttons | Bool | |
| initial_value | Checked or unchecked initially | Bool | |
| text_enabled_color | Color | ||
| text_disabled_color | Color |
<combo_box> (LLComboBox)
| Name | Description | Data Type | Note |
|---|---|---|---|
| name | Used to refer to element from C++ | String | |
| label | Label text | String | |
| allow_text_entry | Allow typing in new values | Bool | |
| max_chars | Maximum characters allowed | Integer |
<combo_item>
| Name | Description | Data Type | Note |
|---|---|---|---|
| value | Value of the item | String | |
| enabled | Item can be selected | Bool |
<line_editor> (LLLineEditor)
| Name | Description | Data Type | Note |
|---|---|---|---|
| name | Used to refer to element from C++ | String | |
| max_length | Maximum characters allowed | Integer | |
| bevel_style | String | One of: none, in, out, bright | |
| border_style | String | One of: line, texture | |
| border_thickness | Integer | ||
| cursor_color | Color | ||
| text_color | Color | ||
| text_readonly_color | Color | ||
| text_tentative_color | Color | ||
| bg_readonly_color | Color | ||
| bg_writeable_color | Color | ||
| bg_focus_color | Color | ||
| select_on_focus | Bool | ||
| select_on_focus_received | Bool | ||
| handle_edit_keys_directly | Bool | ||
| commit_on_focus_lost | Bool | ||
| prevalidate | Prevalidate input as a certain type | String | One of:
|
<panel> (LLPanel)
| Name | Description | Data Type | Note |
|---|---|---|---|
| name | Used to refer to element from C++ | String | |
| label | Label text | String | |
| background_visible | Bool | ||
| background_opaque | Bool | ||
| bg_opaque_color | Color | ||
| bg_alpha_color | Color | ||
| border | Element has a border | Bool | |
| border_style | String | One of: line, texture | |
| border_thickness | Integer | ||
| filename | String | ||
| orientation | String | One of: vertical, horizontal | |
| rect_control | String |