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

GI.Gtk.Objects.HSV

Description

HSV is the “color wheel” part of a complete color selector widget. It allows to select a color by determining its HSV components in an intuitive way. Moving the selection around the outer ring changes the hue, and moving the selection point inside the inner triangle changes value and saturation.

HSV has been deprecated together with ColorSelection, where it was used.

Synopsis

Exported types

newtype HSV Source #

Memory-managed wrapper type.

Constructors

HSV (ManagedPtr HSV) 

Instances

Instances details
Eq HSV Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

Methods

(==) :: HSV -> HSV -> Bool #

(/=) :: HSV -> HSV -> Bool #

GObject HSV Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

ManagedPtrNewtype HSV Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

Methods

toManagedPtr :: HSV -> ManagedPtr HSV

TypedObject HSV Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

Methods

glibType :: IO GType

HasParentTypes HSV Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

IsGValue (Maybe HSV) Source #

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

Instance details

Defined in GI.Gtk.Objects.HSV

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe HSV -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe HSV)

type ParentTypes HSV Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

type ParentTypes HSV = '[Widget, Object, ImplementorIface, Buildable]

class (GObject o, IsDescendantOf HSV o) => IsHSV o Source #

Type class for types which can be safely cast to HSV, for instance with toHSV.

Instances

Instances details
(GObject o, IsDescendantOf HSV o) => IsHSV o Source # 
Instance details

Defined in GI.Gtk.Objects.HSV

toHSV :: (MonadIO m, IsHSV o) => o -> m HSV Source #

Cast to HSV, 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

activate, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, childFocus, childNotify, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forceFloating, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAdjusting, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetStateFlags, watchClosure.

Getters

getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getCanDefault, getCanFocus, getChildRequisition, getChildVisible, getClip, getClipboard, getColor, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusOnClick, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMetrics, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.

Setters

setAccelPath, setAllocation, setAppPaintable, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setColor, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusOnClick, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMetrics, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReceivesDefault, setRedrawOnAllocate, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.

getColor

hSVGetColor Source #

Arguments

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

hsv: An HSV color selector

-> m (Double, Double, Double) 

Queries the current color in an HSV color selector. Returned values will be in the [0.0, 1.0] range.

Since: 2.14

getMetrics

hSVGetMetrics Source #

Arguments

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

hsv: An HSV color selector

-> m (Int32, Int32) 

Queries the size and ring width of an HSV color selector.

Since: 2.14

isAdjusting

hSVIsAdjusting Source #

Arguments

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

hsv: A HSV

-> m Bool

Returns: True if clients can ignore changes to the color value, since they may be transitory, or False if they should consider the color value status to be final.

An HSV color selector can be said to be adjusting if multiple rapid changes are being made to its value, for example, when the user is adjusting the value with the mouse. This function queries whether the HSV color selector is being adjusted or not.

Since: 2.14

new

hSVNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m HSV

Returns: A newly-created HSV color selector.

Creates a new HSV color selector.

Since: 2.14

setColor

hSVSetColor Source #

Arguments

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

hsv: An HSV color selector

-> Double

h: Hue

-> Double

s: Saturation

-> Double

v: Value

-> m () 

Sets the current color in an HSV color selector. Color component values must be in the [0.0, 1.0] range.

Since: 2.14

setMetrics

hSVSetMetrics Source #

Arguments

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

hsv: An HSV color selector

-> Int32

size: Diameter for the hue ring

-> Int32

ringWidth: Width of the hue ring

-> m () 

Sets the size and ring width of an HSV color selector.

Since: 2.14

toRgb

hSVToRgb Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

h: Hue

-> Double

s: Saturation

-> Double

v: Value

-> m (Double, Double, Double) 

Converts a color from HSV space to RGB.

Input values must be in the [0.0, 1.0] range; output values will be in the same range.

Since: 2.14

Signals

changed

type C_HSVChangedCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type HSVChangedCallback = IO () Source #

No description available in the introspection data.

afterHSVChanged :: (IsHSV a, MonadIO m) => a -> HSVChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the changed signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after hSV #changed callback

genClosure_HSVChanged :: MonadIO m => HSVChangedCallback -> m (GClosure C_HSVChangedCallback) Source #

Wrap the callback into a GClosure.

mk_HSVChangedCallback :: C_HSVChangedCallback -> IO (FunPtr C_HSVChangedCallback) Source #

Generate a function pointer callable from C code, from a C_HSVChangedCallback.

onHSVChanged :: (IsHSV a, MonadIO m) => a -> HSVChangedCallback -> m SignalHandlerId Source #

Connect a signal handler for the changed signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on hSV #changed callback

move

type C_HSVMoveCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type HSVMoveCallback = DirectionType -> IO () Source #

No description available in the introspection data.

afterHSVMove :: (IsHSV a, MonadIO m) => a -> HSVMoveCallback -> m SignalHandlerId Source #

Connect a signal handler for the move signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after hSV #move callback

genClosure_HSVMove :: MonadIO m => HSVMoveCallback -> m (GClosure C_HSVMoveCallback) Source #

Wrap the callback into a GClosure.

mk_HSVMoveCallback :: C_HSVMoveCallback -> IO (FunPtr C_HSVMoveCallback) Source #

Generate a function pointer callable from C code, from a C_HSVMoveCallback.

onHSVMove :: (IsHSV a, MonadIO m) => a -> HSVMoveCallback -> m SignalHandlerId Source #

Connect a signal handler for the move signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on hSV #move callback