Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ListHeader

[15:7] extends: object

Used by list widgets to represent the headers they display. GtkListHeader objects are managed just like [class@Gtk.ListItem] objects via their factory, but provide a different set of properties suitable for managing the header instead of individual items.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • ListHeader (Handle = null)

    Creates a new ListHeader 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.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setChild (object Value)

    Widget used for display.

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

    Gets the child previously set via gtk_list_header_set_child() or %NULL if none was set.

  • get_end ()

    Gets the end position in the model of the section that @self is currently the header for. If @self is unbound, %GTK_INVALID_LIST_POSITION is returned.

  • get_item ()

    Gets the model item at the start of the section. This is the item that occupies the list model at position [property@Gtk.ListHeader:start]. If

    • @self is unbound, this function returns %NULL.
  • get_n_items ()

    Gets the the number of items in the section. If @self is unbound, 0 is returned.

  • get_start ()

    Gets the start position in the model of the section that @self is currently the header for. If @self is unbound, %GTK_INVALID_LIST_POSITION is returned.

  • set_child (object child)

    Sets the child to be used for this listitem. This function is typically called by applications when setting up a header so that the widget can be reused when binding it multiple times.

    • @p child is The list item's child or %NULL to unset.
    • @r None.

class: ListHeaderMeta

[196:14] static extends: object

Generated metadata helpers for ListHeader class surfaces.

Methods

  • properties ()

    Returns property metadata for ListHeader.

    • @r A list.