public virtual void SetDisplaySizeAndScale(G__DisplaySizeLevels _displaySizeLevel) { this.DisplaySizeLevel = _displaySizeLevel; var x = G__DisplaySizeLevel.GetDisplaySizeScale(_displaySizeLevel); this._scaleFactor = new CGSize(x, x); }
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); }
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); } }
public iOSNumberDimensions(G__DisplaySizeLevels size, IAspyGlobals iOSGlobals) { this._size = size; this._iOSGlobals = iOSGlobals; this.Initialize(); }
// 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; }
public void ChangeDisplaySize(G__DisplaySizeLevels numberlabeldisplaysize) { }