Sha256: cf72cd370e376acb63958797e335917c36d09ef29999baf281610721427ee363

Contents?: true

Size: 1.26 KB

Versions: 17

Compression:

Stored size: 1.26 KB

Contents

Align the interface/view horizontally or vertically within the
terminal.

An error will be raised if:

- When the vertical argument is not given.
- When the horizontal argument is not given.
- When the horizontal argument is given (and not :none) and the width
  argument is not given.
- When the vertical argument is given (and not :none) and the height
  argument is not given.

Aligning the view with the bottom of the terminal:

    # Vedeu.geometry :my_interface do
        align vertical: :bottom

        # ...
    # end

Aligning the view in the centre (horizontally) of the terminal:

    # Vedeu.geometry :my_interface do
        align horizontal: :centre

        # ...
    # end

Aligning the view with the left of the terminal:

    # Vedeu.geometry :my_interface do
        align horizontal: :left

        # ...
    # end

Aligning the view in the middle (vertically) of the terminal:

    # Vedeu.geometry :my_interface do
        align vertical: :middle

        # ...
    # end

Aligning the view with the right of the terminal:

    # Vedeu.geometry :my_interface do
        align horizontal: :right

        # ...
    # end

Aligning the view with the top of the terminal:

    # Vedeu.geometry :my_interface do
        align vertical: :top

        # ...
    # end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
vedeu-0.8.32 docs/dsl/by_method/geometry/align.md
vedeu-0.8.31 docs/dsl/by_method/geometry/align.md
vedeu-0.8.30 docs/dsl/by_method/geometry/align.md
vedeu-0.8.29 docs/dsl/by_method/geometry/align.md
vedeu-0.8.28 docs/dsl/by_method/geometry/align.md
vedeu-0.8.27 docs/dsl/by_method/geometry/align.md
vedeu-0.8.26 docs/dsl/by_method/geometry/align.md
vedeu-0.8.25 docs/dsl/by_method/geometry/align.md
vedeu-0.8.24 docs/dsl/by_method/geometry/align.md
vedeu-0.8.23 docs/dsl/by_method/geometry/align.md
vedeu-0.8.22 docs/dsl/by_method/geometry/align.md
vedeu-0.8.21 docs/dsl/by_method/geometry/align.md
vedeu-0.8.20 docs/dsl/by_method/geometry/align.md
vedeu-0.8.19 docs/dsl/by_method/geometry/align.md
vedeu-0.8.18 docs/dsl/by_method/geometry/align.md
vedeu-0.8.17 docs/dsl/by_method/geometry/align.md
vedeu-0.8.16 docs/dsl/by_method/geometry/align.md