public TouchText(string text) { this.text = text; font = new MyFont(); alignment = TouchAlignment.Left; orientation = TouchOrientation.Horizontal; textWrap = TouchTextWrap.WordWrap; unitOfMeasurement = UnitsOfMeasurement.None; }
public TouchButton() { Visible = true; VisibleWindow = false; render = new TouchText(); buttonColor = "pri"; unmodifiedColor = "pri"; text = ""; textColor = "black"; HeightRequest = 45; WidthRequest = 45; textAlignment = TouchAlignment.Center; clickAction = ButtonClickAction.Darken; ExposeEvent += OnExpose; ButtonPressEvent += OnTouchButtonPress; ButtonReleaseEvent += OnTouchButtonRelease; }
public TouchTextBox() { Visible = true; VisibleWindow = false; SetSizeRequest(100, 30); textRender = new TouchText(); textRender.textWrap = TouchTextWrap.Shrink; text = string.Empty; name = string.Empty; textColor = new TouchColor("black"); textAlignment = TouchAlignment.Left; backgroundColor = "grey4"; enableTouch = false; includeTimeFunctions = false; ExposeEvent += OnExpose; ButtonReleaseEvent += OnTouchButtonRelease; }