gi-gtk-4.0.2: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.MediaControls

Description

GtkMediaControls is a widget to show controls for a MediaStream and giving users a way to use it.

Synopsis

Exported types

class (GObject o, IsDescendantOf MediaControls o) => IsMediaControls o Source #

Type class for types which can be safely cast to MediaControls, for instance with toMediaControls.

Instances

Instances details
(GObject o, IsDescendantOf MediaControls o) => IsMediaControls o Source # 
Instance details

Defined in GI.Gtk.Objects.MediaControls

toMediaControls :: (MonadIO m, IsMediaControls o) => o -> m MediaControls Source #

Cast to MediaControls, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getMediaStream

mediaControlsGetMediaStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsMediaControls a) 
=> a

controls: a MediaControls

-> m (Maybe MediaStream)

Returns: The media stream managed by controls

Gets the media stream managed by controls or Nothing if none.

new

mediaControlsNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsMediaStream a) 
=> Maybe a

stream: a MediaStream to manage or Nothing for none.

-> m MediaControls

Returns: a new MediaControls

Creates a new MediaControls managing the stream passed to it.

setMediaStream

mediaControlsSetMediaStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsMediaControls a, IsMediaStream b) 
=> a

controls: a MediaControls widget

-> Maybe b

stream: a MediaStream, or Nothing

-> m () 

Sets the stream that is controlled by controls.

Properties

mediaStream

The media-stream managed by this object or Nothing if none.

clearMediaControlsMediaStream :: (MonadIO m, IsMediaControls o) => o -> m () Source #

Set the value of the “media-stream” property to Nothing. When overloading is enabled, this is equivalent to

clear #mediaStream

constructMediaControlsMediaStream :: (IsMediaControls o, MonadIO m, IsMediaStream a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “media-stream” property. This is rarely needed directly, but it is used by new.

getMediaControlsMediaStream :: (MonadIO m, IsMediaControls o) => o -> m (Maybe MediaStream) Source #

Get the value of the “media-stream” property. When overloading is enabled, this is equivalent to

get mediaControls #mediaStream

setMediaControlsMediaStream :: (MonadIO m, IsMediaControls o, IsMediaStream a) => o -> a -> m () Source #

Set the value of the “media-stream” property. When overloading is enabled, this is equivalent to

set mediaControls [ #mediaStream := value ]