gi-gtk-4.0.5: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.MediaControls

Description

GtkMediaControls is a widget to show controls for a video.

Usually, GtkMediaControls is used as part of Video.

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

Click to display all available methods, including inherited ones

Expand

Methods

actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.

Getters

getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMediaStream, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.

Setters

setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMediaStream, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.

getMediaStream

mediaControlsGetMediaStream Source #

Arguments

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

controls: a GtkMediaControls

-> 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 GtkMediaStream to manage

-> m MediaControls

Returns: a new GtkMediaControls

Creates a new GtkMediaControls managing the stream passed to it.

setMediaStream

mediaControlsSetMediaStream Source #

Arguments

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

controls: a GtkMediaControls widget

-> Maybe b

stream: a GtkMediaStream

-> 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 ]