Class

PurpleBadges

unstable since: 3.0

[]

Description [src]

final class Purple.Badges : GObject.Object
  implements Gio.ListModel {
  /* No available fields */
}

PurpleBadges is a collection of PurpleBadges sorted by their priority. This is intended to be used on PurpleConversationMembers and perhaps elsewhere to display information like “moderator”, “admin”, “broadcaster”, etc. Items with the highest priority will be at the start of the collection.

Available since: 3.0

[]

Ancestors

[]

Implements

[]

Constructors

purple_badges_new

Creates a new badges collection.

unstable since: 3.0

[]

Instance methods

purple_badges_add_badge

Adds badge to badges.

unstable since: 3.0

purple_badges_compare

Compares two badges instances for sorting.

unstable since: 3.0

purple_badges_remove_badge

Removes the badge with an id of id.

unstable since: 3.0

Methods inherited from GObject (43)
Methods inherited from GListModel (5)
[]

Properties

Purple.Badges:item-type

The type of items. See Gio.ListModelInterface.get_item_type.

unstable since: 3.0

Purple.Badges:n-items

The number of items. See Gio.ListModelInterface.get_n_items.

unstable since: 3.0

[]

Signals

Signals inherited from GObject (1)
Signals inherited from GListModel (1)

Class structure