Interface

Gtk-4.0GtkEditableNamespace

interface EditableNamespace {
    $gtype: GType<Gtk.Editable>;
    prototype: Gtk.Editable;
    delegate_get_property(
        object: GObject.Object,
        prop_id: number,
        value: any,
        pspec: GObject.ParamSpec,
    ): boolean;
    delegate_set_property(
        object: GObject.Object,
        prop_id: number,
        value: any,
        pspec: GObject.ParamSpec,
    ): boolean;
    install_properties(
        object_class: typeof GObject.Object,
        first_prop: number,
    ): number;
    install_properties(...args: never[]): any;
}
Index

Properties

$gtype: GType<Gtk.Editable>
prototype: Gtk.Editable

Methods

  • Overrides the Gtk.Editable properties for class.

    This is a helper function that should be called in class_init, after installing your own properties.

    Note that your class must have "text", "cursor-position", "selection-bound", "editable", "width-chars", "max-width-chars", "xalign" and "enable-undo" properties for this function to work.

    To handle the properties in your set_property and get_property functions, you can either use Gtk.Editable.delegate_set_property and Gtk.Editable.delegate_get_property (if you are using a delegate), or remember the first_prop offset and add it to the values in the Gtk.EditableProperties enumeration to get the property IDs for these properties.

    Parameters

    Returns number

  • Parameters

    • ...args: never[]

    Returns any