8#ifndef CommandSet_DEFINED
9#define CommandSet_DEFINED
55 void addCommand(
skui::Key k,
const char* keyName,
const char* group,
const char* description,
69 Command(
SkUnichar c,
const char* group,
const char* description,
71 : fType(kChar_CommandType)
75 , fDescription(description)
78 Command(
skui::Key k,
const char* keyName,
const char* group,
const char* description,
80 : fType(kKey_CommandType)
84 , fDescription(description)
99 std::function<void(
void)> fFunction;
106 static bool compareCommandKey(
const Command& first,
const Command& second);
107 static bool compareCommandGroup(
const Command& first,
const Command& second);
112 kAlphabetical_HelpMode,
SK_API SkString static SkString SkStringPrintf()
const char * c_str() const
void attach(Window *window)
void drawHelp(SkCanvas *canvas)
bool onChar(SkUnichar, skui::ModifierKey modifiers)
bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers)
std::vector< SkString > getCommandsAsSoftkeys() const
void addCommand(SkUnichar c, const char *group, const char *description, std::function< void(void)> function)
bool onSoftkey(const SkString &softkey)
Dart_NativeFunction function