void RocketTaskbar::Show() { if (!isVisible()) { show(); emit VisibilityChanged(true); } }
void VisibilitySection::SetVisible(bool visible) { if(visible != m_visible) { m_visible = visible; VisibilityChanged(); } }
void UiVisibilityAction::ToggleVisibility() { if (!controlled_widget_) return; if (controlled_widget_->isVisible()) controlled_widget_->hide(); else controlled_widget_->show(); emit VisibilityChanged(controlled_widget_->isVisible()); }
void RocketTaskbar::Hide() { // Mark hide as demanded for internal usage. // Meaning Hide() is called before our automatic show has // been triggered. Now we can detect that we should not automatically show. if (!isVisible() && !hideRequested_) hideRequested_ = true; if (isVisible()) { hide(); emit VisibilityChanged(false); } }
SceneNode::SceneNode(SceneManager* mng, SceneNode* parent) { m_parent=parent; m_level=0; m_levelReel = this->CalculerLevel(); m_relative.rotation=0; m_relative.scale=sf::Vector2f(1,1); m_manager=mng; m_manager->AddNodeLevel(m_levelReel, this); SetRelativePosition(m_relative.position); m_visible=true; if(m_parent) { m_absolute = m_parent->m_absolute; m_visible = m_parent->m_visible; } VisibilityChanged(); }
void SceneNode::SetVisible(bool vis) { m_visible=vis; VisibilityChanged(); }