Exemple #1
0
 public StylusSyncPluginImpl(UnoGLControl form, TouchEventAdapter touch, float dpiX, float dpiY)
 {
     _form  = form;
     _touch = touch;
     _dpiX  = dpiX;
     _dpiY  = dpiY;
 }
Exemple #2
0
        public TouchEventAdapter(UnoGLControl form)
        {
            var graphics = form.CreateGraphics();

            StylusSyncPlugin = new StylusSyncPluginImpl(form, this, graphics.DpiX, graphics.DpiY);

            var stylus = new RealTimeStylus(form);

            stylus.MultiTouchEnabled = true;
            stylus.SyncPluginCollection.Add(StylusSyncPlugin);
            stylus.Enabled = true;
        }
 public WinFormsPlatformWindow(UnoGLControl control)
 {
     _control = control;
 }
Exemple #4
0
 public WinFormsGraphicsContext(UnoGLControl control)
 {
     _control = control;
 }