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 preview widget for [classstyleScheme
].
This widget provides a convenient Widget
to preview a [classstyleScheme
].
The [propertystyleSchemePreview
:selected] property can be used to manage
the selection state of a single preview widget.
Since: 5.4
Synopsis
- newtype StyleSchemePreview = StyleSchemePreview (ManagedPtr StyleSchemePreview)
- class (GObject o, IsDescendantOf StyleSchemePreview o) => IsStyleSchemePreview o
- toStyleSchemePreview :: (MonadIO m, IsStyleSchemePreview o) => o -> m StyleSchemePreview
- styleSchemePreviewGetScheme :: (HasCallStack, MonadIO m, IsStyleSchemePreview a) => a -> m StyleScheme
- styleSchemePreviewGetSelected :: (HasCallStack, MonadIO m, IsStyleSchemePreview a) => a -> m Bool
- styleSchemePreviewNew :: (HasCallStack, MonadIO m, IsStyleScheme a) => a -> m StyleSchemePreview
- styleSchemePreviewSetSelected :: (HasCallStack, MonadIO m, IsStyleSchemePreview a) => a -> Bool -> m ()
- constructStyleSchemePreviewScheme :: (IsStyleSchemePreview o, MonadIO m, IsStyleScheme a) => a -> m (GValueConstruct o)
- getStyleSchemePreviewScheme :: (MonadIO m, IsStyleSchemePreview o) => o -> m StyleScheme
- constructStyleSchemePreviewSelected :: (IsStyleSchemePreview o, MonadIO m) => Bool -> m (GValueConstruct o)
- getStyleSchemePreviewSelected :: (MonadIO m, IsStyleSchemePreview o) => o -> m Bool
- setStyleSchemePreviewSelected :: (MonadIO m, IsStyleSchemePreview o) => o -> Bool -> m ()
- type StyleSchemePreviewActivateCallback = IO ()
- afterStyleSchemePreviewActivate :: (IsStyleSchemePreview a, MonadIO m) => a -> ((?self :: a) => StyleSchemePreviewActivateCallback) -> m SignalHandlerId
- onStyleSchemePreviewActivate :: (IsStyleSchemePreview a, MonadIO m) => a -> ((?self :: a) => StyleSchemePreviewActivateCallback) -> m SignalHandlerId
Exported types
newtype StyleSchemePreview Source #
Memory-managed wrapper type.
StyleSchemePreview (ManagedPtr StyleSchemePreview) |
Instances
class (GObject o, IsDescendantOf StyleSchemePreview o) => IsStyleSchemePreview o Source #
Type class for types which can be safely cast to StyleSchemePreview
, for instance with toStyleSchemePreview
.
Instances
(GObject o, IsDescendantOf StyleSchemePreview o) => IsStyleSchemePreview o Source # | |
Defined in GI.GtkSource.Objects.StyleSchemePreview |
toStyleSchemePreview :: (MonadIO m, IsStyleSchemePreview o) => o -> m StyleSchemePreview Source #
Cast to StyleSchemePreview
, 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
actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, disposeTemplate, 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, updateNextAccessibleSibling, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleParent, getAccessibleRole, getActionName, getActionTargetValue, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getAtContext, getBounds, getBuildableId, getCanFocus, getCanTarget, getChildVisible, getClipboard, getColor, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstAccessibleChild, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextAccessibleSibling, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPlatformState, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getScheme, getSelected, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setAccessibleParent, setActionName, setActionTargetValue, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDetailedActionName, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setSelected, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.
getScheme
styleSchemePreviewGetScheme Source #
:: (HasCallStack, MonadIO m, IsStyleSchemePreview a) | |
=> a |
|
-> m StyleScheme | Returns: a |
Gets the StyleScheme
previewed by the widget.
Since: 5.4
getSelected
styleSchemePreviewGetSelected :: (HasCallStack, MonadIO m, IsStyleSchemePreview a) => a -> m Bool Source #
No description available in the introspection data.
new
styleSchemePreviewNew Source #
:: (HasCallStack, MonadIO m, IsStyleScheme a) | |
=> a |
|
-> m StyleSchemePreview | Returns: a |
Creates a new StyleSchemePreview
to preview the style scheme
provided in scheme
.
Since: 5.4
setSelected
styleSchemePreviewSetSelected :: (HasCallStack, MonadIO m, IsStyleSchemePreview a) => a -> Bool -> m () Source #
No description available in the introspection data.
Properties
scheme
No description available in the introspection data.
constructStyleSchemePreviewScheme :: (IsStyleSchemePreview o, MonadIO m, IsStyleScheme a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “scheme
” property. This is rarely needed directly, but it is used by new
.
getStyleSchemePreviewScheme :: (MonadIO m, IsStyleSchemePreview o) => o -> m StyleScheme Source #
Get the value of the “scheme
” property.
When overloading is enabled, this is equivalent to
get
styleSchemePreview #scheme
selected
No description available in the introspection data.
constructStyleSchemePreviewSelected :: (IsStyleSchemePreview o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “selected
” property. This is rarely needed directly, but it is used by new
.
getStyleSchemePreviewSelected :: (MonadIO m, IsStyleSchemePreview o) => o -> m Bool Source #
Get the value of the “selected
” property.
When overloading is enabled, this is equivalent to
get
styleSchemePreview #selected
setStyleSchemePreviewSelected :: (MonadIO m, IsStyleSchemePreview o) => o -> Bool -> m () Source #
Set the value of the “selected
” property.
When overloading is enabled, this is equivalent to
set
styleSchemePreview [ #selected:=
value ]
Signals
activate
type StyleSchemePreviewActivateCallback = IO () Source #
No description available in the introspection data.
afterStyleSchemePreviewActivate :: (IsStyleSchemePreview a, MonadIO m) => a -> ((?self :: a) => StyleSchemePreviewActivateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
styleSchemePreview #activate 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.
onStyleSchemePreviewActivate :: (IsStyleSchemePreview a, MonadIO m) => a -> ((?self :: a) => StyleSchemePreviewActivateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
styleSchemePreview #activate callback