Dazzle.SuggestionPopover

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.SuggestionPopover Dazzle.SuggestionPopover GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Window Gtk.Window Gtk.Bin->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container Gtk.Window->Dazzle.SuggestionPopover

Subclasses:

None

Methods

Inherited:

Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

activate_selected ()

get_model ()

get_relative_to ()

get_selected ()

move_by (amount)

popdown ()

popup ()

set_model (model)

set_relative_to (widget)

set_selected (suggestion)

Virtual Methods

Inherited:

Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

model

Dazzle.Suggestion

r/w/en

The model to be visualized

relative-to

Gtk.Widget

r/w/en

The widget to be relative to

selected

Dazzle.Suggestion

r/w

The selected suggestion

subtitle-ellipsize

Pango.EllipsizeMode

r/w

How to use ellipsis with subtitle

title-ellipsize

Pango.EllipsizeMode

r/w

How to use ellipsis with title

Style Properties

Inherited:

Gtk.Window (2), Gtk.Widget (17)

Signals

Inherited:

Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

suggestion-activated

Fields

Inherited:

Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class Dazzle.SuggestionPopover(*args, **kwargs)
Bases:

Gtk.Window

Abstract:

No

Structure:

Dazzle.SuggestionPopoverClass

classmethod new()
Return type:

Gtk.Widget

activate_selected()
get_model()
Returns:

A Gio.ListModel or None.

Return type:

Gio.ListModel or None

Gets the model being visualized.

get_relative_to()
Returns:

A Gtk.Widget or None.

Return type:

Gtk.Widget or None

get_selected()
Returns:

An Dazzle.Suggestion or None.

Return type:

Dazzle.Suggestion or None

Gets the currently selected suggestion.

move_by(amount)
Parameters:

amount (int) –

popdown()
popup()
set_model(model)
Parameters:

model (Gio.ListModel) –

set_relative_to(widget)
Parameters:

widget (Gtk.Widget) –

set_selected(suggestion)
Parameters:

suggestion (Dazzle.Suggestion) –

Signal Details

Dazzle.SuggestionPopover.signals.suggestion_activated(suggestion_popover, object)
Signal Name:

suggestion-activated

Flags:

RUN_LAST

Parameters:

Property Details

Dazzle.SuggestionPopover.props.model
Name:

model

Type:

Dazzle.Suggestion

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The model to be visualized

Dazzle.SuggestionPopover.props.relative_to
Name:

relative-to

Type:

Gtk.Widget

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The widget to be relative to

Dazzle.SuggestionPopover.props.selected
Name:

selected

Type:

Dazzle.Suggestion

Default Value:

None

Flags:

READABLE, WRITABLE

The selected suggestion

Dazzle.SuggestionPopover.props.subtitle_ellipsize
Name:

subtitle-ellipsize

Type:

Pango.EllipsizeMode

Default Value:

Pango.EllipsizeMode.END

Flags:

READABLE, WRITABLE

How to use ellipsis with subtitle

Dazzle.SuggestionPopover.props.title_ellipsize
Name:

title-ellipsize

Type:

Pango.EllipsizeMode

Default Value:

Pango.EllipsizeMode.END

Flags:

READABLE, WRITABLE

How to use ellipsis with title