Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GtkMediaControls is a widget to show controls for a MediaStream
and giving users a way to use it.
Synopsis
- newtype MediaControls = MediaControls (ManagedPtr MediaControls)
- class (GObject o, IsDescendantOf MediaControls o) => IsMediaControls o
- toMediaControls :: (MonadIO m, IsMediaControls o) => o -> m MediaControls
- mediaControlsGetMediaStream :: (HasCallStack, MonadIO m, IsMediaControls a) => a -> m (Maybe MediaStream)
- mediaControlsNew :: (HasCallStack, MonadIO m, IsMediaStream a) => Maybe a -> m MediaControls
- mediaControlsSetMediaStream :: (HasCallStack, MonadIO m, IsMediaControls a, IsMediaStream b) => a -> Maybe b -> m ()
- clearMediaControlsMediaStream :: (MonadIO m, IsMediaControls o) => o -> m ()
- constructMediaControlsMediaStream :: (IsMediaControls o, MonadIO m, IsMediaStream a) => a -> m (GValueConstruct o)
- getMediaControlsMediaStream :: (MonadIO m, IsMediaControls o) => o -> m (Maybe MediaStream)
- setMediaControlsMediaStream :: (MonadIO m, IsMediaControls o, IsMediaStream a) => o -> a -> m ()
Exported types
newtype MediaControls Source #
Memory-managed wrapper type.
Instances
Eq MediaControls Source # | |
Defined in GI.Gtk.Objects.MediaControls (==) :: MediaControls -> MediaControls -> Bool # (/=) :: MediaControls -> MediaControls -> Bool # | |
IsGValue MediaControls Source # | Convert |
Defined in GI.Gtk.Objects.MediaControls toGValue :: MediaControls -> IO GValue # fromGValue :: GValue -> IO MediaControls # | |
ManagedPtrNewtype MediaControls Source # | |
Defined in GI.Gtk.Objects.MediaControls | |
TypedObject MediaControls Source # | |
Defined in GI.Gtk.Objects.MediaControls | |
GObject MediaControls Source # | |
Defined in GI.Gtk.Objects.MediaControls | |
HasParentTypes MediaControls Source # | |
Defined in GI.Gtk.Objects.MediaControls | |
type ParentTypes MediaControls Source # | |
Defined in GI.Gtk.Objects.MediaControls |
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
(GObject o, IsDescendantOf MediaControls o) => IsMediaControls o Source # | |
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 #
:: (HasCallStack, MonadIO m, IsMediaControls a) | |
=> a |
|
-> m (Maybe MediaStream) | Returns: The media stream managed by |
Gets the media stream managed by controls
or Nothing
if none.
new
:: (HasCallStack, MonadIO m, IsMediaStream a) | |
=> Maybe a |
|
-> m MediaControls | Returns: a new |
Creates a new MediaControls
managing the stream
passed to it.
setMediaStream
mediaControlsSetMediaStream Source #
:: (HasCallStack, MonadIO m, IsMediaControls a, IsMediaStream b) | |
=> a |
|
-> Maybe b |
|
-> 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 ]