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

Method SetViewport

libs/drape/viewport.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5Viewport::Viewport(uint32_t x0, uint32_t y0, uint32_t w, uint32_t h) : m_zero(x0, y0), m_size(w, h) {}
6
7void Viewport::SetViewport(uint32_t x0, uint32_t y0, uint32_t w, uint32_t h)
8{
9 m_zero = m2::PointU(x0, y0);
10 m_size = m2::PointU(w, h);
11}
12
13uint32_t Viewport::GetX0() const
14{

Callers 3

ApplyMethod · 0.45
ResizeImplMethod · 0.45
OnResizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected