Difference between revisions of "User:Jacek Antonelli/UI Classes"
Jump to navigation
Jump to search
(Fleshed out some more) |
(Added panel attributes) |
||
(One intermediate revision by the same user not shown) | |||
Line 26: | Line 26: | ||
|} | |} | ||
===LLUICtrl=== | ===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 14: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 |