Class: UI::Navigation

Inherits:
Object show all
Defined in:
flow/ui/navigation.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Object) initialize(root_screen)

Parameters:

  • root_screen (Screen)

    The initial screen



# File 'flow/ui/navigation.rb', line 4

Instance Attribute Details

- (Screen) root_screen

Returns the current value of root_screen

Returns:

  • (Screen)

    the current value of root_screen



3
4
5
# File 'flow/ui/navigation.rb', line 3

def root_screen
  @root_screen
end

Instance Method Details

- (Object) bar_color=(color)

Sets the color of the navigation bar

Parameters:



# File 'flow/ui/navigation.rb', line 24

- (Object) bar_hidden?

Returns wether the navigation bar is hidden



# File 'flow/ui/navigation.rb', line 17

- (Object) hide_bar

Hides the navigation bar



# File 'flow/ui/navigation.rb', line 14

- (Object) pop(animated = true)

Pushes a screen from the navigation stack, optionally animating the transition

Parameters:

  • animated (Boolean) (defaults to: true)


# File 'flow/ui/navigation.rb', line 38

- (Object) push(screen, animated = true)

Pushes a screen onto the navigation stack, optionally animating the transition

Parameters:

  • screen (Screen)
  • animated (Boolean) (defaults to: true)


# File 'flow/ui/navigation.rb', line 28

- (Screen) screen

Returns the current screen being shown

Returns:



# File 'flow/ui/navigation.rb', line 7

- (Object) show_bar

Shows the navigation bar



# File 'flow/ui/navigation.rb', line 11

- (Object) title=(title)

Sets the title shown in the navigation bar

Parameters:

  • title (String)


# File 'flow/ui/navigation.rb', line 20