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

Method Draw

libs/drape_frontend/gui/ruler.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175} // namespace
176
177drape_ptr<ShapeRenderer> Ruler::Draw(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::TextureManager> tex) const
178{
179 ShapeControl control;
180 DrawRuler(context, control, tex, true);
181 DrawRuler(context, control, tex, false);
182 DrawText(context, control, tex, true);
183 DrawText(context, control, tex, false);
184
185 drape_ptr<ShapeRenderer> renderer = make_unique_dp<ShapeRenderer>();
186 renderer->AddShapeControl(std::move(control));
187 return renderer;
188}
189
190void Ruler::DrawRuler(ref_ptr<dp::GraphicsContext> context, ShapeControl & control, ref_ptr<dp::TextureManager> tex,
191 bool isAppearing) const

Callers 13

BatchMethod · 0.45
GeneratePoiSymbolShapeFunction · 0.45
GenerateTextShapesFunction · 0.45
CacheUserLinesFunction · 0.45
GenerateTitlesMethod · 0.45
AcceptMessageMethod · 0.45
BuildLinesMethod · 0.45
RecacheDebugLabelsMethod · 0.45
CacheCompassMethod · 0.45
CacheRulerMethod · 0.45

Calls 1

AddShapeControlMethod · 0.80

Tested by

no test coverage detected