Exemplo n.º 1
0
 public TouchText(string text)
 {
     this.text         = text;
     font              = new MyFont();
     alignment         = TouchAlignment.Left;
     orientation       = TouchOrientation.Horizontal;
     textWrap          = TouchTextWrap.WordWrap;
     unitOfMeasurement = UnitsOfMeasurement.None;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }