gi-dazzle-1.0.2: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Objects.ShortcutTooltip

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ShortcutTooltip Source #

Memory-managed wrapper type.

Constructors

ShortcutTooltip (ManagedPtr ShortcutTooltip) 

Instances

Instances details
Eq ShortcutTooltip Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

GObject ShortcutTooltip Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

ManagedPtrNewtype ShortcutTooltip Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

TypedObject ShortcutTooltip Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

Methods

glibType :: IO GType

HasParentTypes ShortcutTooltip Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

IsGValue (Maybe ShortcutTooltip) Source #

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

Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes ShortcutTooltip Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

type ParentTypes ShortcutTooltip = '[Object]

class (GObject o, IsDescendantOf ShortcutTooltip o) => IsShortcutTooltip o Source #

Type class for types which can be safely cast to ShortcutTooltip, for instance with toShortcutTooltip.

Instances

Instances details
(GObject o, IsDescendantOf ShortcutTooltip o) => IsShortcutTooltip o Source # 
Instance details

Defined in GI.Dazzle.Objects.ShortcutTooltip

toShortcutTooltip :: (MonadIO m, IsShortcutTooltip o) => o -> m ShortcutTooltip Source #

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

Methods

getAccel

shortcutTooltipGetAccel Source #

Arguments

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

self: a ShortcutTooltip

-> m (Maybe Text)

Returns: an override accel, or Nothing

Gets the ShortcutTooltip:accel property, which can be used to override the commands accel.

Since: 3.32

getCommandId

shortcutTooltipGetCommandId Source #

Arguments

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

self: a ShortcutTooltip

-> m (Maybe Text)

Returns: a string containing the command id

Gets the ShortcutTooltip:commandId property.

Since: 3.32

getTitle

shortcutTooltipGetTitle Source #

Arguments

:: (HasCallStack, MonadIO m, IsShortcutTooltip a) 
=> a 
-> m (Maybe Text)

Returns: a string containing the title, or Nothing

Gets the ShortcutTooltip:title property, if set.

Since: 3.32

getWidget

shortcutTooltipGetWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsShortcutTooltip a) 
=> a 
-> m (Maybe Widget)

Returns: a Widget or Nothing if unset

Gets the Widget that the shortcut-tooltip is wrapping.

Since: 3.32

new

shortcutTooltipNew Source #

Arguments

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

Returns: a newly created ShortcutTooltip

Create a new ShortcutTooltip.

Since: 3.32

setAccel

shortcutTooltipSetAccel Source #

Arguments

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

self: ShortcutTooltip

-> Maybe Text

accel: Sets the accelerator to use, or Nothing to unset and use the default

-> m () 

Allows overriding the accel that is used.

Since: 3.32

setCommandId

shortcutTooltipSetCommandId Source #

Arguments

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

self: a ShortcutTooltip

-> Text

commandId: the command-id of the shortcut registered

-> m () 

This sets the ShortcutTooltip:commandId property which denotes which shortcut registered with libdazzle to display when a tooltip request is received.

Since: 3.32

setTitle

shortcutTooltipSetTitle Source #

Arguments

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

self: a ShortcutTooltip

-> Maybe Text

title: a title for the tooltip, or Nothing

-> m () 

Sets the ShortcutTooltip:title property, which can be used to override the default title for the tooltip as discovered from the shortcut manager.

Since: 3.32

setWidget

shortcutTooltipSetWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsShortcutTooltip a, IsWidget b) 
=> a

self: a ShortcutTooltip

-> Maybe b

widget: a Widget or Nothing

-> m () 

Sets the widget to connect to the Widget::queryTooltip signal.

If configured, the widget will be displayed with an appropriate tooltip message matching the shortcut from ShortcutTooltip:commandId.

Since: 3.32

Properties

accel

No description available in the introspection data.

clearShortcutTooltipAccel :: (MonadIO m, IsShortcutTooltip o) => o -> m () Source #

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

clear #accel

constructShortcutTooltipAccel :: (IsShortcutTooltip o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getShortcutTooltipAccel :: (MonadIO m, IsShortcutTooltip o) => o -> m (Maybe Text) Source #

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

get shortcutTooltip #accel

setShortcutTooltipAccel :: (MonadIO m, IsShortcutTooltip o) => o -> Text -> m () Source #

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

set shortcutTooltip [ #accel := value ]

commandId

No description available in the introspection data.

constructShortcutTooltipCommandId :: (IsShortcutTooltip o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getShortcutTooltipCommandId :: (MonadIO m, IsShortcutTooltip o) => o -> m (Maybe Text) Source #

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

get shortcutTooltip #commandId

setShortcutTooltipCommandId :: (MonadIO m, IsShortcutTooltip o) => o -> Text -> m () Source #

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

set shortcutTooltip [ #commandId := value ]

title

The "title" property contains an alternate title for the tooltip instead of discovering the title from the shortcut manager.

Since: 3.32

clearShortcutTooltipTitle :: (MonadIO m, IsShortcutTooltip o) => o -> m () Source #

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

clear #title

constructShortcutTooltipTitle :: (IsShortcutTooltip o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getShortcutTooltipTitle :: (MonadIO m, IsShortcutTooltip o) => o -> m (Maybe Text) Source #

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

get shortcutTooltip #title

setShortcutTooltipTitle :: (MonadIO m, IsShortcutTooltip o) => o -> Text -> m () Source #

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

set shortcutTooltip [ #title := value ]

widget

No description available in the introspection data.

clearShortcutTooltipWidget :: (MonadIO m, IsShortcutTooltip o) => o -> m () Source #

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

clear #widget

constructShortcutTooltipWidget :: (IsShortcutTooltip o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #

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

getShortcutTooltipWidget :: (MonadIO m, IsShortcutTooltip o) => o -> m (Maybe Widget) Source #

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

get shortcutTooltip #widget

setShortcutTooltipWidget :: (MonadIO m, IsShortcutTooltip o, IsWidget a) => o -> a -> m () Source #

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

set shortcutTooltip [ #widget := value ]