ScrollView Class Reference

#include <scrollview.h>

List of all members.

Public Types

enum  Color {
  NONE, BLACK, WHITE, RED,
  YELLOW, GREEN, CYAN, BLUE,
  MAGENTA, AQUAMARINE, DARK_SLATE_BLUE, LIGHT_BLUE,
  MEDIUM_BLUE, MIDNIGHT_BLUE, NAVY_BLUE, SKY_BLUE,
  SLATE_BLUE, STEEL_BLUE, CORAL, BROWN,
  SANDY_BROWN, GOLD, GOLDENROD, DARK_GREEN,
  DARK_OLIVE_GREEN, FOREST_GREEN, LIME_GREEN, PALE_GREEN,
  YELLOW_GREEN, LIGHT_GREY, DARK_SLATE_GREY, DIM_GREY,
  GREY, KHAKI, MAROON, ORANGE,
  ORCHID, PINK, PLUM, INDIAN_RED,
  ORANGE_RED, VIOLET_RED, SALMON, TAN,
  TURQUOISE, DARK_TURQUOISE, VIOLET, WHEAT,
  GREEN_YELLOW
}

Public Member Functions

 ScrollView (const char *name, int x_pos, int y_pos, int x_size, int y_size, int x_canvas_size, int y_canvas_size)
 Calls Initialize with default argument for server_name_ & y_axis_reversed.
 ScrollView (const char *name, int x_pos, int y_pos, int x_size, int y_size, int x_canvas_size, int y_canvas_size, bool y_axis_reversed)
 Calls Initialize with default argument for server_name_.
 ScrollView (const char *name, int x_pos, int y_pos, int x_size, int y_size, int x_canvas_size, int y_canvas_size, bool y_axis_reversed, const char *server_name)
 Calls Initialize with all arguments given.
 ~ScrollView ()
void AddEventHandler (SVEventHandler *listener)
 Add an Event Listener to this ScrollView Window.
SVEventAwaitEvent (SVEventType type)
SVEventAwaitEventAnyWindow ()
const char * GetName ()
int GetId ()
void Image (struct Pix *image, int x_pos, int y_pos)
void UpdateWindow ()
void Clear ()
void Pen (Color color)
void Pen (int red, int green, int blue)
void Pen (int red, int green, int blue, int alpha)
void Brush (Color color)
void Brush (int red, int green, int blue)
void Brush (int red, int green, int blue, int alpha)
void TextAttributes (const char *font, int pixel_size, bool bold, bool italic, bool underlined)
void Line (int x1, int y1, int x2, int y2)
void Stroke (float width)
void Rectangle (int x1, int y1, int x2, int y2)
void Ellipse (int x, int y, int width, int height)
void Text (int x, int y, const char *mystring)
void Image (const char *image, int x_pos, int y_pos)
void SetCursor (int x, int y)
void DrawTo (int x, int y)
void SetVisible (bool visible)
void AlwaysOnTop (bool b)
int ShowYesNoDialog (const char *msg)
char * ShowInputDialog (const char *msg)
void AddMessageBox ()
void AddMessage (const char *format,...)
void ZoomToRectangle (int x1, int y1, int x2, int y2)
void SendMsg (const char *msg,...)
 Send a message to the server, attaching the window id.
void MenuItem (const char *parent, const char *name)
void MenuItem (const char *parent, const char *name, int cmdEvent)
void MenuItem (const char *parent, const char *name, int cmdEvent, bool flagged)
void PopupItem (const char *parent, const char *name)
void PopupItem (const char *parent, const char *name, int cmdEvent, const char *value, const char *desc)
int TranslateYCoordinate (int y)

Static Public Member Functions

static void Update ()
static void Exit ()
static void SendRawMessage (const char *msg)

Member Enumeration Documentation

Enumerator:
NONE 
BLACK 
WHITE 
RED 
YELLOW 
GREEN 
CYAN 
BLUE 
MAGENTA 
AQUAMARINE 
DARK_SLATE_BLUE 
LIGHT_BLUE 
MEDIUM_BLUE 
MIDNIGHT_BLUE 
NAVY_BLUE 
SKY_BLUE 
SLATE_BLUE 
STEEL_BLUE 
CORAL 
BROWN 
SANDY_BROWN 
GOLD 
GOLDENROD 
DARK_GREEN 
DARK_OLIVE_GREEN 
FOREST_GREEN 
LIME_GREEN 
PALE_GREEN 
YELLOW_GREEN 
LIGHT_GREY 
DARK_SLATE_GREY 
DIM_GREY 
GREY 
KHAKI 
MAROON 
ORANGE 
ORCHID 
PINK 
PLUM 
INDIAN_RED 
ORANGE_RED 
VIOLET_RED 
SALMON 
TAN 
TURQUOISE 
DARK_TURQUOISE 
VIOLET 
WHEAT 
GREEN_YELLOW 

