| 858 | } |
| 859 | |
| 860 | bool TextWidget::handleKeyword(YAGfx& gfx, const FormatKeywordRow* table, size_t tableSize, const String& keyword) |
| 861 | { |
| 862 | bool isFound = false; |
| 863 | size_t idx = 0U; |
| 864 | |
| 865 | while ((tableSize > idx) && (false == isFound)) |
| 866 | { |
| 867 | const FormatKeywordRow* row = &table[idx]; |
| 868 | |
| 869 | if (true == isKeywordEqual(row->keyword, keyword.c_str())) |
| 870 | { |
| 871 | KeywordHandler handler = row->handler; |
| 872 | |
| 873 | (this->*handler)(gfx, keyword); |
| 874 | isFound = true; |
| 875 | } |
| 876 | |
| 877 | ++idx; |
| 878 | }; |
| 879 | |
| 880 | return isFound; |
| 881 | } |
| 882 | |
| 883 | void TextWidget::horizontalLeftAligned(YAGfx& gfx, const String& keyword) |
| 884 | { |