MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / handleKeyword

Method handleKeyword

lib/YAWidgets/src/TextWidget.cpp:860–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860bool 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
883void TextWidget::horizontalLeftAligned(YAGfx& gfx, const String& keyword)
884{

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected