Skip to content

API Reference / @gtkx/testing / computeHeadingLevel

Variable: computeHeadingLevel

const computeHeadingLevel: (widget) => number | undefined

Defined in: packages/testing/dist/role-helpers.d.ts:40

Returns the heading or hierarchy level GTK reports for a widget, or undefined when it declares none.

Parameters

widget

Gtk.Widget

The widget to read the level from.

Returns

number | undefined

Released under the MPL-2.0 License.