Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype ComboRow = ComboRow (ManagedPtr ComboRow)
- class (GObject o, IsDescendantOf ComboRow o) => IsComboRow o
- toComboRow :: (MonadIO m, IsComboRow o) => o -> m ComboRow
- comboRowBindModel :: (HasCallStack, MonadIO m, IsComboRow a, IsListModel b) => a -> Maybe b -> Maybe ListBoxCreateWidgetFunc -> Maybe ListBoxCreateWidgetFunc -> m ()
- comboRowBindNameModel :: (HasCallStack, MonadIO m, IsComboRow a, IsListModel b) => a -> Maybe b -> Maybe ComboRowGetNameFunc -> m ()
- comboRowGetModel :: (HasCallStack, MonadIO m, IsComboRow a) => a -> m (Maybe ListModel)
- comboRowGetSelectedIndex :: (HasCallStack, MonadIO m, IsComboRow a) => a -> m Int32
- comboRowGetUseSubtitle :: (HasCallStack, MonadIO m, IsComboRow a) => a -> m Bool
- comboRowNew :: (HasCallStack, MonadIO m) => m ComboRow
- comboRowSetForEnum :: (HasCallStack, MonadIO m, IsComboRow a) => a -> GType -> Maybe ComboRowGetEnumValueNameFunc -> m ()
- comboRowSetGetNameFunc :: (HasCallStack, MonadIO m, IsComboRow a) => a -> Maybe ComboRowGetNameFunc -> m ()
- comboRowSetSelectedIndex :: (HasCallStack, MonadIO m, IsComboRow a) => a -> Int32 -> m ()
- comboRowSetUseSubtitle :: (HasCallStack, MonadIO m, IsComboRow a) => a -> Bool -> m ()
- constructComboRowSelectedIndex :: (IsComboRow o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getComboRowSelectedIndex :: (MonadIO m, IsComboRow o) => o -> m Int32
- setComboRowSelectedIndex :: (MonadIO m, IsComboRow o) => o -> Int32 -> m ()
- constructComboRowUseSubtitle :: (IsComboRow o, MonadIO m) => Bool -> m (GValueConstruct o)
- getComboRowUseSubtitle :: (MonadIO m, IsComboRow o) => o -> m Bool
- setComboRowUseSubtitle :: (MonadIO m, IsComboRow o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq ComboRow Source # | |
GObject ComboRow Source # | |
Defined in GI.Handy.Objects.ComboRow | |
ManagedPtrNewtype ComboRow Source # | |
Defined in GI.Handy.Objects.ComboRow toManagedPtr :: ComboRow -> ManagedPtr ComboRow | |
TypedObject ComboRow Source # | |
Defined in GI.Handy.Objects.ComboRow glibType :: IO GType | |
IsGValue ComboRow Source # | Convert |
Defined in GI.Handy.Objects.ComboRow toGValue :: ComboRow -> IO GValue fromGValue :: GValue -> IO ComboRow | |
HasParentTypes ComboRow Source # | |
Defined in GI.Handy.Objects.ComboRow | |
type ParentTypes ComboRow Source # | |
Defined in GI.Handy.Objects.ComboRow type ParentTypes ComboRow = '[ActionRow, PreferencesRow, ListBoxRow, Bin, Container, Widget, Object, ImplementorIface, Actionable, Buildable] |
class (GObject o, IsDescendantOf ComboRow o) => IsComboRow o Source #
Type class for types which can be safely cast to ComboRow
, for instance with toComboRow
.
Instances
(GObject o, IsDescendantOf ComboRow o) => IsComboRow o Source # | |
Defined in GI.Handy.Objects.ComboRow |
toComboRow :: (MonadIO m, IsComboRow o) => o -> m ComboRow Source #
Methods
Overloaded methods
bindModel
:: (HasCallStack, MonadIO m, IsComboRow a, IsListModel b) | |
=> a |
|
-> Maybe b |
|
-> Maybe ListBoxCreateWidgetFunc |
|
-> Maybe ListBoxCreateWidgetFunc |
|
-> m () |
Binds model
to self
.
If self
was already bound to a model, that previous binding is destroyed.
The contents of self
are cleared and then filled with widgets that represent
items from model
. self
is updated whenever model
changes. If model
is
Nothing
, self
is left empty.
Since: 0.0.6
bindNameModel
comboRowBindNameModel Source #
:: (HasCallStack, MonadIO m, IsComboRow a, IsListModel b) | |
=> a |
|
-> Maybe b |
|
-> Maybe ComboRowGetNameFunc |
|
-> m () |
Binds model
to self
.
If self
was already bound to a model, that previous binding is destroyed.
The contents of self
are cleared and then filled with widgets that represent
items from model
. self
is updated whenever model
changes. If model
is
Nothing
, self
is left empty.
This is more conventient to use than comboRowBindModel
if you want
to represent items of the model with names.
Since: 0.0.6
getModel
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> m (Maybe ListModel) | Returns: the |
Gets the model bound to self
, or Nothing
if none is bound.
Since: 0.0.6
getSelectedIndex
comboRowGetSelectedIndex Source #
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> m Int32 | Returns: the index of the selected item, or -1 if no item is selected |
Gets the index of the selected item in its ListModel
.
Since: 0.0.7
getUseSubtitle
comboRowGetUseSubtitle Source #
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> m Bool | Returns: whether the current value of |
Gets whether the current value of self
should be displayed as its subtitle.
Since: 0.0.10
new
Creates a new ComboRow
.
Since: 0.0.6
setForEnum
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> GType |
|
-> Maybe ComboRowGetEnumValueNameFunc |
|
-> m () |
Creates a model for enumType
and binds it to self
. The items of the model
will be EnumValueObject
objects.
If self
was already bound to a model, that previous binding is destroyed.
The contents of self
are cleared and then filled with widgets that represent
items from model
. self
is updated whenever model
changes. If model
is
Nothing
, self
is left empty.
This is more conventient to use than comboRowBindNameModel
if you
want to represent values of an enumeration with names.
See enumValueRowName
.
Since: 0.0.6
setGetNameFunc
comboRowSetGetNameFunc Source #
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> Maybe ComboRowGetNameFunc |
|
-> m () |
Sets a closure to convert items into names. See HdyComboRow:use-subtitle.
Since: 0.0.10
setSelectedIndex
comboRowSetSelectedIndex Source #
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the index of the selected item in its ListModel
.
Since: 0.0.7
setUseSubtitle
comboRowSetUseSubtitle Source #
:: (HasCallStack, MonadIO m, IsComboRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the current value of self
should be displayed as its subtitle.
If True
, you should not access HdyActionRow:subtitle.
Since: 0.0.10
Properties
selectedIndex
The index of the selected item in its ListModel
.
Since: 0.0.7
constructComboRowSelectedIndex :: (IsComboRow o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “selected-index
” property. This is rarely needed directly, but it is used by new
.
getComboRowSelectedIndex :: (MonadIO m, IsComboRow o) => o -> m Int32 Source #
Get the value of the “selected-index
” property.
When overloading is enabled, this is equivalent to
get
comboRow #selectedIndex
setComboRowSelectedIndex :: (MonadIO m, IsComboRow o) => o -> Int32 -> m () Source #
Set the value of the “selected-index
” property.
When overloading is enabled, this is equivalent to
set
comboRow [ #selectedIndex:=
value ]
useSubtitle
True
to set the current value as the subtitle.
If you use a custom widget creation function, you will need to give self
a name conversion closure with comboRowSetGetNameFunc
.
If True
, you should not access HdyActionRow:subtitle.
Since: 0.0.10
constructComboRowUseSubtitle :: (IsComboRow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-subtitle
” property. This is rarely needed directly, but it is used by new
.
getComboRowUseSubtitle :: (MonadIO m, IsComboRow o) => o -> m Bool Source #
Get the value of the “use-subtitle
” property.
When overloading is enabled, this is equivalent to
get
comboRow #useSubtitle
setComboRowUseSubtitle :: (MonadIO m, IsComboRow o) => o -> Bool -> m () Source #
Set the value of the “use-subtitle
” property.
When overloading is enabled, this is equivalent to
set
comboRow [ #useSubtitle:=
value ]