|
Milo
0.1
Milo:EquationManipulationProgram
|


Public Member Functions | |
Constructor and Virtual Destructor | |
| CursesGraphics () | |
| ~CursesGraphics () | |
Public Member Functions inherited from UI::Graphics | |
| Graphics () | |
| virtual | ~Graphics () |
| virtual void | at (int x0, int y0, const std::string &s, Attributes chrAttr, Color color=BLACK)=0 |
| void | set (const Box &box) |
| void | setSelect (const Box &box) |
| void | parenthesis (const Box &box) |
| void | relativeOrig (int &x, int &y) |
Private Member Functions | |
| void | at (int x, int y, int c) |
Private Attributes | |
| bool | m_has_colors |
| If true, flag is screen has colors. | |
| int | m_xMouse |
| Last mouse horizontal coordinate. | |
| int | m_yMouse |
| Last mouse vertical coordinate. | |
Static Private Attributes | |
| static bool | init = false |
| Singleton has been initialized. | |
| static const unordered_map< Attributes, int > | attribute_map |
| static const unordered_map< char, string > | char_map |
Virtual Public Member Functions | |
| int | getTextHeight () |
| int | getTextLength (const std::string &s) |
| int | getCharLength (char) |
| int | getParenthesisWidth (int) |
| int | getDivideLineHeight () |
| int | getDifferentialHeight (char) |
| int | getDifferentialWidth (char) |
| int | getDifferentialBase (char) |
| void | at (int x, int y, int c, Attributes chrAttr, Color color=BLACK) |
| void | at (int x, int y, const string &s, Attributes chrAttr, Color color=BLACK) |
| void | at (int x, int y, const char *s) |
| void | out () |
| void | clear_screen () |
| void | set (int x, int y, int, int) |
| void | horiz_line (int x_size, int x0, int y0) |
| void | differential (int x0, int y0, char variable) |
| void | parenthesis (int x_size, int y_size, int x0, int y0) |
| void | setSelect (int x, int y, int x0, int y0) |
| unsigned int | ins (int x, int y) |
| unsigned int | getChar (int y, int x, bool active) |
| static CursesGraphics & | getInstance () |
Additional Inherited Members | |
Public Types inherited from UI::Graphics | |
| enum | Color { BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE } |
| enum | Attributes { NONE =0, BOLD =1, ITALIC =2, BOLD_ITALIC =3 } |
Protected Attributes inherited from UI::Graphics | |
| int | m_xSize |
| Horizontal size of graphic window. | |
| int | m_ySize |
| Vertical size of graphic window. | |
| int | m_xOrig |
| Horizontal origin of graphic window. | |
| int | m_yOrig |
| Vertical origin of graphic window. | |
| Box | m_select |
| Currently selected area. | |
Class derived from ABC Graphics to allow milo to draw to a ncurses ascii screen.
|
inlinevirtual |
Draw a character at x,y with a color.
| x | Horizontal origin of line. |
| y | Vertical origin of line. |
| c | Character to be drawn at x0,y0. |
| chrAttr | Attribute of character. |
| color | Color of line. |
Implements UI::Graphics.
|
inline |
Draw a string at x,y with a color.
| x | Horizontal origin of line. |
| y | Vertical origin of line. |
| s | String to be drawn at x0,y0. |
| chrAttr | Attribute of character. |
| color | Color of line. |
|
inline |
Draw a c-string at x,y with black color.
| x | Horizontal origin of line. |
| y | Vertical origin of line. |
| s | C-String to be drawn at x0,y0. |
|
inlineprivate |
Draw a character at x,y.
| x | Horizontal origin of line. |
| y | Vertical origin of line. |
| c | Character to be drawn at x0,y0. |
|
inlinevirtual |
Clear ncurses screen.
Implements UI::Graphics.
|
virtual |
Draw differential of width x0 and height y0 with char variable name.
| x0 | Horizontal origin of differential. |
| y0 | Vertical origin of differential. |
| variable | Name of variable of differential. |
Implements UI::Graphics.
|
inline |
Return character from key press. Put up a blinking cursor at given coordinates. Erase cursor after key press.
| y | Vertical coordinate. |
| x | Horizontal coordinate. |
| active | True if cursor should blink |
|
inlinevirtual |
|
inlinevirtual |
Get vertical offset of differential.
Implements UI::Graphics.
|
inlinevirtual |
Get height of differential in lines of text.
Implements UI::Graphics.
|
inlinevirtual |
Get width of differential in lines of text.
Implements UI::Graphics.
|
inlinevirtual |
Get height of line in a division node which is always 1.
Implements UI::Graphics.
|
inlinestatic |
Static fucntion that return singleton CursesGraphics object attached to screen
|
inlinevirtual |
Get width of a parenthesis in characters which is always 1.
Implements UI::Graphics.
|
inlinevirtual |
Get height of text in lines.
Implements UI::Graphics.
|
inlinevirtual |
|
inlinevirtual |
Draw a horizontal line starting at x0,y0 length x_size.
| x_size | Horizontal size of both line. |
| x0 | Horizontal origin of line. |
| y0 | Vertical origin of line. |
Implements UI::Graphics.
|
inline |
Return character drawn at screen coordinates.
| x | Horizontal coordinate. |
| y | Vertical coordinate. |
|
inlinevirtual |
Flush all characters to the ncurses screen.
Implements UI::Graphics.
|
virtual |
Draw pair of parenthesis around a node of size x_size, y_size and origin x0,y0.
| x_size | Horizontal size of both parenthesis. |
| y_size | Vertical size of parenthesis. |
| x0 | Horizontal origin of parenthesis. |
| y0 | Vertical origin of parenthesis. |
Implements UI::Graphics.
|
inlinevirtual |
Set size of this graphics window (origin is always 0,0).
| x | Horizontal size of graphics window. |
| y | Vertical size of graphics window. |
Reimplemented from UI::Graphics.
|
inlinevirtual |
Select the area of size x,y at origin x0,y0.
| x | Horizontal size of both selection area. |
| y | Vertical size of selection area. |
| x0 | Horizontal origin of selection area. |
| y0 | Vertical origin of selection area. |
Reimplemented from UI::Graphics.
|
staticprivate |
Map Graphics attributs to ncurses attributes.
|
staticprivate |
Special characters that are mapped to special unicode characters. Upper case characters mapped to greek letters.
1.8.11