Sha256: 8e6917159914cc33324bf686c32031cf6e4f38964ead3f1b29ad4655b4dd03b7

Contents?: true

Size: 1.93 KB

Versions: 51

Compression:

Stored size: 1.93 KB

Contents

## Vedeu API

Vedeu provides a simple DSL for the creation of terminal/console based
applications.

Below is a list of all the API methods. These can be accessed in your
application by including Vedeu in your class or module or by calling them directly.


### API 'include' example

Doing it this way will mean you can use any API method without the `Vedeu.` prefix.

```ruby
class SomeClassInYourApplication
  include Vedeu

  # ...
```


### API direct example

Doing it this way means you need to use the `Vedeu.` prefix.

```ruby
class OtherClassInYourApplication
  # ...

  def some_method
    Vedeu.some_api_method
  end

  # ...
```

... TODO ...


### API DSL methods

Note: Nesting indicates where an API method is allowed/supposed to be used.

#### Events

- bind
- trigger
- unbind


#### Input

- keypress
- keymap
  - key
  - name
  - interface


#### Interfaces

- interface
  - background
  - border
  - cursor
  - colour
  - delay
  - focus!
  - foreground
  - geometry
    - centred (or centred!)
    - height
    - width
    - x
    - y
  - group
  - keymap
    - key
    - name
    - interface
  - line
  - name
  - style
  - use


#### Views

- renders
  - view
    - colour
    - cursor
    - geometry
      - height
      - width
      - x
      - y
    - line
      - background
      - colour
      - foreground
      - stream
        - align
        - background
        - colour
        - foreground
        - style
        - text
        - width
      - streams
        - stream
      - text
      - style
    - lines
      - line
    - name
    - style
  - use
- views
  - ... as #renders


#### Menus

- menu
  - items
  - name


#### Miscellany

- configure
- focus
- focus_by_name
- focussed?
- focus_next
- focus_previous

- height
  Usage: Vedeu.height
  Returns the height (in lines) for the current terminal.

- log
- resize
  Usage: Vedeu.resize


- width
  Usage: Vedeu.width
  Returns the width (in characters) for the current terminal.

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
vedeu-0.4.44 docs/api.md
vedeu-0.4.43 docs/api.md
vedeu-0.4.42 docs/api.md
vedeu-0.4.41 docs/api.md
vedeu-0.4.40 docs/api.md
vedeu-0.4.39 docs/api.md
vedeu-0.4.38 docs/api.md
vedeu-0.4.37 docs/api.md
vedeu-0.4.36 docs/api.md
vedeu-0.4.35 docs/api.md
vedeu-0.4.34 docs/api.md
vedeu-0.4.33 docs/api.md
vedeu-0.4.32 docs/api.md
vedeu-0.4.31 docs/api.md
vedeu-0.4.30 docs/api.md
vedeu-0.4.29 docs/api.md
vedeu-0.4.28 docs/api.md
vedeu-0.4.27 docs/api.md
vedeu-0.4.26 docs/api.md
vedeu-0.4.25 docs/api.md