|
Simutrans-Squirrel-API OTRP v63_4
|

Public Attributes | |
| integer | id |
| string | role |
| bool | visible |
| bool | focusable |
| bool | focused |
| gui_bounds_x | bounds |
| gui_bounds_x | screen_bounds |
| string | text |
| array< gui_component_x > | children |
| integer | scroll_x |
| integer | scroll_y |
Snapshot of a GUI component returned by gui::get_window_components.
Definition at line 63 of file api_gui.cc.
| gui_bounds_x gui_component_x::bounds |
Bounds relative to the parent component.
Definition at line 88 of file api_gui.cc.
| array<gui_component_x> gui_component_x::children |
Child component snapshots.
Definition at line 100 of file api_gui.cc.
| bool gui_component_x::focusable |
True if the component can receive focus.
Definition at line 80 of file api_gui.cc.
| bool gui_component_x::focused |
True if the component currently has focus.
Definition at line 84 of file api_gui.cc.
| integer gui_component_x::id |
Component id, unique within one component snapshot.
Definition at line 68 of file api_gui.cc.
| string gui_component_x::role |
Component role, such as "button", "label", "textinput", "container", or "scrollpane".
Definition at line 72 of file api_gui.cc.
| gui_bounds_x gui_component_x::screen_bounds |
Bounds in screen pixels.
Definition at line 92 of file api_gui.cc.
| integer gui_component_x::scroll_x |
Horizontal scroll position. Only present on scrollpane components.
Definition at line 104 of file api_gui.cc.
| integer gui_component_x::scroll_y |
Vertical scroll position. Only present on scrollpane components.
Definition at line 108 of file api_gui.cc.
| string gui_component_x::text |
Text exposed by the component. Only present when the component has text.
Definition at line 96 of file api_gui.cc.
| bool gui_component_x::visible |
True if the component is visible.
Definition at line 76 of file api_gui.cc.