tesseract 5.2.0
|
#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. | |
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. | |
void | AddEventHandler (SVEventHandler *listener) |
Add an Event Listener to this ScrollView Window. | |
SVEvent * | AwaitEvent (SVEventType type) |
const char * | GetName () |
int | GetId () |
void | Draw (Image 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 | Draw (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 *message) |
void | AddMessageF (const char *format,...) __attribute__((format(printf |
void void | ZoomToRectangle (int x1, int y1, int x2, int y2) |
void | SendMsg (const char *msg,...) __attribute__((format(printf |
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) |
char | Wait () |
Static Public Member Functions | |
static void | Update () |
static void | Exit () |
void static void | SendRawMessage (const char *msg) |
Definition at line 108 of file scrollview.h.
Definition at line 111 of file scrollview.h.
tesseract::ScrollView::~ScrollView | ( | ) |
Definition at line 362 of file scrollview.cpp.
tesseract::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.
tesseract::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 257 of file scrollview.cpp.
tesseract::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 tesseract::ScrollView::AddEventHandler | ( | SVEventHandler * | listener | ) |
Add an Event Listener to this ScrollView Window.
Definition at line 418 of file scrollview.cpp.
void tesseract::ScrollView::AddMessage | ( | const char * | message | ) |
Definition at line 546 of file scrollview.cpp.
void tesseract::ScrollView::AddMessageBox | ( | ) |
Definition at line 567 of file scrollview.cpp.
void tesseract::ScrollView::AddMessageF | ( | const char * | format, |
... | |||
) |
Definition at line 555 of file scrollview.cpp.
void tesseract::ScrollView::AlwaysOnTop | ( | bool | b | ) |
Definition at line 537 of file scrollview.cpp.
SVEvent * tesseract::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.
void tesseract::ScrollView::Brush | ( | Color | color | ) |
Definition at line 729 of file scrollview.cpp.
void tesseract::ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 613 of file scrollview.cpp.
void tesseract::ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 618 of file scrollview.cpp.
void tesseract::ScrollView::Clear | ( | ) |
Definition at line 578 of file scrollview.cpp.
void tesseract::ScrollView::Draw | ( | const char * | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 653 of file scrollview.cpp.
void tesseract::ScrollView::Draw | ( | Image | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 767 of file scrollview.cpp.
void tesseract::ScrollView::DrawTo | ( | int | x, |
int | y | ||
) |
Definition at line 504 of file scrollview.cpp.
void tesseract::ScrollView::Ellipse | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 598 of file scrollview.cpp.
|
static |
Definition at line 572 of file scrollview.cpp.
|
inline |
Definition at line 201 of file scrollview.h.
|
inline |
Definition at line 196 of file scrollview.h.
void tesseract::ScrollView::Line | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 511 of file scrollview.cpp.
void tesseract::ScrollView::MenuItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 679 of file scrollview.cpp.
void tesseract::ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent | ||
) |
Definition at line 671 of file scrollview.cpp.
void tesseract::ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
bool | flagged | ||
) |
Definition at line 659 of file scrollview.cpp.
void tesseract::ScrollView::Pen | ( | Color | color | ) |
Definition at line 723 of file scrollview.cpp.
void tesseract::ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 603 of file scrollview.cpp.
void tesseract::ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 608 of file scrollview.cpp.
void tesseract::ScrollView::PopupItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 687 of file scrollview.cpp.
void tesseract::ScrollView::PopupItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
const char * | value, | ||
const char * | desc | ||
) |
Definition at line 695 of file scrollview.cpp.
void tesseract::ScrollView::Rectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 589 of file scrollview.cpp.
void tesseract::ScrollView::SendMsg | ( | const char * | msg, |
... | |||
) |
Send a message to the server, attaching the window id.
Definition at line 394 of file scrollview.cpp.
|
static |
Send a message to the server without a window id. Used for global events like exit().
Definition at line 413 of file scrollview.cpp.
void tesseract::ScrollView::SetCursor | ( | int | x, |
int | y | ||
) |
Definition at line 498 of file scrollview.cpp.
void tesseract::ScrollView::SetVisible | ( | bool | visible | ) |
Definition at line 528 of file scrollview.cpp.
char * tesseract::ScrollView::ShowInputDialog | ( | const char * | msg | ) |
Definition at line 735 of file scrollview.cpp.
int tesseract::ScrollView::ShowYesNoDialog | ( | const char * | msg | ) |
Definition at line 747 of file scrollview.cpp.
void tesseract::ScrollView::Stroke | ( | float | width | ) |
Definition at line 583 of file scrollview.cpp.
void tesseract::ScrollView::Text | ( | int | x, |
int | y, | ||
const char * | mystring | ||
) |
Definition at line 648 of file scrollview.cpp.
void tesseract::ScrollView::TextAttributes | ( | const char * | font, |
int | pixel_size, | ||
bool | bold, | ||
bool | italic, | ||
bool | underlined | ||
) |
Definition at line 623 of file scrollview.cpp.
int tesseract::ScrollView::TranslateYCoordinate | ( | int | y | ) |
Definition at line 826 of file scrollview.cpp.
|
static |
Definition at line 713 of file scrollview.cpp.
void tesseract::ScrollView::UpdateWindow | ( | ) |
Definition at line 708 of file scrollview.cpp.
char tesseract::ScrollView::Wait | ( | ) |
Definition at line 834 of file scrollview.cpp.
void tesseract::ScrollView::ZoomToRectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 759 of file scrollview.cpp.