tesseract
5.0.0-alpha-619-ge9db
|
#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 97 of file scrollview.h.
enum ScrollView::Color |
Definition at line 100 of file scrollview.h.
ScrollView::~ScrollView | ( | ) |
Definition at line 360 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 260 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 252 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 245 of file scrollview.cpp.
void ScrollView::AddEventHandler | ( | SVEventHandler * | listener | ) |
Add an Event Listener to this ScrollView Window.
Definition at line 415 of file scrollview.cpp.
void ScrollView::AddMessage | ( | const char * | format, |
... | |||
) |
Definition at line 560 of file scrollview.cpp.
void ScrollView::AddMessageBox | ( | ) |
Definition at line 577 of file scrollview.cpp.
void ScrollView::AlwaysOnTop | ( | bool | b | ) |
Definition at line 554 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 443 of file scrollview.cpp.
SVEvent * ScrollView::AwaitEventAnyWindow | ( | ) |
Definition at line 464 of file scrollview.cpp.
void ScrollView::Brush | ( | Color | color | ) |
Definition at line 723 of file scrollview.cpp.
void ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 624 of file scrollview.cpp.
void ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 629 of file scrollview.cpp.
void ScrollView::Clear | ( | ) |
Definition at line 588 of file scrollview.cpp.
void ScrollView::DrawTo | ( | int | x, |
int | y | ||
) |
Definition at line 524 of file scrollview.cpp.
void ScrollView::Ellipse | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 608 of file scrollview.cpp.
|
static |
Definition at line 582 of file scrollview.cpp.
|
inline |
Definition at line 190 of file scrollview.h.
|
inline |
Definition at line 187 of file scrollview.h.
void ScrollView::Image | ( | const char * | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 656 of file scrollview.cpp.
void ScrollView::Image | ( | struct Pix * | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 763 of file scrollview.cpp.
void ScrollView::Line | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 531 of file scrollview.cpp.
void ScrollView::MenuItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 679 of file scrollview.cpp.
void ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent | ||
) |
Definition at line 673 of file scrollview.cpp.
void ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
bool | flagged | ||
) |
Definition at line 663 of file scrollview.cpp.
void ScrollView::Pen | ( | Color | color | ) |
Definition at line 717 of file scrollview.cpp.
void ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 614 of file scrollview.cpp.
void ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 619 of file scrollview.cpp.
void ScrollView::PopupItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 685 of file scrollview.cpp.
void ScrollView::PopupItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
const char * | value, | ||
const char * | desc | ||
) |
Definition at line 691 of file scrollview.cpp.
void ScrollView::Rectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 599 of file scrollview.cpp.
void ScrollView::SendMsg | ( | const char * | msg, |
... | |||
) |
Send a message to the server, attaching the window id.
Definition at line 392 of file scrollview.cpp.
|
static |
Send a message to the server without a window id. Used for global events like exit().
Definition at line 410 of file scrollview.cpp.
void ScrollView::SetCursor | ( | int | x, |
int | y | ||
) |
Definition at line 518 of file scrollview.cpp.
void ScrollView::SetVisible | ( | bool | visible | ) |
Definition at line 548 of file scrollview.cpp.
char * ScrollView::ShowInputDialog | ( | const char * | msg | ) |
Definition at line 731 of file scrollview.cpp.
int ScrollView::ShowYesNoDialog | ( | const char * | msg | ) |
Definition at line 743 of file scrollview.cpp.
void ScrollView::Stroke | ( | float | width | ) |
Definition at line 593 of file scrollview.cpp.
void ScrollView::Text | ( | int | x, |
int | y, | ||
const char * | mystring | ||
) |
Definition at line 651 of file scrollview.cpp.
void ScrollView::TextAttributes | ( | const char * | font, |
int | pixel_size, | ||
bool | bold, | ||
bool | italic, | ||
bool | underlined | ||
) |
Definition at line 634 of file scrollview.cpp.
int ScrollView::TranslateYCoordinate | ( | int | y | ) |
Definition at line 825 of file scrollview.cpp.
|
static |
Definition at line 708 of file scrollview.cpp.
void ScrollView::UpdateWindow | ( | ) |
Definition at line 703 of file scrollview.cpp.
void ScrollView::ZoomToRectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 755 of file scrollview.cpp.