Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype ListBoxRow = ListBoxRow (ManagedPtr ListBoxRow)
- class GObject o => IsListBoxRow o
- toListBoxRow :: IsListBoxRow o => o -> IO ListBoxRow
- noListBoxRow :: Maybe ListBoxRow
- data ListBoxRowChangedMethodInfo
- listBoxRowChanged :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m ()
- data ListBoxRowGetActivatableMethodInfo
- listBoxRowGetActivatable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Bool
- data ListBoxRowGetHeaderMethodInfo
- listBoxRowGetHeader :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m (Maybe Widget)
- data ListBoxRowGetIndexMethodInfo
- listBoxRowGetIndex :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Int32
- data ListBoxRowGetSelectableMethodInfo
- listBoxRowGetSelectable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Bool
- data ListBoxRowIsSelectedMethodInfo
- listBoxRowIsSelected :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Bool
- listBoxRowNew :: (HasCallStack, MonadIO m) => m ListBoxRow
- data ListBoxRowSetActivatableMethodInfo
- listBoxRowSetActivatable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> Bool -> m ()
- data ListBoxRowSetHeaderMethodInfo
- listBoxRowSetHeader :: (HasCallStack, MonadIO m, IsListBoxRow a, IsWidget b) => a -> Maybe b -> m ()
- data ListBoxRowSetSelectableMethodInfo
- listBoxRowSetSelectable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> Bool -> m ()
- data ListBoxRowActivatablePropertyInfo
- constructListBoxRowActivatable :: IsListBoxRow o => Bool -> IO (GValueConstruct o)
- getListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> m Bool
- listBoxRowActivatable :: AttrLabelProxy "activatable"
- setListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m ()
- data ListBoxRowSelectablePropertyInfo
- constructListBoxRowSelectable :: IsListBoxRow o => Bool -> IO (GValueConstruct o)
- getListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> m Bool
- listBoxRowSelectable :: AttrLabelProxy "selectable"
- setListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m ()
- type C_ListBoxRowActivateCallback = Ptr () -> Ptr () -> IO ()
- type ListBoxRowActivateCallback = IO ()
- data ListBoxRowActivateSignalInfo
- afterListBoxRowActivate :: (GObject a, MonadIO m) => a -> ListBoxRowActivateCallback -> m SignalHandlerId
- genClosure_ListBoxRowActivate :: ListBoxRowActivateCallback -> IO Closure
- mk_ListBoxRowActivateCallback :: C_ListBoxRowActivateCallback -> IO (FunPtr C_ListBoxRowActivateCallback)
- noListBoxRowActivateCallback :: Maybe ListBoxRowActivateCallback
- onListBoxRowActivate :: (GObject a, MonadIO m) => a -> ListBoxRowActivateCallback -> m SignalHandlerId
- wrap_ListBoxRowActivateCallback :: ListBoxRowActivateCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype ListBoxRow Source #
GObject ListBoxRow Source # | |
IsImplementorIface ListBoxRow Source # | |
IsObject ListBoxRow Source # | |
IsWidget ListBoxRow Source # | |
IsListBoxRow ListBoxRow Source # | |
IsContainer ListBoxRow Source # | |
IsBin ListBoxRow Source # | |
IsBuildable ListBoxRow Source # | |
((~) * info (ResolveListBoxRowMethod t ListBoxRow), MethodInfo * info ListBoxRow p) => IsLabel t (ListBoxRow -> p) Source # | |
((~) * info (ResolveListBoxRowMethod t ListBoxRow), MethodInfo * info ListBoxRow p) => IsLabelProxy t (ListBoxRow -> p) Source # | |
HasAttributeList * ListBoxRow Source # | |
type AttributeList ListBoxRow Source # | |
type SignalList ListBoxRow Source # | |
class GObject o => IsListBoxRow o Source #
toListBoxRow :: IsListBoxRow o => o -> IO ListBoxRow Source #
Methods
changed
data ListBoxRowChangedMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowChangedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m () |
Marks row
as changed, causing any state that depends on this
to be updated. This affects sorting, filtering and headers.
Note that calls to this method must be in sync with the data
used for the row functions. For instance, if the list is
mirroring some external data set, and *two* rows changed in the
external data set then when you call listBoxRowChanged
on the first row the sort function must only read the new data
for the first of the two changed rows, otherwise the resorting
of the rows will be wrong.
This generally means that if you don’t fully control the data
model you have to duplicate the data that affects the listbox
row functions into the row widgets themselves. Another alternative
is to call listBoxInvalidateSort
on any model change,
but that is more expensive.
Since: 3.10
getActivatable
data ListBoxRowGetActivatableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowGetActivatableMethodInfo a signature Source # | |
listBoxRowGetActivatable Source #
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the ListBoxRow
:activatable
property
for this row.
Since: 3.14
getHeader
data ListBoxRowGetHeaderMethodInfo Source #
((~) * signature (m (Maybe Widget)), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowGetHeaderMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the current header, or |
Returns the current header of the row
. This can be used
in a ListBoxUpdateHeaderFunc
to see if there is a header
set already, and if so to update the state of it.
Since: 3.10
getIndex
data ListBoxRowGetIndexMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowGetIndexMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Int32 | Returns: the index of the |
Gets the current index of the row
in its ListBox
container.
Since: 3.10
getSelectable
data ListBoxRowGetSelectableMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowGetSelectableMethodInfo a signature Source # | |
listBoxRowGetSelectable Source #
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the ListBoxRow
:selectable
property
for this row.
Since: 3.14
isSelected
data ListBoxRowIsSelectedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowIsSelectedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the child is currently selected in its
ListBox
container.
Since: 3.14
new
:: (HasCallStack, MonadIO m) | |
=> m ListBoxRow | Returns: a new |
Creates a new ListBoxRow
, to be used as a child of a ListBox
.
Since: 3.10
setActivatable
data ListBoxRowSetActivatableMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowSetActivatableMethodInfo a signature Source # | |
listBoxRowSetActivatable Source #
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Set the ListBoxRow
:activatable
property for this row.
Since: 3.14
setHeader
data ListBoxRowSetHeaderMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsListBoxRow a, IsWidget b) => MethodInfo * ListBoxRowSetHeaderMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsListBoxRow a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the current header of the row
. This is only allowed to be called
from a ListBoxUpdateHeaderFunc
. It will replace any existing
header in the row, and be shown in front of the row in the listbox.
Since: 3.10
setSelectable
data ListBoxRowSetSelectableMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsListBoxRow a) => MethodInfo * ListBoxRowSetSelectableMethodInfo a signature Source # | |
listBoxRowSetSelectable Source #
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Set the ListBoxRow
:selectable
property for this row.
Since: 3.14
Properties
activatable
data ListBoxRowActivatablePropertyInfo Source #
constructListBoxRowActivatable :: IsListBoxRow o => Bool -> IO (GValueConstruct o) Source #
getListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> m Bool Source #
listBoxRowActivatable :: AttrLabelProxy "activatable" Source #
setListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m () Source #
selectable
data ListBoxRowSelectablePropertyInfo Source #
constructListBoxRowSelectable :: IsListBoxRow o => Bool -> IO (GValueConstruct o) Source #
getListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> m Bool Source #
listBoxRowSelectable :: AttrLabelProxy "selectable" Source #
setListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m () Source #
Signals
activate
type ListBoxRowActivateCallback = IO () Source #
afterListBoxRowActivate :: (GObject a, MonadIO m) => a -> ListBoxRowActivateCallback -> m SignalHandlerId Source #
mk_ListBoxRowActivateCallback :: C_ListBoxRowActivateCallback -> IO (FunPtr C_ListBoxRowActivateCallback) Source #
onListBoxRowActivate :: (GObject a, MonadIO m) => a -> ListBoxRowActivateCallback -> m SignalHandlerId Source #
wrap_ListBoxRowActivateCallback :: ListBoxRowActivateCallback -> Ptr () -> Ptr () -> IO () Source #