MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / setHeight

Method setHeight

src/render.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void TeXRender::setHeight(int height, int align) {
73 float diff = height - getHeight();
74 // FIXME
75 // only care if new height larger than old
76 if (diff > 0) {
77 _box = sptr<Box>(new VerticalBox(_box, diff, align));
78 }
79}
80
81void TeXRender::draw(_out_ Graphics2D& g2, int x, int y) {
82 color old = g2.getColor();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected