gi-ibus-1.5.7: IBus bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.IBus.Objects.Property

Description

An IBusProperty is an UI component like a button or a menu item which shows the status of corresponding input method engine property. End user can operate and see the current status of IME through these components. For example, ibus-chewing users change the English/Chinese input mode by pressing ctrl-space or click on the Eng/Chi switch button. And the IBusProperty shows the change correspondingly.

see_also: PropList, Engine

Synopsis

Exported types

newtype Property Source #

Memory-managed wrapper type.

Constructors

Property (ManagedPtr Property) 

Instances

Instances details
Eq Property Source # 
Instance details

Defined in GI.IBus.Objects.Property

GObject Property Source # 
Instance details

Defined in GI.IBus.Objects.Property

ManagedPtrNewtype Property Source # 
Instance details

Defined in GI.IBus.Objects.Property

Methods

toManagedPtr :: Property -> ManagedPtr Property

TypedObject Property Source # 
Instance details

Defined in GI.IBus.Objects.Property

Methods

glibType :: IO GType

HasParentTypes Property Source # 
Instance details

Defined in GI.IBus.Objects.Property

IsGValue (Maybe Property) Source #

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

Instance details

Defined in GI.IBus.Objects.Property

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Property Source # 
Instance details

Defined in GI.IBus.Objects.Property

type ParentTypes Property = '[Serializable, Object, Object]

class (GObject o, IsDescendantOf Property o) => IsProperty o Source #

Type class for types which can be safely cast to Property, for instance with toProperty.

Instances

Instances details
(GObject o, IsDescendantOf Property o) => IsProperty o Source # 
Instance details

Defined in GI.IBus.Objects.Property

toProperty :: (MonadIO m, IsProperty o) => o -> m Property Source #

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

Methods

getIcon

propertyGetIcon Source #

Arguments

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

prop: An Property.

-> m Text

Returns: the icon of Property. Should not be freed.

Get the icon of Property.

getKey

propertyGetKey Source #

Arguments

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

prop: An Property.

-> m Text

Returns: the key of Property. Should not be freed.

Get the key of Property.

getLabel

propertyGetLabel Source #

Arguments

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

prop: An Property.

-> m Text

Returns: the label of Property. Should not be freed.

Get the label of Property.

getPropType

propertyGetPropType :: (HasCallStack, MonadIO m, IsProperty a) => a -> m PropType Source #

No description available in the introspection data.

getSensitive

propertyGetSensitive Source #

Arguments

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

prop: An Property.

-> m Bool

Returns: the sensitive of Property.

Get the sensitive of Property.

getState

propertyGetState Source #

Arguments

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

prop: An Property.

-> m PropState

Returns: the state of Property.

Get the state of Property.

getSubProps

propertyGetSubProps Source #

Arguments

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

prop: An Property.

-> m PropList

Returns: the IBusPropList of Property. Should not be freed.

Get the IBusPropList of Property.

getSymbol

propertyGetSymbol Source #

Arguments

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

prop: An Property.

-> m Text

Returns: the symbol of Property. Should not be freed.

Get the symbol of Property.

getTooltip

propertyGetTooltip Source #

Arguments

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

prop: An Property.

-> m Text

Returns: the tooltip of Property. Should not be freed.

Get the tooltip of Property.

getVisible

propertyGetVisible Source #

Arguments

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

prop: An Property.

-> m Bool

Returns: the visible of Property.

Get the visible of Property.

new

propertyNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsText a, IsText b, IsPropList c) 
=> Text

key: Unique Identity for the Property.

-> PropType

type: PropType of Property.

-> a

label: Text shown in UI.

-> Maybe Text

icon: Icon file for the Property.

-> b

tooltip: Message shown if mouse hovered the Property.

-> Bool

sensitive: Whether the Property is sensitive to keyboard and mouse event.

-> Bool

visible: Whether the Property is visible.

-> PropState

state: IBusPropState of Property.

-> Maybe c

propList: PropList that contains sub IBusProperties.

-> m Property

Returns: A newly allocated Property.

Creates a new Property.

setIcon

propertySetIcon Source #

Arguments

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

prop: An Property.

-> Text

icon: Icon shown in UI. It could be a full path of an icon file or an icon name.

-> m () 

Set the icon of Property.

setLabel

propertySetLabel Source #

Arguments

:: (HasCallStack, MonadIO m, IsProperty a, IsText b) 
=> a

prop: An Property.

-> b

label: Text shown in UI.

-> m () 

Set the label of Property.

setSensitive

propertySetSensitive Source #

Arguments

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

prop: An Property.

-> Bool

sensitive: Whether the Property is sensitive.

-> m () 

Set whether the Property is sensitive.

setState

propertySetState Source #

Arguments

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

prop: An Property.

-> PropState

state: The state of the Property.

-> m () 

Set the state of the Property.

setSubProps

propertySetSubProps Source #

