Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellRendererAccel

[16:7] extends: object

Renders a keyboard accelerator in a cell GtkCellRendererAccel displays a keyboard accelerator (i.e. a key combination like Control + a). If the cell renderer is editable, the accelerator can be changed by simply typing the new combination.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • CellRendererAccel ()

    Creates a new GtkCellRendererAccel.

  • 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.
  • asCellRendererText ()

    Wraps this handle as CellRendererText.

    • @r A CellRendererText object.
  • 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.
  • setOnAccelcleared (callback Fn, UserData = null)

    Gets emitted when the user has removed the accelerator.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (CellRendererAccel Self, string Path_string).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • setOnAcceledited (callback Fn, UserData = null)

    Gets emitted when the user has selected a new accelerator.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (CellRendererAccel Self, string Path_string, int Accel_key, string Accel_mods, int Hardware_keycode).
    • @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.

  • setAccelkey (int Value)

    The keyval of the accelerator.

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

    Determines if the edited accelerators are GTK accelerators. If they are, consumed modifiers are suppressed, only accelerators accepted by GTK are allowed, and the accelerators are rendered in the same way as they are in menus.

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

    The modifier mask of the accelerator.

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

    The hardware keycode of the accelerator. Note that the hardware keycode is only relevant if the key does not have a keyval. Normally, the keyboard configuration should assign keyvals to all keys.

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

class: CellRendererAccelAcceleditedCallback

[315:7] extends: object

Generated low-level callback wrapper for GIR callback accel-edited.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • CellRendererAccelAcceleditedCallback (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, path_string, accel_key, accel_mods, hardware_keycode, 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: CellRendererAccelMeta

[386:14] static extends: object

Generated metadata helpers for CellRendererAccel class surfaces.

Methods

  • properties ()

    Returns property metadata for CellRendererAccel.

    • @r A list.
  • signals ()

    Returns signal metadata for CellRendererAccel.

    • @r A list.

class: CellRendererAccelAccelclearedCallback

[245:7] extends: object

Generated low-level callback wrapper for GIR callback accel-cleared.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • CellRendererAccelAccelclearedCallback (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, path_string, 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.