Class: Wads::EastWestLayout
- Inherits:
-
SectionLayout
- Object
- WadsLayout
- SectionLayout
- Wads::EastWestLayout
- Defined in:
- lib/wads/widgets.rb
Overview
The layout sections are as follows:
+-------------------------------------------------+
+ | +
+ SECTION_WEST | SECTION_EAST +
+ | +
+-------------------------------------------------+
Instance Attribute Summary
Attributes inherited from SectionLayout
Attributes inherited from WadsLayout
#args, #border_coords, #parent_widget
Instance Method Summary collapse
-
#initialize(x, y, width, height, parent_widget, args = {}) ⇒ EastWestLayout
constructor
A new instance of EastWestLayout.
Methods inherited from SectionLayout
#add_east_west_panel, #get_coordinates
Methods inherited from WadsLayout
#add_button, #add_document, #add_graph_display, #add_horizontal_panel, #add_image, #add_max_panel, #add_multi_select_table, #add_plot, #add_single_select_table, #add_table, #add_text, #add_text_input, #add_vertical_panel, #add_widget, #get_coordinates, #internal_add_panel
Constructor Details
#initialize(x, y, width, height, parent_widget, args = {}) ⇒ EastWestLayout
Returns a new instance of EastWestLayout.
886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/wads/widgets.rb', line 886 def initialize(x, y, width, height, , args = {}) super west_section_width = width / 2 if args[ARG_PANEL_WIDTH] west_section_width = args[ARG_PANEL_WIDTH] end east_section_width = width - west_section_width @container_map[SECTION_WEST] = GuiContainer.new(x, y, west_section_width, height, FILL_FULL_SIZE) @container_map[SECTION_EAST] = GuiContainer.new(x + west_section_width, y, east_section_width, height, FILL_FULL_SIZE) end |