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 FlowBoxChild = FlowBoxChild (ManagedPtr FlowBoxChild)
- class GObject o => IsFlowBoxChild o
- toFlowBoxChild :: IsFlowBoxChild o => o -> IO FlowBoxChild
- noFlowBoxChild :: Maybe FlowBoxChild
- data FlowBoxChildChangedMethodInfo
- flowBoxChildChanged :: (HasCallStack, MonadIO m, IsFlowBoxChild a) => a -> m ()
- data FlowBoxChildGetIndexMethodInfo
- flowBoxChildGetIndex :: (HasCallStack, MonadIO m, IsFlowBoxChild a) => a -> m Int32
- data FlowBoxChildIsSelectedMethodInfo
- flowBoxChildIsSelected :: (HasCallStack, MonadIO m, IsFlowBoxChild a) => a -> m Bool
- flowBoxChildNew :: (HasCallStack, MonadIO m) => m FlowBoxChild
- type C_FlowBoxChildActivateCallback = Ptr () -> Ptr () -> IO ()
- type FlowBoxChildActivateCallback = IO ()
- data FlowBoxChildActivateSignalInfo
- afterFlowBoxChildActivate :: (GObject a, MonadIO m) => a -> FlowBoxChildActivateCallback -> m SignalHandlerId
- genClosure_FlowBoxChildActivate :: FlowBoxChildActivateCallback -> IO Closure
- mk_FlowBoxChildActivateCallback :: C_FlowBoxChildActivateCallback -> IO (FunPtr C_FlowBoxChildActivateCallback)
- noFlowBoxChildActivateCallback :: Maybe FlowBoxChildActivateCallback
- onFlowBoxChildActivate :: (GObject a, MonadIO m) => a -> FlowBoxChildActivateCallback -> m SignalHandlerId
- wrap_FlowBoxChildActivateCallback :: FlowBoxChildActivateCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype FlowBoxChild Source #
GObject FlowBoxChild Source # | |
IsImplementorIface FlowBoxChild Source # | |
IsObject FlowBoxChild Source # | |
IsWidget FlowBoxChild Source # | |
IsFlowBoxChild FlowBoxChild Source # | |
IsContainer FlowBoxChild Source # | |
IsBin FlowBoxChild Source # | |
IsBuildable FlowBoxChild Source # | |
((~) * info (ResolveFlowBoxChildMethod t FlowBoxChild), MethodInfo * info FlowBoxChild p) => IsLabel t (FlowBoxChild -> p) Source # | |
((~) * info (ResolveFlowBoxChildMethod t FlowBoxChild), MethodInfo * info FlowBoxChild p) => IsLabelProxy t (FlowBoxChild -> p) Source # | |
HasAttributeList * FlowBoxChild Source # | |
type AttributeList FlowBoxChild Source # | |
type SignalList FlowBoxChild Source # | |
class GObject o => IsFlowBoxChild o Source #
toFlowBoxChild :: IsFlowBoxChild o => o -> IO FlowBoxChild Source #
Methods
changed
data FlowBoxChildChangedMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsFlowBoxChild a) => MethodInfo * FlowBoxChildChangedMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFlowBoxChild a) | |
=> a |
|
-> m () |
Marks child
as changed, causing any state that depends on this
to be updated. This affects sorting and filtering.
Note that calls to this method must be in sync with the data
used for the sorting and filtering functions. For instance, if
the list is mirroring some external data set, and *two* children
changed in the external data set when you call
flowBoxChildChanged
on the first child, the sort function
must only read the new data for the first of the two changed
children, otherwise the resorting of the children 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 sorting
and filtering functions into the widgets themselves. Another
alternative is to call flowBoxInvalidateSort
on any
model change, but that is more expensive.
Since: 3.12
getIndex
data FlowBoxChildGetIndexMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsFlowBoxChild a) => MethodInfo * FlowBoxChildGetIndexMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsFlowBoxChild a) | |
=> a |
|
-> m Int32 | Returns: the index of the |
Gets the current index of the child
in its FlowBox
container.
Since: 3.12
isSelected
data FlowBoxChildIsSelectedMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsFlowBoxChild a) => MethodInfo * FlowBoxChildIsSelectedMethodInfo a signature Source # | |
flowBoxChildIsSelected Source #
:: (HasCallStack, MonadIO m, IsFlowBoxChild a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the child
is currently selected in its
FlowBox
container.
Since: 3.12
new
:: (HasCallStack, MonadIO m) | |
=> m FlowBoxChild | Returns: a new |
Creates a new FlowBoxChild
, to be used as a child
of a FlowBox
.
Since: 3.12
Signals
activate
type FlowBoxChildActivateCallback = IO () Source #
afterFlowBoxChildActivate :: (GObject a, MonadIO m) => a -> FlowBoxChildActivateCallback -> m SignalHandlerId Source #
mk_FlowBoxChildActivateCallback :: C_FlowBoxChildActivateCallback -> IO (FunPtr C_FlowBoxChildActivateCallback) Source #
onFlowBoxChildActivate :: (GObject a, MonadIO m) => a -> FlowBoxChildActivateCallback -> m SignalHandlerId Source #
wrap_FlowBoxChildActivateCallback :: FlowBoxChildActivateCallback -> Ptr () -> Ptr () -> IO () Source #