gi-webkit2-4.0.25: WebKit2 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.ColorChooserRequest

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf ColorChooserRequest o) => IsColorChooserRequest o Source #

Type class for types which can be safely cast to ColorChooserRequest, for instance with toColorChooserRequest.

Instances

Instances details
(GObject o, IsDescendantOf ColorChooserRequest o) => IsColorChooserRequest o Source # 
Instance details

Defined in GI.WebKit2.Objects.ColorChooserRequest

toColorChooserRequest :: (MonadIO m, IsColorChooserRequest o) => o -> m ColorChooserRequest Source #

Cast to ColorChooserRequest, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

cancel

colorChooserRequestCancel Source #

Arguments

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

request: a ColorChooserRequest

-> m () 

Cancels request and the input element changes to use the initial color it has before the request started. The signal finished is emitted to notify that the request has finished.

Since: 2.8

finish

colorChooserRequestFinish Source #

Arguments

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

request: a ColorChooserRequest

-> m () 

Finishes request and the input element keeps the current value of ColorChooserRequest:rgba. The signal finished is emitted to notify that the request has finished.

Since: 2.8

getElementRectangle

colorChooserRequestGetElementRectangle Source #

Arguments

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

request: a ColorChooserRequest

-> m Rectangle 

Gets the bounding box of the color input element.

Since: 2.8

getRgba

colorChooserRequestGetRgba Source #

Arguments

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

request: a ColorChooserRequest

-> m RGBA 

Gets the current RGBA color of request

Since: 2.8

setRgba

colorChooserRequestSetRgba Source #

Arguments

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

request: a FileChooserRequest

-> RGBA

rgba: a pointer RGBA

-> m () 

Sets the current RGBA color of request

Since: 2.8

Properties

rgba

No description available in the introspection data.

constructColorChooserRequestRgba :: IsColorChooserRequest o => RGBA -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “rgba” property. This is rarely needed directly, but it is used by new.

getColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> m (Maybe RGBA) Source #

Get the value of the “rgba” property. When overloading is enabled, this is equivalent to

get colorChooserRequest #rgba

setColorChooserRequestRgba :: (MonadIO m, IsColorChooserRequest o) => o -> RGBA -> m () Source #

Set the value of the “rgba” property. When overloading is enabled, this is equivalent to

set colorChooserRequest [ #rgba := value ]

Signals

finished

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

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

type ColorChooserRequestFinishedCallback = IO () Source #

Emitted when the request finishes. This signal can be emitted because the user completed the request calling colorChooserRequestFinish, or cancelled it with colorChooserRequestCancel or because the color input element is removed from the DOM.

Since: 2.8

afterColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ColorChooserRequestFinishedCallback -> m SignalHandlerId Source #

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

after colorChooserRequest #finished callback

onColorChooserRequestFinished :: (IsColorChooserRequest a, MonadIO m) => a -> ColorChooserRequestFinishedCallback -> m SignalHandlerId Source #

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

on colorChooserRequest #finished callback