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

Method AddMonitor

core/graphics/XChart.h:252–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 inline token::DarkModeManager &GetDarkModeManager() const { return *darkModeManager_; }
251
252 void AddMonitor(const std::string &action, ChartActionCallback callback, bool forChart = true) {
253 if(forChart) {
254 chartActionListeners_[action].push_back(callback);
255 } else {
256 renderActionListeners_[action].push_back(callback);
257 }
258 }
259
260 inline const std::array<double, 4> GetPadding() { return userPadding_; }
261 inline const std::array<double, 4> GetMargin() { return margin_; }

Callers 1

XChart.cppFile · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected