public ManagedGtkNSViewHostControl(ICocoaTextViewHost textViewHost)
            {
                if (textViewHost == null)
                {
                    throw new ArgumentNullException(nameof(textViewHost));
                }

                GtkView = new Gtk.GtkNSViewHost(textViewHost.HostControl);
                GtkView.Show();
            }
Esempio n. 2
0
        public CustomMacPanedHandle(Gtk.Paned parent) : base(parent)
        {
            VisibleWindow = false;
            HPanedThin.InitStyle(parent, 1);
            horizontal = parent is HPanedThin;

            handle = new MacPanedHandleView(parent);
            host   = new Gtk.GtkNSViewHost(handle, NSWindowOrderingMode.Above);

            GrabAreaSize = HandleGrabWidth;

            Add(host);
            host.Show();
        }
Esempio n. 3
0
 protected override void OnDestroyed()
 {
     host   = null;
     handle = null;
     base.OnDestroyed();
 }