ClapperGtk.TitleLabel¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ClapperGtk.TitleLabel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A label showing an up to date title of media item.
By default
ClapperGtk.TitleLabel
will automatically show title of [property`Clapper`.Queue:current-item] when placed within [class`ClapperGtk`.Video] widget hierarchy.Setting [property`ClapperGtk`.TitleLabel:media-item] property will make it show title of that particular [class`Clapper`.MediaItem] instead. Providing an item to read title from also allows using this [class`Gtk`.Widget] outside of [class`ClapperGtk`.Video].
- classmethod new()¶
- Returns:
a new title label
Gtk.Widget
.- Return type:
Creates a new
ClapperGtk.TitleLabel
instance.
- get_current_title()¶
- Returns:
text of title label.
- Return type:
Get currently displayed title by self.
- get_fallback_to_uri()¶
-
Get whether a [property`Clapper`.MediaItem:uri] property is going be displayed as a label text when no other title could be determined.
- get_media_item()¶
- Returns:
currently set media item.
- Return type:
Get currently set media item to display title of.
- set_fallback_to_uri(enabled)¶
- Parameters:
enabled (
bool
) – whether enabled
Set whether a [property`Clapper`.MediaItem:uri] property should be displayed as a label text when no other title could be determined.
- set_media_item(item)¶
- Parameters:
item (
Clapper.MediaItem
orNone
) – aClapper.MediaItem
Set a media item to display title of as label. When set to
None
, self will use default behavior (showing title of current queue item).
Property Details¶
- ClapperGtk.TitleLabel.props.current_title¶
- Name:
current-title
- Type:
- Default Value:
- Flags:
Currently displayed title.
- ClapperGtk.TitleLabel.props.fallback_to_uri¶
- Name:
fallback-to-uri
- Type:
- Default Value:
- Flags:
When title cannot be determined, show URI instead.
- ClapperGtk.TitleLabel.props.media_item¶
- Name:
media-item
- Type:
- Default Value:
- Flags:
Currently set media item to display title of.