public override CellEditable StartEditing(Gdk.Event evnt, Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, CellRendererState flags) { System.Console.WriteLine("CR.StartEditing(Editable={0})", Editable); if (Editable == false) { return(null); } // return base.StartEditing (evnt, widget, path, background_area, cell_area, flags); CellEditableImplementor wdg = (CellEditableImplementor)adapter.Implementor; // (wdg as DateEntry).DoubleBuffered = true; (wdg as DateEntry).CellRendererWindow = widget.GdkWindow; System.Console.WriteLine("TYpe={0}", (wdg as DateEntry).CellRendererWindow.GetType()); // CellEditEntry text = new CellEditEntry(); // text.EditingDone += OnEditDone; // text.Text = source.Name; // text.path = path; if (TypeValidator.IsCompatible(wdg.GetType(), typeof(Gtk.Widget)) == true) { (wdg as Gtk.Widget).Show(); } // view.EditingRow = true; return(adapter); }
public static Gdk.Seat GetSeat(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_get_seat(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.Seat ret = GLib.Object.GetObject(raw_ret) as Gdk.Seat; return(ret); }
public static Gdk.Device GetSourceDevice(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_get_source_device(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.Device ret = GLib.Object.GetObject(raw_ret) as Gdk.Device; return(ret); }
public static bool GetButton(Gdk.Event evnt, out uint button) { bool raw_ret = gdk_event_get_button(evnt == null ? IntPtr.Zero : evnt.Handle, out button); bool ret = raw_ret; return(ret); }
public static bool GetCoords(Gdk.Event evnt, out double x_win, out double y_win) { bool raw_ret = gdk_event_get_coords(evnt == null ? IntPtr.Zero : evnt.Handle, out x_win, out y_win); bool ret = raw_ret; return(ret); }
public static Gdk.Event New(Gdk.EventType type) { IntPtr raw_ret = gdk_event_new((int)type); Gdk.Event ret = Gdk.Event.GetEvent(raw_ret); return(ret); }
public static bool TriggersContextMenu(Gdk.Event evnt) { bool raw_ret = gdk_event_triggers_context_menu(evnt == null ? IntPtr.Zero : evnt.Handle); bool ret = raw_ret; return(ret); }
public static bool GetKeycode(Gdk.Event evnt, out ushort keycode) { bool raw_ret = gdk_event_get_keycode(evnt == null ? IntPtr.Zero : evnt.Handle, out keycode); bool ret = raw_ret; return(ret); }
public static bool GetKeyval(Gdk.Event evnt, out uint keyval) { bool raw_ret = gdk_event_get_keyval(evnt == null ? IntPtr.Zero : evnt.Handle, out keyval); bool ret = raw_ret; return(ret); }
public static Gdk.Event Copy(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_copy(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.Event ret = Gdk.Event.GetEvent(raw_ret); return(ret); }
public static Gdk.EventType GetEventType(Gdk.Event evnt) { int raw_ret = gdk_event_get_event_type(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.EventType ret = (Gdk.EventType)raw_ret; return(ret); }
public static Gdk.EventSequence GetEventSequence(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_get_event_sequence(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.EventSequence ret = raw_ret == IntPtr.Zero ? null : (Gdk.EventSequence)GLib.Opaque.GetOpaque(raw_ret, typeof(Gdk.EventSequence), false); return(ret); }
public static Gdk.DeviceTool GetDeviceTool(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_get_device_tool(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.DeviceTool ret = GLib.Object.GetObject(raw_ret) as Gdk.DeviceTool; return(ret); }
private void ReleaseGrab(Gdk.Event evnt) { uint event_time; if (evnt is Gdk.EventKey) { event_time = ((Gdk.EventKey)evnt).Time; } else if (evnt is Gdk.EventButton) { event_time = ((Gdk.EventButton)evnt).Time; } else { throw new ApplicationException("ShowDock expects EventKey or EventButton"); } Display.KeyboardUngrab(event_time); Display.PointerUngrab(event_time); Gtk.Grab.Remove(dock); dock.Hide(); timeout = false; if (evnt is Gdk.EventButton) { Gdk.EventButton evnt_copy = (Gdk.EventButton)Gdk.EventHelper.Copy(evnt); UpdateEventButton(evnt_copy, GdkWindow, Gdk.EventType.ButtonRelease); ProcessEvent(evnt_copy); Gdk.EventHelper.Free(evnt_copy); } }
public static Gdk.Window GetWindow(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_get_window(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.Window ret = GLib.Object.GetObject(raw_ret) as Gdk.Window; return(ret); }
public static bool GetPointerEmulated(Gdk.Event evnt) { bool raw_ret = gdk_event_get_pointer_emulated(evnt == null ? IntPtr.Zero : evnt.Handle); bool ret = raw_ret; return(ret); }
public static bool IsScrollStopEvent(Gdk.Event evnt) { bool raw_ret = gdk_event_is_scroll_stop_event(evnt == null ? IntPtr.Zero : evnt.Handle); bool ret = raw_ret; return(ret); }
public static int GetScancode(Gdk.Event evnt) { int raw_ret = gdk_event_get_scancode(evnt == null ? IntPtr.Zero : evnt.Handle); int ret = raw_ret; return(ret); }
public static Gdk.Event Get() { IntPtr raw_ret = gdk_event_get(); Gdk.Event ret = Gdk.Event.GetEvent(raw_ret); return(ret); }
public static Gdk.Screen GetScreen(Gdk.Event evnt) { IntPtr raw_ret = gdk_event_get_screen(evnt == null ? IntPtr.Zero : evnt.Handle); Gdk.Screen ret = GLib.Object.GetObject(raw_ret) as Gdk.Screen; return(ret); }
public static bool GetAxis(Gdk.Event evnt, Gdk.AxisUse axis_use, out double value) { bool raw_ret = gdk_event_get_axis(evnt == null ? IntPtr.Zero : evnt.Handle, (int)axis_use, out value); bool ret = raw_ret; return(ret); }
public static bool GetScrollDeltas(Gdk.Event evnt, out double delta_x, out double delta_y) { bool raw_ret = gdk_event_get_scroll_deltas(evnt == null ? IntPtr.Zero : evnt.Handle, out delta_x, out delta_y); bool ret = raw_ret; return(ret); }
public static bool GetClickCount(Gdk.Event evnt, out uint click_count) { bool raw_ret = gdk_event_get_click_count(evnt == null ? IntPtr.Zero : evnt.Handle, out click_count); bool ret = raw_ret; return(ret); }
public static uint GetTime(Gdk.Event evnt) { uint raw_ret = gdk_event_get_time(evnt == null ? IntPtr.Zero : evnt.Handle); uint ret = raw_ret; return(ret); }
public static bool GetDistance(Gdk.Event event1, Gdk.Event event2, out double distance) { bool raw_ret = gdk_events_get_distance(event1 == null ? IntPtr.Zero : event1.Handle, event2 == null ? IntPtr.Zero : event2.Handle, out distance); bool ret = raw_ret; return(ret); }
public static Gtk.Widget GetEventWidget(Gdk.Event evnt) { IntPtr raw_ret = gtk_get_event_widget(evnt == null ? IntPtr.Zero : evnt.Handle); Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget; return(ret); }
public static bool GetCenter(Gdk.Event event1, Gdk.Event event2, out double x, out double y) { bool raw_ret = gdk_events_get_center(event1 == null ? IntPtr.Zero : event1.Handle, event2 == null ? IntPtr.Zero : event2.Handle, out x, out y); bool ret = raw_ret; return(ret); }
protected override bool OnDeleteEvent(Gdk.Event evnt) { // When the user clicks [x] to close the window, this override causes it // to be hidden instead, so that we can call show() again later. this.Hide(); return(true); }
protected override void OnIconPress(EntryIconPosition icon_pos, Gdk.Event evnt) { var evnt_button = evnt as Gdk.EventButton; if (evnt_button == null) { return; } if (evnt_button.Button != 1) { return; } HasFocus = true; if (icon_pos == EntryIconPosition.Primary) { ShowMenu(evnt_button.Time); } else if (icon_pos == EntryIconPosition.Secondary) { active_filter_id = 0; Text = String.Empty; } }
public Gdk.Event GetLastEvent(Gdk.EventSequence sequence) { IntPtr raw_ret = gtk_gesture_get_last_event(Handle, sequence == null ? IntPtr.Zero : sequence.Handle); Gdk.Event ret = Gdk.Event.GetEvent(raw_ret); return(ret); }
private void HandleClickedBtnClose(object sender, EventArgs e) { GdkEventAny se = new GdkEventAny (); se.Type = Gdk.EventType.Delete; se.Window = this.GdkWindow; se.SendEvent = true; IntPtr ptr = GLib.Marshaller.StructureToPtrAlloc (se); Gdk.Event evnt = new Gdk.Event (ptr); Gdk.EventHelper.Put (evnt); }