Class: Gtk::Stack
- Inherits:
-
Object
- Object
- Gtk::Stack
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_named(child, name) ⇒ nil
Adds a child to stack.
-
#add_titled(child, name, title) ⇒ nil
Adds a child to stack.
-
#get_child_by_name(name) ⇒ Gtk::Widget
Finds the child of the Gtk::Stack with the name given as the argument.
-
#hhomogeneous ⇒ TrueClass
Gets whether stack is horizontally homogeneous.
-
#hhomogeneous=(hhomogeneous) ⇒ TrueClass
true if the stack allocates the same width for all children.
-
#hhomogeneous? ⇒ TrueClass
true if the stack allocates the same width for all children.
-
#homogeneous ⇒ TrueClass
Gets whether stack is homogeneous.
- #homogeneous=(homogeneous) ⇒ TrueClass
-
#homogeneous? ⇒ TrueClass
Homogeneous.
-
#interpolate_size ⇒ TrueClass
Returns wether the Gtk::Stack is set up to interpolate between the sizes of children on page switch.
- #interpolate_size=(interpolate_size) ⇒ TrueClass
-
#interpolate_size? ⇒ TrueClass
Interpolate-size.
-
#new ⇒ Gtk::Widget
Creates a new Gtk::Stack container.
-
#set_visible_child_full(name, transition) ⇒ nil
Makes the child with the given name visible.
-
#transition_duration ⇒ Integer
Transition-duration.
- #transition_duration=(transition_duration) ⇒ Integer
-
#transition_running ⇒ TrueClass
Returns whether the stack is currently in a transition from one page to another.
- #transition_running=(transition_running) ⇒ TrueClass
-
#transition_running? ⇒ TrueClass
Transition-running.
-
#transition_type ⇒ Gtk::StackTransitionType
Transition-type.
- #transition_type=(transition_type) ⇒ Gtk::StackTransitionType
-
#vhomogeneous ⇒ TrueClass
Gets whether stack is vertically homogeneous.
-
#vhomogeneous=(vhomogeneous) ⇒ TrueClass
true if the stack allocates the same height for all children.
-
#vhomogeneous? ⇒ TrueClass
true if the stack allocates the same height for all children.
-
#visible_child ⇒ Gtk::Widget
Visible-child.
- #visible_child=(visible_child) ⇒ Gtk::Widget
-
#visible_child_name ⇒ String
Visible-child-name.
- #visible_child_name=(visible_child_name) ⇒ String
Instance Method Details
#add_named(child, name) ⇒ nil
Adds a child to stack. The child is identified by the name.
#add_titled(child, name, title) ⇒ nil
Adds a child to stack. The child is identified by the name. The title will be used by Gtk::StackSwitcher to represent child in a tab bar, so it should be short.
#get_child_by_name(name) ⇒ Gtk::Widget
Finds the child of the Gtk::Stack with the name given as the argument. Returns nil if there is no child with this name.
#hhomogeneous ⇒ TrueClass
Gets whether stack is horizontally homogeneous. See gtk_stack_set_hhomogeneous().
#hhomogeneous=(hhomogeneous) ⇒ TrueClass
true if the stack allocates the same width for all children.
#hhomogeneous? ⇒ TrueClass
true if the stack allocates the same width for all children.
#homogeneous ⇒ TrueClass
Gets whether stack is homogeneous. See gtk_stack_set_homogeneous().
#homogeneous=(homogeneous) ⇒ TrueClass
#homogeneous? ⇒ TrueClass
Returns homogeneous.
#interpolate_size ⇒ TrueClass
Returns wether the Gtk::Stack is set up to interpolate between the sizes of children on page switch.
#interpolate_size=(interpolate_size) ⇒ TrueClass
#interpolate_size? ⇒ TrueClass
Returns interpolate-size.
#new ⇒ Gtk::Widget
Creates a new Gtk::Stack container.
#set_visible_child_full(name, transition) ⇒ nil
Makes the child with the given name visible.
Note that the child widget has to be visible itself (see gtk_widget_show()) in order to become the visible child of stack.
#transition_duration ⇒ Integer
Returns transition-duration.
#transition_duration=(transition_duration) ⇒ Integer
#transition_running ⇒ TrueClass
Returns whether the stack is currently in a transition from one page to another.
#transition_running=(transition_running) ⇒ TrueClass
#transition_running? ⇒ TrueClass
Returns transition-running.
#transition_type ⇒ Gtk::StackTransitionType
Returns transition-type.
#transition_type=(transition_type) ⇒ Gtk::StackTransitionType
#vhomogeneous ⇒ TrueClass
Gets whether stack is vertically homogeneous. See gtk_stack_set_vhomogeneous().
#vhomogeneous=(vhomogeneous) ⇒ TrueClass
true if the stack allocates the same height for all children.
#vhomogeneous? ⇒ TrueClass
true if the stack allocates the same height for all children.
#visible_child ⇒ Gtk::Widget
Returns visible-child.
#visible_child=(visible_child) ⇒ Gtk::Widget
#visible_child_name ⇒ String
Returns visible-child-name.