MCPcopy Create free account
hub / github.com/axmolengine/axmol / setHighlighted

Method setHighlighted

core/ui/UIWidget.cpp:647–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647void Widget::setHighlighted(bool highlight)
648{
649 if (highlight == _highlight)
650 {
651 return;
652 }
653
654 _highlight = highlight;
655 if (_bright)
656 {
657 if (_highlight)
658 {
659 setBrightStyle(BrightStyle::HIGHLIGHT);
660 }
661 else
662 {
663 setBrightStyle(BrightStyle::NORMAL);
664 }
665 }
666 else
667 {
668 onPressStateChangedToDisabled();
669 }
670}
671
672void Widget::setBright(bool bright)
673{

Callers 1

interceptTouchEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected