示例#1
0
    void Dimension::setBaseDimension(const BaseDim& dim)
    {
        // release old value, if any.
        if (d_value)  delete d_value;

        d_value = dim.clone();
    }
示例#2
0
    void BaseDim::setOperand(const BaseDim& operand)
    {
        // release old operand, if any.
        if(d_operand) delete d_operand;

        d_operand = operand.clone();
    }
示例#3
0
//----------------------------------------------------------------------------//
void Dimension::setBaseDimension(const BaseDim& dim)
{
    // release old value, if any.
    if (d_value)
        CEGUI_DELETE_AO d_value;

    d_value = dim.clone();
}
示例#4
0
//----------------------------------------------------------------------------//
Dimension::Dimension(const BaseDim& dim, DimensionType type)
{
    d_value = dim.clone();
    d_type = type;
}