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 |
GI.Clutter.Objects.Backend
Description
Backend
is an opaque structure whose
members cannot be directly accessed.
Since: 0.4
Synopsis
- newtype Backend = Backend (ManagedPtr Backend)
- class (GObject o, IsDescendantOf Backend o) => IsBackend o
- toBackend :: (MonadIO m, IsBackend o) => o -> m Backend
- backendGetDoubleClickDistance :: (HasCallStack, MonadIO m, IsBackend a) => a -> m Word32
- backendGetDoubleClickTime :: (HasCallStack, MonadIO m, IsBackend a) => a -> m Word32
- backendGetFontName :: (HasCallStack, MonadIO m, IsBackend a) => a -> m Text
- backendGetFontOptions :: (HasCallStack, MonadIO m, IsBackend a) => a -> m FontOptions
- backendGetResolution :: (HasCallStack, MonadIO m, IsBackend a) => a -> m Double
- backendSetDoubleClickDistance :: (HasCallStack, MonadIO m, IsBackend a) => a -> Word32 -> m ()
- backendSetDoubleClickTime :: (HasCallStack, MonadIO m, IsBackend a) => a -> Word32 -> m ()
- backendSetFontName :: (HasCallStack, MonadIO m, IsBackend a) => a -> Text -> m ()
- backendSetFontOptions :: (HasCallStack, MonadIO m, IsBackend a) => a -> FontOptions -> m ()
- backendSetResolution :: (HasCallStack, MonadIO m, IsBackend a) => a -> Double -> m ()
- type BackendFontChangedCallback = IO ()
- afterBackendFontChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendFontChangedCallback) -> m SignalHandlerId
- onBackendFontChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendFontChangedCallback) -> m SignalHandlerId
- type BackendResolutionChangedCallback = IO ()
- afterBackendResolutionChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendResolutionChangedCallback) -> m SignalHandlerId
- onBackendResolutionChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendResolutionChangedCallback) -> m SignalHandlerId
- type BackendSettingsChangedCallback = IO ()
- afterBackendSettingsChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendSettingsChangedCallback) -> m SignalHandlerId
- onBackendSettingsChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendSettingsChangedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Backend Source # | |
GObject Backend Source # | |
Defined in GI.Clutter.Objects.Backend | |
ManagedPtrNewtype Backend Source # | |
Defined in GI.Clutter.Objects.Backend Methods toManagedPtr :: Backend -> ManagedPtr Backend | |
TypedObject Backend Source # | |
Defined in GI.Clutter.Objects.Backend | |
HasParentTypes Backend Source # | |
Defined in GI.Clutter.Objects.Backend | |
IsGValue (Maybe Backend) Source # | Convert |
Defined in GI.Clutter.Objects.Backend Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Backend -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Backend) | |
type ParentTypes Backend Source # | |
Defined in GI.Clutter.Objects.Backend type ParentTypes Backend = '[Object] |
class (GObject o, IsDescendantOf Backend o) => IsBackend o Source #
Instances
(GObject o, IsDescendantOf Backend o) => IsBackend o Source # | |
Defined in GI.Clutter.Objects.Backend |
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
getData, getDoubleClickDistance, getDoubleClickTime, getFontName, getFontOptions, getProperty, getQdata, getResolution.
Setters
setData, setDataFull, setDoubleClickDistance, setDoubleClickTime, setFontName, setFontOptions, setProperty, setResolution.
getDoubleClickDistance
backendGetDoubleClickDistance Source #
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> m Word32 | Returns: a distance, in pixels. |
Deprecated: (Since version 1.4)Use Settings:doubleClickDistance instead
Retrieves the distance used to verify a double click event
Since: 0.4
getDoubleClickTime
backendGetDoubleClickTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> m Word32 | Returns: a time in milliseconds |
Deprecated: (Since version 1.4)Use Settings:doubleClickTime instead
Gets the maximum time between two button press events, as set
by backendSetDoubleClickTime
.
Since: 0.4
getFontName
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> m Text | Returns: the font name for the backend. The returned string is
owned by the |
Deprecated: (Since version 1.4)Use Settings:fontName instead
Retrieves the default font name as set by
backendSetFontName
.
Since: 1.0
getFontOptions
backendGetFontOptions Source #
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> m FontOptions | Returns: the font options of the |
Retrieves the font options for backend
.
Since: 0.8
getResolution
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> m Double | Returns: the current resolution, or -1 if no resolution has been set. |
Gets the resolution for font handling on the screen.
The resolution is a scale factor between points specified in a
FontDescription
and cairo units. The default value is 96.0,
meaning that a 10 point font will be 13 units
high (10 * 96. / 72. = 13.3).
Clutter will set the resolution using the current backend when initializing; the resolution is also stored in the Settings:fontDpi property.
Since: 0.4
setDoubleClickDistance
backendSetDoubleClickDistance Source #
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> Word32 |
|
-> m () |
Deprecated: (Since version 1.4)Use Settings:doubleClickDistance instead
Sets the maximum distance used to verify a double click event.
Since: 0.4
setDoubleClickTime
backendSetDoubleClickTime Source #
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> Word32 |
|
-> m () |
Deprecated: (Since version 1.4)Use Settings:doubleClickTime instead
Sets the maximum time between two button press events, used to verify whether it's a double click event or not.
Since: 0.4
setFontName
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> Text |
|
-> m () |
Deprecated: (Since version 1.4)Use Settings:fontName instead
Sets the default font to be used by Clutter. The fontName
string
must either be Nothing
, which means that the font name from the
default Backend
will be used; or be something that can
be parsed by the fontDescriptionFromString
function.
Since: 1.0
setFontOptions
backendSetFontOptions Source #
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> FontOptions |
|
-> m () |
Sets the new font options for backend
. The Backend
will
copy the FontOptions
.
If options
is Nothing
, the first following call to
backendGetFontOptions
will return the default font
options for backend
.
This function is intended for actors creating a Pango layout using the PangoCairo API.
Since: 0.8
setResolution
Arguments
:: (HasCallStack, MonadIO m, IsBackend a) | |
=> a |
|
-> Double |
|
-> m () |
Deprecated: (Since version 1.4)Use Settings:fontDpi instead
Sets the resolution for font handling on the screen. This is a
scale factor between points specified in a FontDescription
and cairo units. The default value is 96, meaning that a 10 point
font will be 13 units high. (10 * 96. / 72. = 13.3).
Applications should never need to call this function.
Since: 0.4
Signals
fontChanged
type BackendFontChangedCallback = IO () Source #
The fontChanged signal is emitted each time the font options
have been changed through Settings
.
Since: 1.0
afterBackendFontChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendFontChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the fontChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
backend #fontChanged 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.
onBackendFontChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendFontChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the fontChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
backend #fontChanged callback
resolutionChanged
type BackendResolutionChangedCallback = IO () Source #
The resolutionChanged signal is emitted each time the font
resolutions has been changed through Settings
.
Since: 1.0
afterBackendResolutionChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendResolutionChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the resolutionChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
backend #resolutionChanged 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.
onBackendResolutionChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendResolutionChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the resolutionChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
backend #resolutionChanged callback
settingsChanged
type BackendSettingsChangedCallback = IO () Source #
The settingsChanged signal is emitted each time the Settings
properties have been changed.
Since: 1.4
afterBackendSettingsChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendSettingsChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the settingsChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
backend #settingsChanged 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.
onBackendSettingsChanged :: (IsBackend a, MonadIO m) => a -> ((?self :: a) => BackendSettingsChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the settingsChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
backend #settingsChanged callback