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

Method getOrigin

src/atom/box.cpp:637–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637int RotateBox::getOrigin(string option) {
638 if (option.empty()) return BBL;
639 if (option.size() == 1) option += "c";
640
641 if (option == "bl" || option == "lb") return BL;
642 if (option == "bc" || option == "cb") return BC;
643 if (option == "br" || option == "rb") return BR;
644 if (option == "cl" || option == "lc") return CL;
645 if (option == "cc") return CC;
646 if (option == "cr" || option == "rc") return CR;
647 if (option == "tl" || option == "lt") return TL;
648 if (option == "tc" || option == "ct") return TC;
649 if (option == "tr" || option == "rt") return TR;
650 if (option == "Bl" || option == "lB") return BBL;
651 if (option == "Bc" || option == "cB") return BBC;
652 if (option == "Br" || option == "rB") return BBR;
653 return BBL;
654}
655
656void RotateBox::draw(Graphics2D& g2, float x, float y) {
657 drawDebug(g2, x, y);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected