void Widget::setBright(bool bright) { _bright = bright; if (_bright) { _brightStyle = BrightStyle::NONE; setBrightStyle(BrightStyle::NORMAL); } else { onPressStateChangedToDisabled(); } }
void UIWidget::setBright(bool bright) { m_bBright = bright; if (m_bBright) { m_eBrightStyle = BRIGHT_NONE; setBrightStyle(BRIGHT_NORMAL); } else { onPressStateChangedToDisabled(); } }
void Widget::setHighlighted(bool hilight) { if (hilight == _highlight) { return; } _highlight = hilight; if (_bright) { if (_highlight) { setBrightStyle(BrightStyle::HIGHLIGHT); } else { setBrightStyle(BrightStyle::NORMAL); } } else { onPressStateChangedToDisabled(); } }
void Widget::setFocused(bool fucos) { if (fucos == _focus) { return; } _focus = fucos; if (_bright) { if (_focus) { setBrightStyle(BRIGHT_HIGHLIGHT); } else { setBrightStyle(BRIGHT_NORMAL); } } else { onPressStateChangedToDisabled(); } }
void UIWidget::setFocus(bool fucos) { if (fucos == m_bFocus) { return; } m_bFocus = fucos; if (m_bBright) { if (m_bFocus) { setBrightStyle(BRIGHT_HIGHLIGHT); } else { setBrightStyle(BRIGHT_NORMAL); } } else { onPressStateChangedToDisabled(); } }