void UIScrollBarMetadata::SetScrollOrientation(int value)
{
    if (!VerifyActiveParamID())
    {
        return;
    }	
    
	GetActiveUIScrollBar()->SetOrientation((UIScrollBar::eScrollOrientation)value);
}
Exemplo n.º 2
0
int UIListMetadata::GetOrientation()
{
    if (!VerifyActiveParamID())
    {
        return UIList::ORIENTATION_VERTICAL;
    }

    return GetActiveUIList()->GetOrientation();
}
int UIScrollBarMetadata::GetScrollOrientation()
{
    if (!VerifyActiveParamID())
    {
        return UIScrollBar::ORIENTATION_VERTICAL;
    }

    return GetActiveUIScrollBar()->GetOrientation();
}
Exemplo n.º 4
0
void UIListMetadata::SetOrientation(int value)
{
    if (!VerifyActiveParamID())
    {
        return;
    }	
    
	UpdateListCellSize(GetActiveUIList()->GetRect(), (UIList::eListOrientation)value);
	GetActiveUIList()->SetOrientation((UIList::eListOrientation)value);	
}
void UISwitchMetadata::SetIsLeftSelected(const bool value)
{
	UISwitch* activeSwitch = this->GetActiveUISwitch();
	if (!activeSwitch || !VerifyActiveParamID())
	{
		return;
	}
    
    activeSwitch->SetIsLeftSelected(value);
}
bool UISwitchMetadata::GetIsLeftSelected()
{
	UISwitch* activeSwitch = this->GetActiveUISwitch();
	if (!activeSwitch || !VerifyActiveParamID())
	{
		return false;
	}

    return activeSwitch->GetIsLeftSelected();
}
Exemplo n.º 7
0
int UIListMetadata::GetAggregatorID()
{
    if (!VerifyActiveParamID())
    	return HierarchyTreeNode::HIERARCHYTREENODEID_EMPTY;

	EditorListDelegate *editorList = (EditorListDelegate *)GetActiveUIList()->GetDelegate();	
	if (!editorList)
		return HierarchyTreeNode::HIERARCHYTREENODEID_EMPTY;

	return editorList->GetAggregatorID();
}
Exemplo n.º 8
0
void UIListMetadata::SetAggregatorID(int value)
{
	if (!VerifyActiveParamID())
    	return;

	EditorListDelegate *editorList = (EditorListDelegate *)GetActiveUIList()->GetDelegate();
	if (!editorList)
		return;

	editorList->SetAggregatorID(value);
	GetActiveUIList()->Refresh();
}