MCPcopy Create free account
hub / github.com/VitalAudio/visage / positionInWindow

Method positionInWindow

visage_ui/frame.cpp:258–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 Point Frame::positionInWindow() const {
259 Point global_position = topLeft();
260 Frame* frame = parent_;
261 while (frame) {
262 global_position = global_position + frame->topLeft();
263 frame = frame->parent_;
264 }
265
266 return global_position;
267 }
268
269 Bounds Frame::relativeBounds(const Frame* other) const {
270 Point position = positionInWindow();

Callers 8

relativeBoundsMethod · 0.80
relativeToMethod · 0.80
handleHitTestMethod · 0.80
handleMouseMoveMethod · 0.80
handleMouseDownMethod · 0.80
handleMouseUpMethod · 0.80
handleMouseLeaveMethod · 0.80
handleMouseWheelMethod · 0.80

Calls 1

topLeftMethod · 0.45

Tested by

no test coverage detected