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

Function ParseValueAnchor

libs/drape_frontend/gui/skin.cpp:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#endif
28
29dp::Anchor ParseValueAnchor(std::string_view value)
30{
31 if (value == "center")
32 return dp::Center;
33 if (value == "left")
34 return dp::Left;
35 if (value == "right")
36 return dp::Right;
37 if (value == "top")
38 return dp::Top;
39 if (value == "bottom")
40 return dp::Bottom;
41 else
42 ASSERT(false, ());
43
44 return dp::Center;
45}
46
47dp::Anchor MergeAnchors(dp::Anchor src, dp::Anchor dst)
48{

Callers 1

ParseMethod · 0.85

Calls 1

ASSERTFunction · 0.85

Tested by

no test coverage detected