Class: Raggle::Interfaces::NcursesInterface::Window

Class | Raggle::Interfaces::NcursesInterface::Window
In: | raggle (CVS)
Parent: | Object

Window - basic window class

### Methods

clear clearrange close dimensions draw draw_text method_missing new reflow_string refresh select_win_item set_color

### Attributes

active | [RW] |
active_item | [RW] |
colors | [RW] |
items | [RW] |
key | [RW] |
offset | [RW] |
title | [RW] |
win | [RW] |

### Public Class methods

new(opts)

window constructor

### Public Instance methods

clear()

clear window contents

clearrange(start, fini)

Clear lines start to fini in the current window.

close(switchwin=false)

Close and delete an Ncurses window

dimensions()

get window width and height

draw(text, x = 1, y = 1, color = 'text', refresh_win = true, reflow_text = true, offset = 0)

draw text in window

draw_text(text, x, y, reflow, offset)
method_missing(id)

Debugging method

reflow_string(str)

reflow a string for this window

refresh(refresh_contents = false)

refresh window title and border (but not the contents)

select_win_item()

select currently highlighted window item

XXX: This really should be split between the window classes as

         Appropriate -- richlowe 2003-06-23

set_color(color_name = 'text')

set ncurses color

[Validate]