public virtual void SetDisplaySizeAndScale(G__DisplaySizeLevels _displaySizeLevel)
        {
            this.DisplaySizeLevel = _displaySizeLevel;
            var x = G__DisplaySizeLevel.GetDisplaySizeScale(_displaySizeLevel);

            this._scaleFactor = new CGSize(x, x);
        }
Beispiel #2
0
        public override void SetDisplaySizeAndScale(G__DisplaySizeLevels _displaySizeLevel)
        {
            base.SetDisplaySizeAndScale(_displaySizeLevel);

            var a = this._scaleFactor.Width;

            this.CurrentWidth  = (int)Math.Round((this.CurrentWidth * a), 0);
            this.CurrentHeight = (int)Math.Round((this.CurrentHeight * a), 0);
        }
Beispiel #3
0
        public static float GetDisplayFontSize(G__DisplaySizeLevels x)
        {
            // Try to get the result in the static Dictionary
            float result;

            if (_dictFont.TryGetValue((int)x, out result))
            {
                return(result);
            }
            else
            {
                return(22.0f);
            }
        }
Beispiel #4
0
 public iOSNumberDimensions(G__DisplaySizeLevels size, IAspyGlobals iOSGlobals)
 {
     this._size       = size;
     this._iOSGlobals = iOSGlobals;
     this.Initialize();
 }
Beispiel #5
0
        // TODO : Do this to all font size settings

        public UIFont PkViewLabelFont(G__DisplaySizeLevels size)
        {
            var x = G__DisplaySizeLevel.GetDisplayFontSize(size);

            return(UIFont.FromName(this._pkviewlabelfontname, x));
        }
 public ResizeEventArgs(G__DisplaySizeLevels numberDisplaySize)
 {
     this._activated         = true;
     this._numberDisplaySize = numberDisplaySize;
 }
Beispiel #7
0
 public void ChangeDisplaySize(G__DisplaySizeLevels numberlabeldisplaysize)
 {
 }