Arguments

:: (HasCallStack, MonadIO m, IsProperty a, IsPropList b) 
=> a

prop: An Property.

-> b

propList: PropList that contains sub IBusProperties.

-> m () 

Set the sub IBusProperties.

setSymbol

propertySetSymbol Source #

Arguments

:: (HasCallStack, MonadIO m, IsProperty a, IsText b) 
=> a

prop: An Property.

-> b

symbol: Text shown in UI.

-> m () 

Set the symbol of Property.

setTooltip

propertySetTooltip Source #

Arguments

:: (HasCallStack, MonadIO m, IsProperty a, IsText b) 
=> a

prop: An Property.

-> b

tooltip: Text of the tooltip.

-> m () 

Set the tooltip of Property.

setVisible

propertySetVisible Source #

Arguments

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

prop: An Property.

-> Bool

visible: Whether the Property is visible.

-> m () 

Set whether the Property is visible.

update

propertyUpdate Source #

Arguments

:: (HasCallStack, MonadIO m, IsProperty a, IsProperty b) 
=> a

prop: An Property.

-> b

propUpdate: PropList that contains sub IBusProperties.

-> m Bool

Returns: TRUE if update succeeded; FALSE otherwise.

Update the content of an Property. Property propUpdate can either be sub-property of prop, or holds new values for prop.

Properties

icon

No description available in the introspection data.

constructPropertyIcon :: (IsProperty o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getPropertyIcon :: (MonadIO m, IsProperty o) => o -> m Text Source #

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

get property #icon

setPropertyIcon :: (MonadIO m, IsProperty o) => o -> Text -> m () Source #

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

set property [ #icon := value ]

key

No description available in the introspection data.

constructPropertyKey :: (IsProperty o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getPropertyKey :: (MonadIO m, IsProperty o) => o -> m Text Source #

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

get property #key

label

No description available in the introspection data.

constructPropertyLabel :: (IsProperty o, MonadIO m, IsText a) => a -> m (GValueConstruct o) Source #

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

getPropertyLabel :: (MonadIO m, IsProperty o) => o -> m Text Source #

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

get property #label

setPropertyLabel :: (MonadIO m, IsProperty o, IsText a) => o -> a -> m () Source #

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

set property [ #label := value ]

propType

No description available in the introspection data.

constructPropertyPropType :: (IsProperty o, MonadIO m) => PropType -> m (GValueConstruct o) Source #

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

getPropertyPropType :: (MonadIO m, IsProperty o) => o -> m PropType Source #

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

get property #propType

sensitive

No description available in the introspection data.

constructPropertySensitive :: (IsProperty o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getPropertySensitive :: (MonadIO m, IsProperty o) => o -> m Bool Source #

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

get property #sensitive

setPropertySensitive :: (MonadIO m, IsProperty o) => o -> Bool -> m () Source #

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

set property [ #sensitive := value ]

state

No description available in the introspection data.

constructPropertyState :: (IsProperty o, MonadIO m) => PropState -> m (GValueConstruct o) Source #

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

getPropertyState :: (MonadIO m, IsProperty o) => o -> m PropState Source #

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

get property #state

setPropertyState :: (MonadIO m, IsProperty o) => o -> PropState -> m () Source #

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

set property [ #state := value ]

subProps

No description available in the introspection data.

constructPropertySubProps :: (IsProperty o, MonadIO m, IsPropList a) => a -> m (GValueConstruct o) Source #

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

getPropertySubProps :: (MonadIO m, IsProperty o) => o -> m PropList Source #

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

get property #subProps

setPropertySubProps :: (MonadIO m, IsProperty o, IsPropList a) => o -> a -> m () Source #

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

set property [ #subProps := value ]

symbol

No description available in the introspection data.

constructPropertySymbol :: (IsProperty o, MonadIO m, IsText a) => a -> m (GValueConstruct o) Source #

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

getPropertySymbol :: (MonadIO m, IsProperty o) => o -> m Text Source #

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

get property #symbol

setPropertySymbol :: (MonadIO m, IsProperty o, IsText a) => o -> a -> m () Source #

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

set property [ #symbol := value ]

tooltip

No description available in the introspection data.

constructPropertyTooltip :: (IsProperty o, MonadIO m, IsText a) => a -> m (GValueConstruct o) Source #

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

getPropertyTooltip :: (MonadIO m, IsProperty o) => o -> m Text Source #

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

get property #tooltip

setPropertyTooltip :: (MonadIO m, IsProperty o, IsText a) => o -> a -> m () Source #

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

set property [ #tooltip := value ]

visible

No description available in the introspection data.

constructPropertyVisible :: (IsProperty o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getPropertyVisible :: (MonadIO m, IsProperty o) => o -> m Bool Source #

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

get property #visible

setPropertyVisible :: (MonadIO m, IsProperty o) => o -> Bool -> m () Source #

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

set property [ #visible := value ]