Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellEditableRemovewidgetCallback

[314:7] extends: object

Generated low-level callback wrapper for GIR callback remove-widget.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • CellEditableRemovewidgetCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: CellEditableMeta

[384:14] static extends: object

Generated metadata helpers for CellEditable interface surfaces.

Methods

  • properties ()

    Returns property metadata for CellEditable.

    • @r A list.
  • signals ()

    Returns signal metadata for CellEditable.

    • @r A list.

class: CellEditableEditingdoneCallback

[244:7] extends: object

Generated low-level callback wrapper for GIR callback editing-done.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • CellEditableEditingdoneCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: CellEditable

[15:7] extends: object

Interface for widgets that can be used for editing cells The GtkCellEditable interface must be implemented for widgets to be usable to edit the contents of a GtkTreeView cell. It provides a way to specify how temporary widgets should be configured for editing, get the new value, etc.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CellEditable (Handle = null)

    Creates a new CellEditable by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • connectSignal (string Name, CallbackObj)

    Connects one generated callback wrapper to a named signal.

    • @p Name is the signal name.
    • @p CallbackObj is the generated callback wrapper to connect.
    • @r The connected handler id.
  • disconnectSignalHandler (int HandlerId)

    Disconnects one retained signal handler id.

    • @p HandlerId is the signal handler id to disconnect.
    • @r None.
  • setOnEditingdone (callback Fn, UserData = null)

    This signal is a sign for the cell renderer to update its value from the

    • @cell_editable. Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry emits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect the @cell_editable from signals on the GtkCellRenderer, etc. gtk_cell_editable_editing_done() is a convenience method for emitting GtkCellEditable::editing-done.
    • @p Fn is the Aussom callback.
    • @p Fn is called with (CellEditable Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnRemovewidget (callback Fn, UserData = null)

    This signal is meant to indicate that the cell is finished editing, and the @cell_editable widget is being removed and may subsequently be destroyed. Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the GtkCellEditable::editing-done signal, to give the cell renderer a chance to update the cell's value before the widget is removed. gtk_cell_editable_remove_widget() is a convenience method for emitting GtkCellEditable::remove-widget.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (CellEditable Self).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setEditingcanceled (bool Value)

    Indicates whether editing on the cell has been canceled.

    • @p Value is the new property value.
    • @r None.
  • editing_done ()

    Emits the GtkCellEditable::editing-done signal.

    • @r None.
  • remove_widget ()

    Emits the GtkCellEditable::remove-widget signal.

    • @r None.
  • start_editing (object event)

    Begins editing on a @cell_editable. The GtkCellRenderer for the cell creates and returns a GtkCellEditable from gtk_cell_renderer_start_editing(), configured for the GtkCellRenderer type. gtk_cell_editable_start_editing() can then set up @cell_editable suitably for editing a cell, e.g. making the Esc key emit GtkCellEditable::editing-done. Note that the @cell_editable is created on-demand for the current edit; its lifetime is temporary and does not persist across other edits and/or cells.

    • @p event is The GdkEvent that began the editing process, or %NULL if editing was initiated programmatically.
    • @r None.