protected override void OnRealized() { SetFlag(WidgetFlags.Realized); GdkWindow = ParentWindow; base.OnRealized(); WindowAttr attr = WindowAttr.Zero; attr.WindowType = Gdk.WindowType.Child; attr.X = action.X; attr.Y = action.Y; attr.Width = action.Width; attr.Height = action.Height; attr.Wclass = WindowClass.InputOnly; attr.EventMask = (int)Events; attr.EventMask |= (int)(EventMask.ButtonPressMask | EventMask.KeyPressMask | EventMask.KeyReleaseMask | EventMask.ButtonReleaseMask | EventMask.PointerMotionMask); event_window = new Gdk.Window(GdkWindow, attr, (int)(WindowAttributesType.X | WindowAttributesType.Y)); event_window.UserData = this.Handle; }
// Methods protected override void OnRealized() { WidgetFlags |= WidgetFlags.Realized; WindowAttr attributes = default(WindowAttr); attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Height = Allocation.Height; attributes.Width = Allocation.Width; attributes.WindowType = Gdk.WindowType.Child; attributes.Wclass = WindowClass.InputOutput; attributes.Visual = Visual; attributes.TypeHint = (WindowTypeHint)100; attributes.Colormap = Colormap; attributes.EventMask = (int)(Events | EventMask.ExposureMask | EventMask.Button1MotionMask | EventMask.ButtonPressMask | EventMask.ButtonReleaseMask | EventMask.KeyPressMask | EventMask.KeyReleaseMask); WindowAttributesType attributes_mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Colormap | WindowAttributesType.Visual; GdkWindow = new Gdk.Window(ParentWindow, attributes, (int)attributes_mask); GdkWindow.UserData = Handle; Style = Style.Attach(GdkWindow); Style.SetBackground(GdkWindow, State); WidgetFlags &= ~WidgetFlags.NoWindow; NSView nSView = GtkMacInterop.GetNSView(this); nSView.RemoveFromSuperview(); embedParent.AddSubview(nSView); nSView.Frame = new CGRect(0, 0, embedParent.Frame.Width, embedParent.Frame.Height); }
protected override void OnRealized() { base.OnRealized(); WindowAttr attributes = new WindowAttr(); attributes.WindowType = Gdk.WindowType.Child; attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Width = Allocation.Width; attributes.Height = Allocation.Height; attributes.Wclass = WindowClass.InputOnly; attributes.EventMask = (int)( EventMask.PointerMotionMask | EventMask.ButtonPressMask | EventMask.ButtonReleaseMask | EventMask.EnterNotifyMask | EventMask.LeaveNotifyMask | EventMask.ExposureMask); WindowAttributesType attributes_mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Wmclass; event_window = new Gdk.Window(GdkWindow, attributes, attributes_mask); event_window.UserData = Handle; AllocateChild(); QueueResize(); }
protected override void OnRealized() { WidgetFlags |= WidgetFlags.Realized | WidgetFlags.NoWindow; GdkWindow = Parent.GdkWindow; cell_context.Drawable = GdkWindow; WindowAttr attributes = new WindowAttr(); attributes.WindowType = Gdk.WindowType.Child; attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Width = Allocation.Width; attributes.Height = Allocation.Height; attributes.Wclass = WindowClass.InputOnly; attributes.EventMask = (int)( EventMask.PointerMotionMask | EventMask.KeyPressMask | EventMask.KeyReleaseMask | EventMask.ButtonPressMask | EventMask.ButtonReleaseMask | EventMask.LeaveNotifyMask | EventMask.ExposureMask); WindowAttributesType attributes_mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Wmclass; event_window = new Gdk.Window(GdkWindow, attributes, attributes_mask); event_window.UserData = Handle; OnDragSourceSet(); MoveResize(Allocation); base.OnRealized(); }
protected override void OnRealized() { DebugHelper.WriteLine("OnRealized"); SetFlag(WidgetFlags.Realized); Gdk.WindowAttr attributes = new WindowAttr(); attributes.WindowType = Gdk.WindowType.Toplevel; attributes.X = this.Allocation.X; attributes.Y = this.Allocation.Y; attributes.Width = this.Allocation.Width; attributes.Height = this.Allocation.Height; attributes.Wclass = WindowClass.InputOutput; attributes.Visual = this.Visual; attributes.Colormap = this.Colormap; attributes.EventMask = (int)this.Events; attributes.EventMask |= (int)(Gdk.EventMask.AllEventsMask); this.GdkWindow = new Gdk.Window(this.ParentWindow, attributes, (Gdk.WindowAttributesType.X | Gdk.WindowAttributesType.Y | Gdk.WindowAttributesType.Visual | Gdk.WindowAttributesType.Colormap)); this.GdkWindow.UserData = this.Handle; this.Style.Attach(this.GdkWindow); this.Style.SetBackground(this.GdkWindow, StateType.Normal); ParentWindow.Events = (Gdk.EventMask)(GdkEventMask.StructureNotifyMask | GdkEventMask.SubstructureNotifyMask); }
protected override void OnRealized() { base.OnRealized(); WindowAttr attributes = new WindowAttr(); attributes.WindowType = Gdk.WindowType.Child; attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Width = Allocation.Width; attributes.Height = Allocation.Height; attributes.Wclass = WindowClass.InputOutput; attributes.Visual = Visual; attributes.Colormap = Colormap; attributes.EventMask = (int)Events; attributes.EventMask = attributes.EventMask | ((int)Gdk.EventMask.ExposureMask | (int)Gdk.EventMask.KeyPressMask | (int)Gdk.EventMask.KeyReleaseMask | (int)Gdk.EventMask.EnterNotifyMask | (int)Gdk.EventMask.LeaveNotifyMask | (int)Gdk.EventMask.StructureMask | (int)Gdk.EventMask.FocusChangeMask); GdkWindow = new Gdk.Window(ParentWindow, attributes, Gdk.WindowAttributesType.X | Gdk.WindowAttributesType.Y | Gdk.WindowAttributesType.Colormap | Gdk.WindowAttributesType.Visual); GdkWindow.UserData = this.Handle; Style = Style.Attach(GdkWindow); Style.Background(StateType.Normal); browser.Load(this.Handle, width, height); }
/// <summary> /// Called when the window is realized (shown). /// </summary> protected override void OnRealized() { WidgetFlags |= WidgetFlags.Realized; var attributes = new WindowAttr(); attributes.WindowType = WindowType.Child; attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Width = Allocation.Width; attributes.Height = Allocation.Height; attributes.Wclass = WindowClass.InputOutput; attributes.Visual = Visual; attributes.Colormap = Colormap; attributes.EventMask = (int)(Events | EventMask.ExposureMask); attributes.Mask = Events | EventMask.ExposureMask; const WindowAttributesType mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Colormap | WindowAttributesType.Visual; GdkWindow = new Window(ParentWindow, attributes, mask); GdkWindow.UserData = Raw; Style = Style.Attach(GdkWindow); WidgetFlags &= ~WidgetFlags.NoWindow; }
protected override void OnRealized() { WindowAttr attributes = new WindowAttr(); WindowAttributesType attributes_mask; this.SetFlag(Gtk.WidgetFlags.Realized); attributes.WindowType = Gdk.WindowType.Child; attributes.X = this.Allocation.X; attributes.Y = this.Allocation.Y; attributes.Width = this.Allocation.Width; attributes.Height = this.Allocation.Height; attributes.Wclass = WindowClass.InputOutput; attributes.Visual = this.Visual; attributes.Colormap = this.Colormap; attributes.EventMask = (int) (Gdk.EventMask.VisibilityNotifyMask | Gdk.EventMask.ExposureMask | Gdk.EventMask.ScrollMask | Gdk.EventMask.PointerMotionMask | Gdk.EventMask.ButtonPressMask | Gdk.EventMask.ButtonReleaseMask | Gdk.EventMask.KeyPressMask | Gdk.EventMask.KeyReleaseMask); attributes_mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Visual | WindowAttributesType.Colormap; this.GdkWindow = new Gdk.Window(this.ParentWindow, attributes, attributes_mask); this.GdkWindow.UserData = this.Handle; this.Style.Attach(this.GdkWindow); this.GdkWindow.SetBackPixmap(null, false); this.Style.SetBackground(this.GdkWindow, StateType.Normal); foreach (Crumb crumb in this.m_Crumbs) { this.PrepareCrumb(crumb); } }
protected override void OnRealized() { WidgetFlags |= WidgetFlags.Realized | WidgetFlags.NoWindow; GdkWindow = Parent.GdkWindow; WindowAttr attributes = new WindowAttr(); attributes.WindowType = WindowType.Child; attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Width = Allocation.Width; attributes.Height = Allocation.Height; attributes.Wclass = WindowClass.InputOnly; attributes.EventMask = (int)(EventMask.ButtonPressMask | EventMask.ButtonReleaseMask | EventMask.ButtonMotionMask); const WindowAttributesType attributesMask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Wmclass; eventWindow = new Window(GdkWindow, attributes, attributesMask); eventWindow.UserData = Handle; base.OnRealized(); }
protected override void OnRealized() { WidgetFlags |= WidgetFlags.Realized; WindowAttr attributes = new WindowAttr() { WindowType = Gdk.WindowType.Child, X = Allocation.X, Y = Allocation.Y, Width = Allocation.Width, Height = Allocation.Height, Wclass = WindowClass.InputOutput, Visual = this.Visual, Colormap = this.Colormap, EventMask = (int)(this.Events | Gdk.EventMask.ExposureMask), Mask = this.Events | Gdk.EventMask.ExposureMask, }; WindowAttributesType mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Colormap | WindowAttributesType.Visual; GdkWindow = new Gdk.Window(ParentWindow, attributes, mask); GdkWindow.UserData = Raw; Style = Style.Attach(GdkWindow); }
protected override void OnRealized() { IsRealized = true; HasWindow = false; Window = Parent.Window; WindowAttr attributes = new WindowAttr(); attributes.WindowType = Gdk.WindowType.Child; attributes.X = Allocation.X; attributes.Y = Allocation.Y; attributes.Width = Allocation.Width; attributes.Height = Allocation.Height; attributes.Wclass = WindowWindowClass.InputOnly; attributes.EventMask = (int)( EventMask.PointerMotionMask | EventMask.KeyPressMask | EventMask.KeyReleaseMask | EventMask.ButtonPressMask | EventMask.ButtonReleaseMask | EventMask.ScrollMask | EventMask.LeaveNotifyMask | EventMask.ExposureMask); WindowAttributesType attributes_mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Wmclass; event_window = new Gdk.Window(Window, attributes, attributes_mask); event_window.UserData = Handle; OnDragSourceSet(); MoveResize(Allocation); base.OnRealized(); }