Constructor & Destructor Documentation

ScrollView::ScrollView ( const char *  name,
int  x_pos,
int  y_pos,
int  x_size,
int  y_size,
int  x_canvas_size,
int  y_canvas_size 
)

Calls Initialize with default argument for server_name_ & y_axis_reversed.

ScrollView::ScrollView ( const char *  name,
int  x_pos,
int  y_pos,
int  x_size,
int  y_size,
int  x_canvas_size,
int  y_canvas_size,
bool  y_axis_reversed 
)

Calls Initialize with default argument for server_name_.

ScrollView::ScrollView ( const char *  name,
int  x_pos,
int  y_pos,
int  x_size,
int  y_size,
int  x_canvas_size,
int  y_canvas_size,
bool  y_axis_reversed,
const char *  server_name 
)

Calls Initialize with all arguments given.

ScrollView::~ScrollView (  ) 

Member Function Documentation

void ScrollView::AddEventHandler ( SVEventHandler listener  ) 

Add an Event Listener to this ScrollView Window.

void ScrollView::AddMessage ( const char *  format,
  ... 
)
void ScrollView::AddMessageBox (  ) 
void ScrollView::AlwaysOnTop ( bool  b  ) 
SVEvent * ScrollView::AwaitEvent ( SVEventType  type  ) 

Block until an event of the given type is received. Note: The calling function is responsible for deleting the returned SVEvent afterwards!

SVEvent * ScrollView::AwaitEventAnyWindow (  ) 
void ScrollView::Brush ( int  red,
int  green,
int  blue,
int  alpha 
)
void ScrollView::Brush ( int  red,
int  green,
int  blue 
)
void ScrollView::Brush ( Color  color  ) 
void ScrollView::Clear (  ) 
void ScrollView::DrawTo ( int  x,
int  y 
)
void ScrollView::Ellipse ( int  x,
int  y,
int  width,
int  height 
)
void ScrollView::Exit (  )  [static]
int ScrollView::GetId (  )  [inline]
const char* ScrollView::GetName (  )  [inline]
void ScrollView::Image ( const char *  image,
int  x_pos,
int  y_pos 
)
void ScrollView::Image ( struct Pix *  image,
int  x_pos,
int  y_pos 
)
void ScrollView::Line ( int  x1,
int  y1,
int  x2,
int  y2 
)
void ScrollView::MenuItem ( const char *  parent,
const char *  name,
int  cmdEvent,
bool  flagged 
)
void ScrollView::MenuItem ( const char *  parent,
const char *  name,
int  cmdEvent 
)
void ScrollView::MenuItem ( const char *  parent,
const char *  name 
)
void ScrollView::Pen ( int  red,
int  green,
int  blue,
int  alpha 
)
void ScrollView::Pen ( int  red,
int  green,
int  blue 
)
void ScrollView::Pen ( Color  color  ) 
void ScrollView::PopupItem ( const char *  parent,
const char *  name,
int  cmdEvent,
const char *  value,
const char *  desc 
)
void ScrollView::PopupItem ( const char *  parent,
const char *  name 
)
void ScrollView::Rectangle ( int  x1,
int  y1,
int  x2,
int  y2 
)
void ScrollView::SendMsg ( const char *  msg,
  ... 
)

Send a message to the server, attaching the window id.

void ScrollView::SendRawMessage ( const char *  msg  )  [static]

Send a message to the server without a window id. Used for global events like exit().

void ScrollView::SetCursor ( int  x,
int  y 
)
void ScrollView::SetVisible ( bool  visible  ) 
char * ScrollView::ShowInputDialog ( const char *  msg  ) 
int ScrollView::ShowYesNoDialog ( const char *  msg  ) 
void ScrollView::Stroke ( float  width  ) 
void ScrollView::Text ( int  x,
int  y,
const char *  mystring 
)
void ScrollView::TextAttributes ( const char *  font,
int  pixel_size,
bool  bold,
bool  italic,
bool  underlined 
)
int ScrollView::TranslateYCoordinate ( int  y  ) 
void ScrollView::Update (  )  [static]
void ScrollView::UpdateWindow (  ) 
void ScrollView::ZoomToRectangle ( int  x1,
int  y1,
int  x2,
int  y2 
)

The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:25 2012 for Tesseract by  doxygen 1.6.3