Exemple #1
0
        void getLevelCoords(ref Vector levelCenter,
                            ref GraphicsUtil.TextPosition titlePosition,
                            ref GraphicsUtil.TextPosition valuePosition,
                            ref Vector dim)
        {
            switch (_levelType)
            {
            case RTLevelType.Off:
                dim = Vector.Zero;
                break;

            case RTLevelType.LinearH:
            case RTLevelType.LinearV:
            case RTLevelType.Rotary:
                dim = Vector.V(displaySize) * scale;
                break;
            }
            GraphicsUtil.TextAlignment ta = _titlePos;
            if ((_title == null) || (_title.Length < 1))
            {
                ta = GraphicsUtil.TextAlignment.off;
            }
            GraphicsUtil.tripleSplit(ClientSize, _displaySize, scale, ref levelCenter, ref titlePosition, ta, ref valuePosition, _valuePos);
        }