Property

StScrollable:hadjustment

since: 14

Declaration

property hadjustment: St.Adjustment [ read, write ]

Description [src]

The horizontal StAdjustment used by the StScrollable.

Implementations should override this property to provide read-write access to the StAdjustment.

JavaScript code may override this as demonstrated below:

export const MyScrollable = GObject.registerClass({
    Properties: {
        'hadjustment': GObject.ParamSpec.override(
            'hadjustment',
            St.Scrollable
        )
    }
}, class MyScrollable extends St.Scrollable {

    get hadjustment() {
        return this._hadjustment || null;
    }

    set hadjustment(adjustment) {
        if (this.hadjustment === adjustment)
            return;

        this._hadjustment = adjustment;
        this.notify('hadjustment');
    }
});
Type: StAdjustment
Available since:14

Flags

Readableyes
Writableyes
Constructno
Construct onlyno