ClapperGtk.SimpleControls

g ClapperGtk.Container ClapperGtk.Container ClapperGtk.SimpleControls ClapperGtk.SimpleControls ClapperGtk.Container->ClapperGtk.SimpleControls GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Widget->ClapperGtk.Container

Subclasses:

None

Methods

Inherited:

ClapperGtk.Container (11), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

get_extra_menu_button ()

get_fullscreenable ()

get_seek_method ()

set_fullscreenable (fullscreenable)

set_seek_method (method)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

ClapperGtk.Container (4), Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

extra-menu-button

ClapperGtk.ExtraMenuButton

r/en

fullscreenable

bool

r/w/en

seek-method

Clapper.PlayerSeekMethod

r/w

Signals

Inherited:

ClapperGtk.Container (1), Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

ClapperGtk.Container (1), Gtk.Widget (13), GObject.Object (1)

Class Details

class ClapperGtk.SimpleControls(**kwargs)
Bases:

ClapperGtk.Container

Abstract:

No

Structure:

ClapperGtk.SimpleControlsClass

A minimalistic playback controls panel widget.

ClapperGtk.SimpleControls is a simple, ready to be used playback controls widget. It is meant to be placed as an overlay (either fading or not) of [class`ClapperGtk`.Video] as-is, providing minimal yet universal playback controls for your app.

If you need a further customized controls, please use individual widgets this widget consists of to build your own controls implementation instead.

classmethod new()
Returns:

a new simple controls Gtk.Widget.

Return type:

Gtk.Widget

Creates a new ClapperGtk.SimpleControls instance.

get_extra_menu_button()
Returns:

ClapperGtk.ExtraMenuButton within simple controls panel.

Return type:

ClapperGtk.ExtraMenuButton

Get [class`ClapperGtk`.ExtraMenuButton] that resides within self.

get_fullscreenable()
Returns:

True when fullscreenable, False otherwise.

Return type:

bool

Get whether [class`ClapperGtk`.ToggleFullscreenButton] button in the self is set to be visible.

get_seek_method()
Returns:

Clapper.PlayerSeekMethod used for seeking.

Return type:

Clapper.PlayerSeekMethod

Get [enum`Clapper`.PlayerSeekMethod] used when seeking with progress bar.

set_fullscreenable(fullscreenable)
Parameters:

fullscreenable (bool) – whether show button for toggling fullscreen state

Set whether [class`ClapperGtk`.ToggleFullscreenButton] button in the self should be visible.

You might want to consider setting this to False, if your application does not implement [signal`ClapperGtk`.Video::toggle-fullscreen] signal.

set_seek_method(method)
Parameters:

method (Clapper.PlayerSeekMethod) – a Clapper.PlayerSeekMethod

Set [enum`Clapper`.PlayerSeekMethod] to use when seeking with progress bar.

Property Details

ClapperGtk.SimpleControls.props.extra_menu_button
Name:

extra-menu-button

Type:

ClapperGtk.ExtraMenuButton

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Access to extra menu button within controls.

ClapperGtk.SimpleControls.props.fullscreenable
Name:

fullscreenable

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether toggle fullscreen button should be visible.

ClapperGtk.SimpleControls.props.seek_method
Name:

seek-method

Type:

Clapper.PlayerSeekMethod

Default Value:

Clapper.PlayerSeekMethod.NORMAL

Flags:

READABLE, WRITABLE

Method used for seeking.