Sha256: fd7a8b1cceed444d45f09fff3430b1ea648efbb7067e125ecd957b89b3df55e4

Contents?: true

Size: 1.97 KB

Versions: 8

Compression:

Stored size: 1.97 KB

Contents

# @title Vedeu API
# The Vedeu API

Vedeu provides a simple DSL for the creation of terminal/console based
applications. Below is a list of all the API methods:

```ruby
class OtherClassInYourApplication
  # ...

  def some_method
    Vedeu.some_api_method
  end

  # ...
```

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

### Borders

- Vedeu.border

### Configuration

- Vedeu.configure
- Vedeu.configuration

### Events

- Vedeu.bind
- Vedeu.trigger
- Vedeu.unbind

### Geometry

- Vedeu.geometry

### Groups

- Vedeu.group

### Input

- Vedeu.keypress
- Vedeu.keymap
  - key
  - name
  - interface

### Interfaces

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

- Vedeu.renders
- Vedeu.render
  - 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
- Vedeu.views
  - ... as #renders

### Menus

- Vedeu.menu
  - items
  - name

### Renderers

- Vedeu.renderer
- Vedeu.renderers

### Repositories

These are collections which you can access:

- Vedeu.background_colours
- Vedeu.foreground_colours
- Vedeu.borders
- Vedeu.buffers
- Vedeu.cursors
- Vedeu.events
- Vedeu.geometries
- Vedeu.groups
- Vedeu.interfaces
- Vedeu.keymaps
- Vedeu.menus

### Miscellany

- Vedeu.cursor
- Vedeu.focus
- Vedeu.focus_by_name
- Vedeu.focussed?
- Vedeu.focus_next
- Vedeu.focus_previous
- Vedeu.height
- Vedeu.log
- Vedeu.log_stdout
- Vedeu.log_stderr
- Vedeu.resize
- Vedeu.timer
- Vedeu.width

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vedeu-0.5.1 docs/api.md
vedeu-0.5.0 docs/api.md
vedeu-0.4.65 docs/api.md
vedeu-0.4.64 docs/api.md
vedeu-0.4.63 docs/api.md
vedeu-0.4.62 docs/api.md
vedeu-0.4.61 docs/api.md
vedeu-0.4.60 docs/api.md