Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

_VTScreenView Struct Reference

VTScreenView interface. More...

#include <screen.h>


Data Fields

void * object
 reference to platform dependent VTScreenView object

void(* draw_text )(struct _VTScreenView *view, int col, int row, char *mbstring, int length, int width)
 draw text in screen

void(* update_cursor_position )(struct _VTScreenView *view, int col, int row)
 set cursor position

void(* set_rendition )(struct _VTScreenView *view, int bold, int blink, int inverse, int underline, int foreground, int background, char charset)
 set graphic rendition of text

void(* clear_rect )(struct _VTScreenView *view, int s_col, int s_row, int e_col, int e_row)
 clear specified rectangular

void(* swap_video )(struct _VTScreenView *view)
 swap foreground and background color permanently

void(* ring )(struct _VTScreenView *view)
 ring the bell

void(* resize_request )(struct _VTScreenView *view, int cols, int rows)
 request new size of the screen

void(* notify_osc )(struct _VTScreenView *view, int type, char *params, int n_params)
 notify OSC(operating system command)

void(* update_scrollbar )(struct _VTScreenView *view, int max, int top, int shown)
 notify scrollbar event

void(* scroll_view )(struct _VTScreenView *view, int dest_row, int src_row, int num_line)
 notify scrollbar event


Detailed Description

VTScreenView interface.


View of VTScreen. User must create instance that implements these methods. To short, this is a set of callback functions which are called by VTCore


Field Documentation

void(* _VTScreenView::clear_rect)(struct _VTScreenView *view,int s_col, int s_row, int e_col, int e_row)
 

clear specified rectangular

Parameters:
view reference to VTScreenView object
s_col top left column
s_row top left row
e_col bottom right column
e_row bottom right row

void(* _VTScreenView::draw_text)(struct _VTScreenView *view,int col, int row, char *mbstring, int length,int width)
 

draw text in screen

Parameters:
view reference to VTScreenView object
col start column to draw text
row start row to draw text
mbstring reference multibyte string
length length of multibyte string
width column width of multibyte string

void(* _VTScreenView::notify_osc)(struct _VTScreenView *view, int type, char *params, int n_params)
 

notify OSC(operating system command)

Parameters:
view reference to VTScreenView object
type type of OSC
params parameter string
n_params length of parameter string
type is usually(on xterm) decoded as
0 - change icon & window title
1 - change icon title
2 - change window titile
46 - change log file
50 - change font

void(* _VTScreenView::resize_request)(struct _VTScreenView *view, int cols, int rows)
 

request new size of the screen

Parameters:
view reference to VTScreenView object
cols number of request columns
rows number of request rows
cols number of actual new columns
rows number of actual new rows
ScreenView must return actual rows and columns for model know if request had been accepted or not.

void(* _VTScreenView::ring)(struct _VTScreenView *view)
 

ring the bell

Parameters:
view reference to VTScreenView object

void(* _VTScreenView::scroll_view)(struct _VTScreenView *view, int dest_row, int src_row, int num_line)
 

notify scrollbar event

Parameters:
view reference to VTScreenView object
dest_row destination row position
src_row source row position
num_line number of line to bitblit

void(* _VTScreenView::set_rendition)(struct _VTScreenView *view, int bold, int blink, int inverse, int underline, int foreground, int background, char charset)
 

set graphic rendition of text

Parameters:
view reference to VTScreenView object
bold bold text
inverse reverse text
underline underlined text
foreground foreground color number(1 - 9) may change
background background color number(1 - 9) may change
charset graphic character sets
A - UK charset
B - ASCII charset
0 - Special Graphics
1 - Alternate Rom character set
2 - Alternate Rom Special Graphics

void(* _VTScreenView::swap_video)(struct _VTScreenView *view)
 

swap foreground and background color permanently

Parameters:
view reference to VTScreenView object.
After calling this, whole background color will be swaped.

void(* _VTScreenView::update_cursor_position)(struct _VTScreenView *view,int col, int row)
 

set cursor position

Parameters:
view reference to VTScreenView object
col start column to draw text
row start row to draw text

void(* _VTScreenView::update_scrollbar)(struct _VTScreenView *view, int max, int top, int shown)
 

notify scrollbar event

Parameters:
view reference to VTScreenView object
max max length of scrollbar
top point of scrollbar
shown length of scrollbar thumb


The documentation for this struct was generated from the following file:
Generated on Sun Dec 29 16:55:32 2002 by doxygen1.3-rc2