Enums

Details

class Handy.CenteringPolicy(value)

Bases: GObject.GEnum

Describes title centering behavior of a [class`HeaderBar`] widget.

New in version 1.0.

LOOSE = 0

Keep the title centered when possible

STRICT = 1

Keep the title centered at all cost

class Handy.ColorScheme(value)

Bases: GObject.GEnum

Application color schemes for [property`StyleManager`:py:data::color-scheme<Handy.ColorScheme.props.color_scheme>].

New in version 1.6.

DEFAULT = 0

Inherit the parent color-scheme. When set on the [class`StyleManager`] returned by [func`StyleManager`.get_default], it’s equivalent to HDY_COLOR_SCHEME_FORCE_LIGHT.

FORCE_LIGHT = 1

Always use light appearance.

PREFER_LIGHT = 2

Use light appearance unless the system prefers dark colors.

PREFER_DARK = 3

Use dark appearance unless the system prefers light colors.

FORCE_DARK = 4

Always use dark appearance.

class Handy.DeckTransitionType(value)

Bases: GObject.GEnum

Describes the possible transitions in a [class`Deck`] widget.

New values may be added to this enumeration over time.

New in version 1.0.

OVER = 0

Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order

UNDER = 1

Uncover the new page or cover the old page, sliding from or towards the start according to orientation, text direction and children order

SLIDE = 2

Slide from left, right, up or down according to the orientation, text direction and the children order

class Handy.FlapFoldPolicy(value)

Bases: GObject.GEnum

Describes the possible folding behavior of a [class`Flap`] widget.

New in version 1.2.

NEVER = 0

Disable folding, the flap cannot reach narrow sizes.

ALWAYS = 1

Keep the flap always folded.

AUTO = 2

Fold and unfold the flap based on available space.

class Handy.FlapTransitionType(value)

Bases: GObject.GEnum

Describes transitions types of a [class`Flap`] widget.

These enumeration values describe the possible transitions between children in a [class`Flap`] widget, as well as which areas can be swiped via [property`Flap`:py:data::swipe-to-open<Handy.FlapTransitionType.props.swipe_to_open>] and [property`Flap`:py:data::swipe-to-close<Handy.FlapTransitionType.props.swipe_to_close>].

New values may be added to this enum over time.

New in version 1.2.

OVER = 0

The flap slides over the content, which is dimmed. When folded, only the flap can be swiped.

UNDER = 1

The content slides over the flap. Only the content can be swiped.

SLIDE = 2

The flap slides offscreen when hidden, neither the flap nor content overlap each other. Both widgets can be swiped.

class Handy.HeaderGroupChildType(value)

Bases: GObject.GEnum

Describes the child types handled by [class`HeaderGroup`].

New values may be added to this enumeration over time.

New in version 1.0.

HEADER_BAR = 0

The child is a [class`HeaderBar`]

GTK_HEADER_BAR = 1

The child is a [class`Gtk`.HeaderBar]

HEADER_GROUP = 2

The child is a [class`HeaderGroup`]

class Handy.LeafletTransitionType(value)

Bases: GObject.GEnum

Describes the possible transitions in a [class`Leaflet`] widget.

New values may be added to this enumeration over time.

New in version 1.0.

OVER = 0

Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order

UNDER = 1

Uncover the new page or cover the old page, sliding from or towards the start according to orientation, text direction and children order

SLIDE = 2

Slide from left, right, up or down according to the orientation, text direction and the children order

class Handy.NavigationDirection(value)

Bases: GObject.GEnum

Describes the direction of a swipe navigation gesture.

New in version 1.0.

BACK = 0

Corresponds to start or top, depending on orientation and text direction

FORWARD = 1

Corresponds to end or bottom, depending on orientation and text direction

class Handy.SqueezerTransitionType(value)

Bases: GObject.GEnum

Describes the possible transitions in a [class`Squeezer`] widget.

New in version 1.0.

NONE = 0

No transition

CROSSFADE = 1

A cross-fade

class Handy.ViewSwitcherPolicy(value)

Bases: GObject.GEnum

Describes the adaptive modes of [class`ViewSwitcher`].

New in version 1.0.

AUTO = 0

Automatically adapt to the best fitting mode

NARROW = 1

Force the narrow mode

WIDE = 2

Force the wide mode