tesseract v5.3.3.20231005
|
#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... | |
std::unique_ptr< 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(gnu_printf |
void void | ZoomToRectangle (int x1, int y1, int x2, int y2) |
void | SendMsg (const char *msg,...) __attribute__((format(gnu_printf |
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) |
char | Wait () |
Static Public Member Functions | |
static void | Update () |
static void | Exit () |
void static void | SendRawMessage (const char *msg) |
Definition at line 109 of file scrollview.h.
Definition at line 112 of file scrollview.h.
tesseract::ScrollView::~ScrollView | ( | ) |
Definition at line 356 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 408 of file scrollview.cpp.
void tesseract::ScrollView::AddMessage | ( | const char * | message | ) |
Definition at line 533 of file scrollview.cpp.
void tesseract::ScrollView::AddMessageBox | ( | ) |
Definition at line 554 of file scrollview.cpp.
void tesseract::ScrollView::AddMessageF | ( | const char * | format, |
... | |||
) |
Definition at line 542 of file scrollview.cpp.
void tesseract::ScrollView::AlwaysOnTop | ( | bool | b | ) |
Definition at line 524 of file scrollview.cpp.
std::unique_ptr< 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 432 of file scrollview.cpp.
void tesseract::ScrollView::Brush | ( | Color | color | ) |
Definition at line 716 of file scrollview.cpp.
void tesseract::ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 600 of file scrollview.cpp.
void tesseract::ScrollView::Brush | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 605 of file scrollview.cpp.
void tesseract::ScrollView::Clear | ( | ) |
Definition at line 565 of file scrollview.cpp.
void tesseract::ScrollView::Draw | ( | const char * | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 640 of file scrollview.cpp.
void tesseract::ScrollView::Draw | ( | Image | image, |
int | x_pos, | ||
int | y_pos | ||
) |
Definition at line 750 of file scrollview.cpp.
void tesseract::ScrollView::DrawTo | ( | int | x, |
int | y | ||
) |
Definition at line 491 of file scrollview.cpp.
void tesseract::ScrollView::Ellipse | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 585 of file scrollview.cpp.
|
static |
Definition at line 559 of file scrollview.cpp.
|
inline |
Definition at line 202 of file scrollview.h.
|
inline |
Definition at line 197 of file scrollview.h.
void tesseract::ScrollView::Line | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 498 of file scrollview.cpp.
void tesseract::ScrollView::MenuItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 666 of file scrollview.cpp.
void tesseract::ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent | ||
) |
Definition at line 658 of file scrollview.cpp.
void tesseract::ScrollView::MenuItem | ( | const char * | parent, |
const char * | name, | ||
int | cmdEvent, | ||
bool | flagged | ||
) |
Definition at line 646 of file scrollview.cpp.
void tesseract::ScrollView::Pen | ( | Color | color | ) |
Definition at line 710 of file scrollview.cpp.
void tesseract::ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue | ||
) |
Definition at line 590 of file scrollview.cpp.
void tesseract::ScrollView::Pen | ( | int | red, |
int | green, | ||
int | blue, | ||
int | alpha | ||
) |
Definition at line 595 of file scrollview.cpp.
void tesseract::ScrollView::PopupItem | ( | const char * | parent, |
const char * | name | ||
) |
Definition at line 674 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 682 of file scrollview.cpp.
void tesseract::ScrollView::Rectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 576 of file scrollview.cpp.
void tesseract::ScrollView::SendMsg | ( | const char * | msg, |
... | |||
) |
Send a message to the server, attaching the window id.
Definition at line 384 of file scrollview.cpp.
|
static |
Send a message to the server without a window id. Used for global events like exit().
Definition at line 403 of file scrollview.cpp.
void tesseract::ScrollView::SetCursor | ( | int | x, |
int | y | ||
) |
Definition at line 485 of file scrollview.cpp.
void tesseract::ScrollView::SetVisible | ( | bool | visible | ) |
Definition at line 515 of file scrollview.cpp.
char * tesseract::ScrollView::ShowInputDialog | ( | const char * | msg | ) |
Definition at line 722 of file scrollview.cpp.
int tesseract::ScrollView::ShowYesNoDialog | ( | const char * | msg | ) |
Definition at line 732 of file scrollview.cpp.
void tesseract::ScrollView::Stroke | ( | float | width | ) |
Definition at line 570 of file scrollview.cpp.
void tesseract::ScrollView::Text | ( | int | x, |
int | y, | ||
const char * | mystring | ||
) |
Definition at line 635 of file scrollview.cpp.
void tesseract::ScrollView::TextAttributes | ( | const char * | font, |
int | pixel_size, | ||
bool | bold, | ||
bool | italic, | ||
bool | underlined | ||
) |
Definition at line 610 of file scrollview.cpp.
int tesseract::ScrollView::TranslateYCoordinate | ( | int | y | ) |
Definition at line 809 of file scrollview.cpp.
|
static |
Definition at line 700 of file scrollview.cpp.
void tesseract::ScrollView::UpdateWindow | ( | ) |
Definition at line 695 of file scrollview.cpp.
char tesseract::ScrollView::Wait | ( | ) |
Definition at line 817 of file scrollview.cpp.
void tesseract::ScrollView::ZoomToRectangle | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
Definition at line 742 of file scrollview.cpp.