void RocketTaskbar::Show()
{
    if (!isVisible())
    {
        show();
        emit VisibilityChanged(true);
    }
}
void VisibilitySection::SetVisible(bool visible)
{
	if(visible != m_visible)
	{
		m_visible = visible;
		VisibilityChanged();
	}

}
示例#3
0
    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);
    }
}
示例#5
0
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();
}
示例#6
0
void SceneNode::SetVisible(bool vis)
{
    m_visible=vis;
    VisibilityChanged();
}