MCPcopy Create free account
hub / github.com/comaps/comaps / Update

Method Update

libs/drape_frontend/gui/ruler.cpp:148–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 bool Update(ScreenBase const & screen) override
149 {
150 SetIsVisible(RulerHelper::IsVisible(screen));
151 if (IsVisible() && (DrapeGui::GetRulerHelper().IsTextDirty() || m_firstUpdate))
152 {
153 SetContent(DrapeGui::GetRulerHelper().GetRulerText());
154 m_firstUpdate = false;
155 }
156
157 return TBase::Update(screen);
158 }
159
160 void SetPivot(glsl::vec2 const & pivot) override
161 {

Callers

nothing calls this directly

Calls 2

IsTextDirtyMethod · 0.80
UpdateFunction · 0.50

Tested by

no test coverage detected