MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onSendClicked

Method onSendClicked

Tactility/Source/app/chat/ChatView.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244void ChatView::onSendClicked(lv_event_t* e) {
245 auto* self = static_cast<ChatView*>(lv_event_get_user_data(e));
246 auto* text = lv_textarea_get_text(self->inputField);
247 if (text && strlen(text) > 0) {
248 self->app->sendMessage(std::string(text));
249 lv_textarea_set_text(self->inputField, "");
250 }
251}
252
253void ChatView::onSettingsClicked(lv_event_t* e) {
254 auto* self = static_cast<ChatView*>(lv_event_get_user_data(e));

Callers

nothing calls this directly

Calls 1

sendMessageMethod · 0.80

Tested by

no test coverage detected