MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / calcTextPositionAt

Method calcTextPositionAt

src/core/objects/text_object.cpp:327–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327int TextObject::calcTextPositionAt(const MapCoordF& coord, bool find_line_only) const
328{
329 return calcTextPositionAt(calcMapToTextTransform().map(coord), find_line_only);
330}
331
332// FIXME actually this is two functions, selected by parameter find_line_only; make two functions or return TextObjectLineInfo reference
333int TextObject::calcTextPositionAt(const QPointF& point, bool find_line_only) const

Callers 8

inputMethodQueryMethod · 0.80
mousePressEventMethod · 0.80
mouseMoveEventMethod · 0.80
keyPressEventMethod · 0.80
updateDraggingMethod · 0.80
isPointOnObjectMethod · 0.80

Calls 5

mapMethod · 0.80
yMethod · 0.80
xMethod · 0.80
getIndexMethod · 0.80

Tested by

no test coverage detected