gi-gtk-3.0.27: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.FlowBoxChild

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

class GObject o => IsFlowBoxChild o Source #

Type class for types which can be safely cast to FlowBoxChild, for instance with toFlowBoxChild.

toFlowBoxChild :: (MonadIO m, IsFlowBoxChild o) => o -> m FlowBoxChild Source #

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

Methods

changed

flowBoxChildChanged Source #

Arguments

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

child: a FlowBoxChild

-> 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

flowBoxChildGetIndex Source #

Arguments

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

child: a FlowBoxChild

-> m Int32

Returns: the index of the child, or -1 if the child is not in a flow box.

Gets the current index of the child in its FlowBox container.

Since: 3.12

isSelected

flowBoxChildIsSelected Source #

Arguments

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

child: a FlowBoxChild

-> m Bool

Returns: True if child is selected

Returns whether the child is currently selected in its FlowBox container.

Since: 3.12

new

flowBoxChildNew Source #

Arguments

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

Returns: a new FlowBoxChild

Creates a new FlowBoxChild, to be used as a child of a FlowBox.

Since: 3.12

Signals

activate

type C_FlowBoxChildActivateCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type FlowBoxChildActivateCallback = IO () Source #

The ::activate signal is emitted when the user activates a child widget in a FlowBox, either by clicking or double-clicking, or by using the Space or Enter key.

While this signal is used as a [keybinding signal][GtkBindingSignal], it can be used by applications for their own purposes.

afterFlowBoxChildActivate :: (IsFlowBoxChild a, MonadIO m) => a -> FlowBoxChildActivateCallback -> m SignalHandlerId Source #

Connect a signal handler for the “activate” signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after flowBoxChild #activate callback

onFlowBoxChildActivate :: (IsFlowBoxChild a, MonadIO m) => a -> FlowBoxChildActivateCallback -> m SignalHandlerId Source #

Connect a signal handler for the “activate” signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on flowBoxChild #activate callback