class Sirens::StackView
Public Class Methods
new(orientation)
click to toggle source
Initializing
Calls superclass method
# File lib/views/stack_view.rb, line 6 def initialize(orientation) @orientation = orientation super() end
Public Instance Methods
add_view(view, expand: true, fill: true, padding: 0)
click to toggle source
Adds a child_view.
# File lib/views/stack_view.rb, line 22 def add_view(view, expand: true, fill: true, padding: 0) main_handle.pack_start(view.main_handle, expand: expand, fill: fill, padding: padding) end
initialize_handles()
click to toggle source
# File lib/views/stack_view.rb, line 12 def initialize_handles() @main_handle = Gtk::Box.new(@orientation, 0) end
subscribe_to_ui_events()
click to toggle source
# File lib/views/stack_view.rb, line 16 def subscribe_to_ui_events() end