Set the attributes for future Text(..) calls.
| 639 | |
| 640 | // Set the attributes for future Text(..) calls. |
| 641 | void ScrollView::TextAttributes(const char* font, int pixel_size, |
| 642 | bool bold, bool italic, bool underlined) { |
| 643 | const char* b; |
| 644 | const char* i; |
| 645 | const char* u; |
| 646 | |
| 647 | if (bold) { b = "true"; |
| 648 | } else { b = "false"; } |
| 649 | if (italic) { i = "true"; |
| 650 | } else { i = "false"; } |
| 651 | if (underlined) { u = "true"; |
| 652 | } else { u = "false"; } |
| 653 | SendMsg("textAttributes('%s',%u,%s,%s,%s)", font, pixel_size, |
| 654 | b, i, u); |
| 655 | } |
| 656 | |
| 657 | // Draw text at the given coordinates. |
| 658 | void ScrollView::Text(int x, int y, const char* mystring) { |
no outgoing calls
no test coverage detected