Class: Gtk::Stack

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#add_named(child, name) ⇒ nil

Adds a child to stack. The child is identified by the name.

Parameters:

  • child (Gtk::Widget)

    the widget to add

  • name (String)

    the name for child

Returns:

  • (nil)

#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.

Parameters:

  • child (Gtk::Widget)

    the widget to add

  • name (String)

    the name for child

  • title (String)

    a human-readable title for child

Returns:

  • (nil)

#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.

Parameters:

  • name (String)

    the name of the child to find

Returns:

  • (Gtk::Widget)

    the requested child of the Gtk::Stack

#hhomogeneousTrueClass

Gets whether stack is horizontally homogeneous. See gtk_stack_set_hhomogeneous().

Returns:

  • (TrueClass)

    whether stack is horizontally homogeneous.

#hhomogeneous=(hhomogeneous) ⇒ TrueClass

true if the stack allocates the same width for all children.

Parameters:

  • hhomogeneous (TrueClass)

Returns:

  • (TrueClass)

    hhomogeneous

  • (TrueClass)

    hhomogeneous

#hhomogeneous?TrueClass

true if the stack allocates the same width for all children.

Returns:

  • (TrueClass)

    hhomogeneous

#homogeneousTrueClass

Gets whether stack is homogeneous. See gtk_stack_set_homogeneous().

Returns:

  • (TrueClass)

    whether stack is homogeneous.

#homogeneous=(homogeneous) ⇒ TrueClass

Parameters:

  • homogeneous (TrueClass)

Returns:

  • (TrueClass)

    homogeneous

  • (TrueClass)

    homogeneous

#homogeneous?TrueClass

Returns homogeneous.

Returns:

  • (TrueClass)

    homogeneous

#interpolate_sizeTrueClass

Returns wether the Gtk::Stack is set up to interpolate between the sizes of children on page switch.

Returns:

  • (TrueClass)

    true if child sizes are interpolated

#interpolate_size=(interpolate_size) ⇒ TrueClass

Parameters:

  • interpolate_size (TrueClass)

Returns:

  • (TrueClass)

    interpolate-size

  • (TrueClass)

    interpolate-size

#interpolate_size?TrueClass

Returns interpolate-size.

Returns:

  • (TrueClass)

    interpolate-size

#newGtk::Widget

Creates a new Gtk::Stack container.

Returns:

#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.

Parameters:

  • name (String)

    the name of the child to make visible

  • transition (Gtk::StackTransitionType)

    the transition type to use

Returns:

  • (nil)

#transition_durationInteger

Returns transition-duration.

Returns:

  • (Integer)

    transition-duration

#transition_duration=(transition_duration) ⇒ Integer

Parameters:

  • transition_duration (Integer)

Returns:

  • (Integer)

    transition-duration

  • (Integer)

    transition-duration

#transition_runningTrueClass

Returns whether the stack is currently in a transition from one page to another.

Returns:

  • (TrueClass)

    true if the transition is currently running, false otherwise.

#transition_running=(transition_running) ⇒ TrueClass

Parameters:

  • transition_running (TrueClass)

Returns:

  • (TrueClass)

    transition-running

  • (TrueClass)

    transition-running

#transition_running?TrueClass

Returns transition-running.

Returns:

  • (TrueClass)

    transition-running

#transition_typeGtk::StackTransitionType

Returns transition-type.

Returns:

#transition_type=(transition_type) ⇒ Gtk::StackTransitionType

Parameters:

Returns:

#vhomogeneousTrueClass

Gets whether stack is vertically homogeneous. See gtk_stack_set_vhomogeneous().

Returns:

  • (TrueClass)

    whether stack is vertically homogeneous.

#vhomogeneous=(vhomogeneous) ⇒ TrueClass

true if the stack allocates the same height for all children.

Parameters:

  • vhomogeneous (TrueClass)

Returns:

  • (TrueClass)

    vhomogeneous

  • (TrueClass)

    vhomogeneous

#vhomogeneous?TrueClass

true if the stack allocates the same height for all children.

Returns:

  • (TrueClass)

    vhomogeneous

#visible_childGtk::Widget

Returns visible-child.

Returns:

#visible_child=(visible_child) ⇒ Gtk::Widget

Parameters:

Returns:

#visible_child_nameString

Returns visible-child-name.

Returns:

  • (String)

    visible-child-name

#visible_child_name=(visible_child_name) ⇒ String

Parameters:

  • visible_child_name (String)

Returns:

  • (String)

    visible-child-name

  • (String)

    visible-child-name