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 |
Context for populating [classhoverDisplay
] contents.
GtkSourceHoverContext
contains information about the request to populate
contents for a [classhoverDisplay
].
It can be used to retrieve the [classview
], [classbuffer
], and
[structgtk
.TextIter] for the regions of text which are being displayed.
Use [methodhoverContext
.get_bounds] to get the word that was
requested. [methodhoverContext
.get_iter] will get you the location
of the pointer when the request was made.
Synopsis
- newtype HoverContext = HoverContext (ManagedPtr HoverContext)
- class (GObject o, IsDescendantOf HoverContext o) => IsHoverContext o
- toHoverContext :: (MonadIO m, IsHoverContext o) => o -> m HoverContext
- hoverContextGetBounds :: (HasCallStack, MonadIO m, IsHoverContext a) => a -> m (Bool, TextIter, TextIter)
- hoverContextGetBuffer :: (HasCallStack, MonadIO m, IsHoverContext a) => a -> m Buffer
- hoverContextGetIter :: (HasCallStack, MonadIO m, IsHoverContext a) => a -> TextIter -> m Bool
- hoverContextGetView :: (HasCallStack, MonadIO m, IsHoverContext a) => a -> m View
Exported types
newtype HoverContext Source #
Memory-managed wrapper type.
HoverContext (ManagedPtr HoverContext) |
Instances
Eq HoverContext Source # | |
Defined in GI.GtkSource.Objects.HoverContext (==) :: HoverContext -> HoverContext -> Bool # (/=) :: HoverContext -> HoverContext -> Bool # | |
GObject HoverContext Source # | |
Defined in GI.GtkSource.Objects.HoverContext | |
ManagedPtrNewtype HoverContext Source # | |
Defined in GI.GtkSource.Objects.HoverContext toManagedPtr :: HoverContext -> ManagedPtr HoverContext | |
TypedObject HoverContext Source # | |
Defined in GI.GtkSource.Objects.HoverContext | |
HasParentTypes HoverContext Source # | |
Defined in GI.GtkSource.Objects.HoverContext | |
IsGValue (Maybe HoverContext) Source # | Convert |
Defined in GI.GtkSource.Objects.HoverContext gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe HoverContext -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe HoverContext) | |
type ParentTypes HoverContext Source # | |
Defined in GI.GtkSource.Objects.HoverContext type ParentTypes HoverContext = '[Object] |
class (GObject o, IsDescendantOf HoverContext o) => IsHoverContext o Source #
Type class for types which can be safely cast to HoverContext
, for instance with toHoverContext
.
Instances
(GObject o, IsDescendantOf HoverContext o) => IsHoverContext o Source # | |
Defined in GI.GtkSource.Objects.HoverContext |
toHoverContext :: (MonadIO m, IsHoverContext o) => o -> m HoverContext Source #
Cast to HoverContext
, 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
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBounds, getBuffer, getData, getIter, getProperty, getQdata, getView.
Setters
getBounds
hoverContextGetBounds Source #
:: (HasCallStack, MonadIO m, IsHoverContext a) | |
=> a |
|
-> m (Bool, TextIter, TextIter) | Returns: |
getBuffer
hoverContextGetBuffer Source #
:: (HasCallStack, MonadIO m, IsHoverContext a) | |
=> a |
|
-> m Buffer | Returns: The |
A convenience function to get the buffer.
getIter
hoverContextGetIter :: (HasCallStack, MonadIO m, IsHoverContext a) => a -> TextIter -> m Bool Source #
No description available in the introspection data.
getView
:: (HasCallStack, MonadIO m, IsHoverContext a) | |
=> a |
|
-> m View | Returns: the |
No description available in the introspection data.