Interface

Gtk-3.0GtkCellLayoutInterface

Interface for implementing CellLayout. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_add_attribute(
        cell: Gtk.CellRenderer,
        attribute: string,
        column: number,
    ): void;
    vfunc_clear(): void;
    vfunc_clear_attributes(cell: Gtk.CellRenderer): void;
    vfunc_get_area(): Gtk.CellArea;
    vfunc_get_cells(): Gtk.CellRenderer[];
    vfunc_pack_end(cell: Gtk.CellRenderer, expand: boolean): void;
    vfunc_pack_start(cell: Gtk.CellRenderer, expand: boolean): void;
    vfunc_reorder(cell: Gtk.CellRenderer, position: number): void;
    vfunc_set_cell_data_func(
        cell: Gtk.CellRenderer,
        func?: Gtk.CellLayoutDataFunc,
    ): void;
}

Hierarchy (View Summary)

Index

Methods

  • Adds an attribute mapping to the list in cell_layout.

    The column is the column of the model to get a value from, and the attribute is the parameter on cell to be set from the value. So for example if column 2 of the model contains strings, you could have the “text” attribute of a Gtk.CellRendererText get its values from column 2.

    Parameters

    • cell: Gtk.CellRenderer
    • attribute: string

      an attribute on the renderer

    • column: number

      the column position on the model to get the attribute from

    Returns void

  • Unsets all the mappings on all renderers on cell_layout and removes all renderers from cell_layout.

    Returns void

  • Adds the cell to the end of cell_layout. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is true.

    Note that reusing the same cell renderer is not supported.

    Parameters

    Returns void

  • Packs the cell into the beginning of cell_layout. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is true.

    Note that reusing the same cell renderer is not supported.

    Parameters

    Returns void