Class: Shoes::Stack
- Includes:
- Background, Border, Spacing
- Defined in:
- lacci/lib/shoes/widgets/stack.rb
Constant Summary
Constants included from Log
Log::DEFAULT_COMPONENT, Log::DEFAULT_DEBUG_LOG_CONFIG, Log::DEFAULT_LOG_CONFIG
Instance Attribute Summary
Attributes inherited from Slot
Attributes inherited from Widget
Attributes inherited from Linkable
Instance Method Summary collapse
-
#initialize(width: nil, height: nil, margin: nil, padding: nil, scroll: false, margin_top: nil, margin_bottom: nil, margin_left: nil, margin_right: nil, **options, &block) ⇒ Stack
constructor
A new instance of Stack.
Methods included from Border
Methods included from Background
Methods inherited from Slot
#add_child, #app, #append, #clear, #contents, #remove_child
Methods inherited from Widget
#banner, #caption, #destroy, display_properties, display_property, display_property_name?, display_property_names, #display_property_values, #download, dsl_name, #hide, #inscription, #inspect, #method_missing, #respond_to_missing?, #set_parent, #show, #subtitle, #tagline, #title, #toggle, widget_class_by_name
Methods included from Colors
Methods included from Log
configure_logger, #log_init, logger
Methods inherited from Linkable
#bind_shoes_event, #send_self_event, #send_shoes_event, #unsub_shoes_event
Constructor Details
#initialize(width: nil, height: nil, margin: nil, padding: nil, scroll: false, margin_top: nil, margin_bottom: nil, margin_left: nil, margin_right: nil, **options, &block) ⇒ Stack
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lacci/lib/shoes/widgets/stack.rb', line 12 def initialize(width: nil, height: nil, margin: nil, padding: nil, scroll: false, margin_top: nil, margin_bottom: nil, margin_left: nil, margin_right: nil, **, &block) = super # Create the display-side widget *before* running the block, which will add child widgets with their display widgets Shoes::App.instance.with_slot(self, &block) if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Shoes::Widget