Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A Marker
can be colored by setting the META_MARKER_COLOR
meta.
Since: 1.18
Synopsis
- newtype MarkerList = MarkerList (ManagedPtr MarkerList)
- class (GObject o, IsDescendantOf MarkerList o) => IsMarkerList o
- toMarkerList :: (MonadIO m, IsMarkerList o) => o -> m MarkerList
- markerListAdd :: (HasCallStack, MonadIO m, IsMarkerList a) => a -> Word64 -> m Marker
- markerListGetMarkers :: (HasCallStack, MonadIO m, IsMarkerList a) => a -> m [Marker]
- markerListMove :: (HasCallStack, MonadIO m, IsMarkerList a, IsMarker b) => a -> b -> Word64 -> m Bool
- markerListNew :: (HasCallStack, MonadIO m) => m MarkerList
- markerListRemove :: (HasCallStack, MonadIO m, IsMarkerList a, IsMarker b) => a -> b -> m Bool
- markerListSize :: (HasCallStack, MonadIO m, IsMarkerList a) => a -> m Word32
- constructMarkerListFlags :: (IsMarkerList o, MonadIO m) => [MarkerFlags] -> m (GValueConstruct o)
- getMarkerListFlags :: (MonadIO m, IsMarkerList o) => o -> m [MarkerFlags]
- setMarkerListFlags :: (MonadIO m, IsMarkerList o) => o -> [MarkerFlags] -> m ()
- type MarkerListMarkerAddedCallback = Word64 -> Marker -> IO ()
- afterMarkerListMarkerAdded :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerAddedCallback) -> m SignalHandlerId
- onMarkerListMarkerAdded :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerAddedCallback) -> m SignalHandlerId
- type MarkerListMarkerMovedCallback = Word64 -> Word64 -> Marker -> IO ()
- afterMarkerListMarkerMoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerMovedCallback) -> m SignalHandlerId
- onMarkerListMarkerMoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerMovedCallback) -> m SignalHandlerId
- type MarkerListMarkerRemovedCallback = Marker -> IO ()
- afterMarkerListMarkerRemoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerRemovedCallback) -> m SignalHandlerId
- onMarkerListMarkerRemoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerRemovedCallback) -> m SignalHandlerId
Exported types
newtype MarkerList Source #
Memory-managed wrapper type.
MarkerList (ManagedPtr MarkerList) |
Instances
Eq MarkerList Source # | |
Defined in GI.GES.Objects.MarkerList (==) :: MarkerList -> MarkerList -> Bool # (/=) :: MarkerList -> MarkerList -> Bool # | |
GObject MarkerList Source # | |
Defined in GI.GES.Objects.MarkerList | |
ManagedPtrNewtype MarkerList Source # | |
Defined in GI.GES.Objects.MarkerList toManagedPtr :: MarkerList -> ManagedPtr MarkerList | |
TypedObject MarkerList Source # | |
Defined in GI.GES.Objects.MarkerList | |
HasParentTypes MarkerList Source # | |
Defined in GI.GES.Objects.MarkerList | |
IsGValue (Maybe MarkerList) Source # | Convert |
Defined in GI.GES.Objects.MarkerList gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe MarkerList -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe MarkerList) | |
type ParentTypes MarkerList Source # | |
Defined in GI.GES.Objects.MarkerList type ParentTypes MarkerList = '[Object] |
class (GObject o, IsDescendantOf MarkerList o) => IsMarkerList o Source #
Type class for types which can be safely cast to MarkerList
, for instance with toMarkerList
.
Instances
(GObject o, IsDescendantOf MarkerList o) => IsMarkerList o Source # | |
Defined in GI.GES.Objects.MarkerList |
toMarkerList :: (MonadIO m, IsMarkerList o) => o -> m MarkerList Source #
Cast to MarkerList
, 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
Methods
add, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, move, notify, notifyByPspec, ref, refSink, remove, runDispose, size, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getMarkers, getProperty, getQdata.
Setters
add
:: (HasCallStack, MonadIO m, IsMarkerList a) | |
=> a | |
-> Word64 |
|
-> m Marker | Returns: The newly-added marker, the list keeps ownership of the marker |
No description available in the introspection data.
Since: 1.18
getMarkers
:: (HasCallStack, MonadIO m, IsMarkerList a) | |
=> a | |
-> m [Marker] | Returns: a |
No description available in the introspection data.
Since: 1.18
move
:: (HasCallStack, MonadIO m, IsMarkerList a, IsMarker b) | |
=> a | |
-> b | |
-> Word64 | |
-> m Bool | Returns: |
Moves a marker
in a list
to a new position
Since: 1.18
new
:: (HasCallStack, MonadIO m) | |
=> m MarkerList | Returns: A new |
Creates a new MarkerList
.
Since: 1.18
remove
:: (HasCallStack, MonadIO m, IsMarkerList a, IsMarker b) | |
=> a | |
-> b | |
-> m Bool | Returns: |
Removes marker
from list
, this decreases the refcount of the
marker by 1.
Since: 1.18
size
:: (HasCallStack, MonadIO m, IsMarkerList a) | |
=> a | |
-> m Word32 | Returns: The number of markers in |
No description available in the introspection data.
Since: 1.18
Properties
flags
Flags indicating how markers on the list should be treated.
Since: 1.20
constructMarkerListFlags :: (IsMarkerList o, MonadIO m) => [MarkerFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flags
” property. This is rarely needed directly, but it is used by new
.
getMarkerListFlags :: (MonadIO m, IsMarkerList o) => o -> m [MarkerFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
markerList #flags
setMarkerListFlags :: (MonadIO m, IsMarkerList o) => o -> [MarkerFlags] -> m () Source #
Set the value of the “flags
” property.
When overloading is enabled, this is equivalent to
set
markerList [ #flags:=
value ]
Signals
markerAdded
type MarkerListMarkerAddedCallback Source #
= Word64 |
|
-> Marker |
|
-> IO () |
Will be emitted after the marker was added to the marker-list.
Since: 1.18
afterMarkerListMarkerAdded :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the markerAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
markerList #markerAdded callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onMarkerListMarkerAdded :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerAddedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the markerAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
markerList #markerAdded callback
markerMoved
type MarkerListMarkerMovedCallback Source #
= Word64 |
|
-> Word64 |
|
-> Marker |
|
-> IO () |
Will be emitted after the marker was moved to.
Since: 1.18
afterMarkerListMarkerMoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerMovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the markerMoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
markerList #markerMoved callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onMarkerListMarkerMoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerMovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the markerMoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
markerList #markerMoved callback
markerRemoved
type MarkerListMarkerRemovedCallback Source #
Will be emitted after the marker was removed the marker-list.
Since: 1.18
afterMarkerListMarkerRemoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the markerRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
markerList #markerRemoved callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onMarkerListMarkerRemoved :: (IsMarkerList a, MonadIO m) => a -> ((?self :: a) => MarkerListMarkerRemovedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the markerRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
markerList #markerRemoved callback