tesseract
4.0.0-1-g2a2b
|
#include <scrollview.h>
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 () | |
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. More... | |
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_. More... | |
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. More... | |
void | AddEventHandler (SVEventHandler *listener) |
Add an Event Listener to this ScrollView Window. More... | |
SVEvent * | AwaitEvent (SVEventType type) |
SVEvent * | AwaitEventAnyWindow () |
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. More... | |
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) |
Definition at line 102 of file scrollview.h.
enum ScrollView::Color |
Definition at line 105 of file scrollview.h.
ScrollView::~ScrollView | ( | ) |
Definition at line 361 of file scrollview.cpp.
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.
Definition at line 264 of file scrollview.cpp.
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_.
Definition at line 256 of file scrollview.cpp.
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.
Definition at line 249 of file scrollview.cpp.
void ScrollView::AddEventHandler | ( | SVEventHandler * | listener | ) |
Add an Event Listener to this ScrollView Window.
Definition at line 416 of file scrollview.cpp.
void ScrollView::AddMessage | ( | const char * | format, |
... | |||
) |
Definition at line 563 of file scrollview.cpp.
void ScrollView::AddMessageBox | ( | ) |
Definition at line 580 of file scrollview.cpp.
void ScrollView::AlwaysOnTop | ( | bool | b | ) |
Definition at line 557 of file scrollview.cpp.
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!
Definition at line 445 of file scrollview.cpp.
SVEvent * ScrollView::AwaitEventAnyWindow | ( | ) |
Definition at line 466 of file scrollview.cpp.
void ScrollView::Brush | ( | Color | color | ) |
Definition at line 728 of file scrollview.cpp.
void ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 627 of file scrollview.cpp.
void ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 632 of file scrollview.cpp.
void ScrollView::Clear | ( | ) |
Definition at line 591 of file scrollview.cpp.
void ScrollView::DrawTo | ( | int | x, |
int | y | ||
) |
Definition at line 527 of file scrollview.cpp.
void ScrollView::Ellipse | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 611 of file scrollview.cpp.
|
static |
Definition at line 585 of file scrollview.cpp.
|
inline |
Definition at line 197 of file scrollview.h.
|
inline |
Definition at line 194 of file scrollview.h.
void ScrollView::Image | ( | struct Pix * | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 768 of file scrollview.cpp.
void ScrollView::Image | ( | const char * | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 659 of file scrollview.cpp.
void ScrollView::Line | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 534 of file scrollview.cpp.
void ScrollView::MenuItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 682 of file scrollview.cpp.
void ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent | ||
) |
Definition at line 676 of file scrollview.cpp.
void ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
bool | flagged | ||
) |
Definition at line 666 of file scrollview.cpp.
void ScrollView::Pen | ( | Color | color | ) |
Definition at line 722 of file scrollview.cpp.
void ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 617 of file scrollview.cpp.
void ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 622 of file scrollview.cpp.
void ScrollView::PopupItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 688 of file scrollview.cpp.
void ScrollView::PopupItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
const char * | value, | ||
const char * | desc | ||
) |
Definition at line 694 of file scrollview.cpp.
void ScrollView::Rectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 602 of file scrollview.cpp.
void ScrollView::SendMsg | ( | const char * | msg, |
... | |||
) |
Send a message to the server, attaching the window id.
Definition at line 393 of file scrollview.cpp.
|
static |
Send a message to the server without a window id. Used for global events like exit().
Definition at line 411 of file scrollview.cpp.
void ScrollView::SetCursor | ( | int | x, |
int | y | ||
) |
Definition at line 521 of file scrollview.cpp.
void ScrollView::SetVisible | ( | bool | visible | ) |
Definition at line 551 of file scrollview.cpp.
char * ScrollView::ShowInputDialog | ( | const char * | msg | ) |
Definition at line 736 of file scrollview.cpp.
int ScrollView::ShowYesNoDialog | ( | const char * | msg | ) |
Definition at line 748 of file scrollview.cpp.
void ScrollView::Stroke | ( | float | width | ) |
Definition at line 596 of file scrollview.cpp.
void ScrollView::Text | ( | int | x, |
int | y, | ||
const char * | mystring | ||
) |
Definition at line 654 of file scrollview.cpp.
void ScrollView::TextAttributes | ( | const char * | font, |
int | pixel_size, | ||
bool | bold, | ||
bool | italic, | ||
bool | underlined | ||
) |
Definition at line 637 of file scrollview.cpp.
int ScrollView::TranslateYCoordinate | ( | int | y | ) |
Definition at line 830 of file scrollview.cpp.
|
static |
Definition at line 711 of file scrollview.cpp.
void ScrollView::UpdateWindow | ( | ) |
Definition at line 706 of file scrollview.cpp.
void ScrollView::ZoomToRectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 760 of file scrollview.cpp.