Class: Wads::ContentFooterLayout
- Inherits:
-
SectionLayout
- Object
- WadsLayout
- SectionLayout
- Wads::ContentFooterLayout
- Defined in:
- lib/wads/widgets.rb
Overview
The layout sections are as follows:
+-------------------------------------------------+
+ +
+ SECTION_CENTER +
+ +
+-------------------------------------------------+
+ SECTION_SOUTH +
+-------------------------------------------------+
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 = {}) ⇒ ContentFooterLayout
constructor
A new instance of ContentFooterLayout.
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 = {}) ⇒ ContentFooterLayout
Returns a new instance of ContentFooterLayout.
861 862 863 864 865 866 867 868 869 870 871 872 873 874 |
# File 'lib/wads/widgets.rb', line 861 def initialize(x, y, width, height, , args = {}) super # Divide the height into 100, 100, and the middle gets everything else # Right now we are using 100 pixels rather than a percentage for the borders bottom_section_height = 100 if args[ARG_DESIRED_HEIGHT] bottom_section_height = args[ARG_DESIRED_HEIGHT] end bottom_section_y_start = y + height - bottom_section_height middle_section_height = height - bottom_section_height @container_map[SECTION_CENTER] = GuiContainer.new(x, y, width, middle_section_height, FILL_VERTICAL_STACK) @container_map[SECTION_SOUTH] = GuiContainer.new(x, bottom_section_y_start, width, bottom_section_height) end |