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

Method setBox

src/core/objects/text_object.cpp:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209
210void TextObject::setBox(qint32 mid_x, qint32 mid_y, qreal width, qreal height)
211{
212 has_single_anchor = false;
213 coords[0].setNativeX(mid_x);
214 coords[0].setNativeY(mid_y);
215 size = {width, height};
216 setOutputDirty();
217}
218
219void TextObject::setBoxSize(const MapCoord& size)
220{

Callers 3

dragMoveMethod · 0.80
moveMethod · 0.80
fillTextPathCoordsMethod · 0.80

Calls 2

setNativeXMethod · 0.80
setNativeYMethod · 0.80

Tested by

no test coverage detected