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

Method init

src/atom/atom_impl.cpp:639–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637const float FencedAtom::DELIMITER_SHORTFALL = 5.f;
638
639void FencedAtom::init(const sptr<Atom>& b, const sptr<SymbolAtom>& l, const sptr<SymbolAtom>& r) {
640 if (b == nullptr)
641 _base = sptr<Atom>(new RowAtom());
642 else
643 _base = b;
644 if (l == nullptr || l->getName() != "normaldot") _left = l;
645 if (r == nullptr || r->getName() != "normaldot") _right = r;
646}
647
648void FencedAtom::center(_out_ Box& b, float axis) {
649 float h = b._height, total = h + b._depth;

Callers

nothing calls this directly

Calls 1

checkUnitFunction · 0.85

Tested by

no test coverage detected