gi-gtksource-5.0.0: GtkSource bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GtkSource.Objects.StyleSchemePreview

Description

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

Exported types

newtype StyleSchemePreview Source #

Memory-managed wrapper type.

Constructors

StyleSchemePreview (ManagedPtr StyleSchemePreview) 

Instances

Instances details
Eq StyleSchemePreview Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

GObject StyleSchemePreview Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

ManagedPtrNewtype StyleSchemePreview Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

TypedObject StyleSchemePreview Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

Methods

glibType :: IO GType

HasParentTypes StyleSchemePreview Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

IsGValue (Maybe StyleSchemePreview) Source #

Convert StyleSchemePreview to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

type ParentTypes StyleSchemePreview Source # 
Instance details

Defined in GI.GtkSource.Objects.StyleSchemePreview

type ParentTypes StyleSchemePreview = '[Widget, Object, Accessible, Actionable, Buildable, ConstraintTarget]

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

Instances details
(GObject o, IsDescendantOf StyleSchemePreview o) => IsStyleSchemePreview o Source # 
Instance details

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

Expand

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 #

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 #

Arguments

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

scheme: a StyleScheme

-> m StyleSchemePreview

Returns: a Widget

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