MCPcopy Create free account
hub / github.com/antvis/F2Native / OnPressStart

Method OnPressStart

core/graphics/tooltip/TooltipController.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool tooltip::ToolTipController::OnPressStart(event::Event &event) {
82 chart_->GetLogTracer()->trace("%s", "#ToolTipController onPressStart");
83 if (isTooltips()) {
84 if (configs_[0].contains("onPressStart") && configs_[0]["onPressStart"].is_string()) {
85 chart_->InvokeFunction(configs_[0]["onPressStart"]);
86 }
87 } else {
88 if (config_.contains("onPressStart") && config_["onPressStart"].is_string()) {
89 chart_->InvokeFunction(config_["onPressStart"]);
90 }
91 }
92 return false;
93}
94
95bool tooltip::ToolTipController::OnPress(event::Event &event) {
96 if (isTooltips()) {

Callers

nothing calls this directly

Calls 3

traceMethod · 0.80
GetLogTracerMethod · 0.80
InvokeFunctionMethod · 0.80

Tested by

no test coverage detected