8#ifndef CommandSet_DEFINED
9#define CommandSet_DEFINED
71 : fType(kChar_CommandType)
75 , fDescription(description)
80 : fType(kKey_CommandType)
84 , fDescription(description)
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 SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
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