ClapperGtk.LeadContainer¶
- Subclasses:
Methods¶
- Inherited:
ClapperGtk.Container (11), 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:
ClapperGtk.Container (4), Gtk.Widget (34), Gtk.Accessible (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
ClapperGtk.Container (1), Gtk.Widget (13), GObject.Object (1)
Fields¶
- Inherited:
ClapperGtk.Container (1), Gtk.Widget (13), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class ClapperGtk.LeadContainer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
ClapperGtk.Container
that can take priority in user interactions with theClapperGtk.Video
.ClapperGtk.LeadContainer
is a special type of [class`ClapperGtk`.Container] that can lead in interaction events. When “leading”, it is assumed that user interactions over it which would normally trigger actions can be blocked/ignored when set in mask of actions that this widget should block.This kind of container is useful when creating some statically visible overlays covering top of [class`ClapperGtk`.Video] that you want to take priority instead of triggering default actions such as toggle play on click or revealing fading overlays.
For more info how container widget works see [class`ClapperGtk`.Container] documentation.
- classmethod new()¶
- Returns:
a new lead container
Gtk.Widget
.- Return type:
Creates a new
ClapperGtk.LeadContainer
instance.
- get_blocked_actions()¶
- Returns:
a mask of actions that container blocks from being triggered on video.
- Return type:
Get actions that were set for this self to block.
- get_leading()¶
-
Get a whenever self has leadership set.
- set_blocked_actions(actions)¶
- Parameters:
actions (
ClapperGtk.VideoActionMask
) – aClapperGtk.VideoActionMask
of actions to block
Set actions that
ClapperGtk.Video
should skip whenGdk.Event
which would normally trigger them happens inside self.
Property Details¶
- ClapperGtk.LeadContainer.props.blocked_actions¶
- Name:
blocked-actions
- Type:
- Default Value:
- Flags:
Mask of actions that container blocks from being triggered on video.