Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- addColumnSelection
- addRowSelection
- getCaption
- getColumnAtIndex
- getColumnDescription
- getColumnExtentAt
- getColumnHeader
- getIndexAt
- getNColumns
- getNRows
- getRowAtIndex
- getRowDescription
- getRowExtentAt
- getRowHeader
- getSelectedColumns
- getSelectedRows
- getSummary
- isColumnSelected
- isRowSelected
- isSelected
- refAt
- removeColumnSelection
- removeRowSelection
- setCaption
- setColumnDescription
- setColumnHeader
- setRowDescription
- setRowHeader
- setSummary
- Signals
Table
should be implemented by components which present
elements ordered via rows and columns. It may also be used to
present tree-structured information if the nodes of the trees can
be said to contain multiple "columns". Individual elements of an
Table
are typically referred to as "cells". Those cells should
implement the interface TableCell
, but Atk
doesn't require
them to be direct children of the current Table
. They can be
grand-children, grand-grand-children etc. Table
provides the
API needed to get a individual cell based on the row and column
numbers.
Children of Table
are frequently "lightweight" objects, that
is, they may not have backing widgets in the host UI toolkit. They
are therefore often transient.
Since tables are often very complex, Table
includes provision
for offering simplified summary information, as well as row and
column headers and captions. Headers and captions are AtkObjects
which may implement other interfaces (Text
, Image
, etc.) as
appropriate. Table
summaries may themselves be (simplified)
AtkTables
, etc.
Note for implementors: in the past, Table
required that all the
cells should be direct children of Table
, and provided some
index based methods to request the cells. The practice showed that
that forcing made Table
implementation complex, and hard to
expose other kind of children, like rows or captions. Right now,
index-based methods are deprecated.
Synopsis
- newtype Table = Table (ManagedPtr Table)
- noTable :: Maybe Table
- class (GObject o, IsDescendantOf Table o) => IsTable o
- toTable :: (MonadIO m, IsTable o) => o -> m Table
- tableAddColumnSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool
- tableAddRowSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool
- tableGetCaption :: (HasCallStack, MonadIO m, IsTable a) => a -> m (Maybe Object)
- tableGetColumnAtIndex :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32
- tableGetColumnDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Text
- tableGetColumnExtentAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Int32
- tableGetColumnHeader :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m (Maybe Object)
- tableGetIndexAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Int32
- tableGetNColumns :: (HasCallStack, MonadIO m, IsTable a) => a -> m Int32
- tableGetNRows :: (HasCallStack, MonadIO m, IsTable a) => a -> m Int32
- tableGetRowAtIndex :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32
- tableGetRowDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m (Maybe Text)
- tableGetRowExtentAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Int32
- tableGetRowHeader :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m (Maybe Object)
- tableGetSelectedColumns :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32
- tableGetSelectedRows :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Int32
- tableGetSummary :: (HasCallStack, MonadIO m, IsTable a) => a -> m Object
- tableIsColumnSelected :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool
- tableIsRowSelected :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool
- tableIsSelected :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Bool
- tableRefAt :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Int32 -> m Object
- tableRemoveColumnSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool
- tableRemoveRowSelection :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> m Bool
- tableSetCaption :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> b -> m ()
- tableSetColumnDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Text -> m ()
- tableSetColumnHeader :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> Int32 -> b -> m ()
- tableSetRowDescription :: (HasCallStack, MonadIO m, IsTable a) => a -> Int32 -> Text -> m ()
- tableSetRowHeader :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> Int32 -> b -> m ()
- tableSetSummary :: (HasCallStack, MonadIO m, IsTable a, IsObject b) => a -> b -> m ()
- type C_TableColumnDeletedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- type TableColumnDeletedCallback = Int32 -> Int32 -> IO ()
- afterTableColumnDeleted :: (IsTable a, MonadIO m) => a -> TableColumnDeletedCallback -> m SignalHandlerId
- genClosure_TableColumnDeleted :: MonadIO m => TableColumnDeletedCallback -> m (GClosure C_TableColumnDeletedCallback)
- mk_TableColumnDeletedCallback :: C_TableColumnDeletedCallback -> IO (FunPtr C_TableColumnDeletedCallback)
- noTableColumnDeletedCallback :: Maybe TableColumnDeletedCallback
- onTableColumnDeleted :: (IsTable a, MonadIO m) => a -> TableColumnDeletedCallback -> m SignalHandlerId
- wrap_TableColumnDeletedCallback :: TableColumnDeletedCallback -> C_TableColumnDeletedCallback
- type C_TableColumnInsertedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- type TableColumnInsertedCallback = Int32 -> Int32 -> IO ()
- afterTableColumnInserted :: (IsTable a, MonadIO m) => a -> TableColumnInsertedCallback -> m SignalHandlerId
- genClosure_TableColumnInserted :: MonadIO m => TableColumnInsertedCallback -> m (GClosure C_TableColumnInsertedCallback)
- mk_TableColumnInsertedCallback :: C_TableColumnInsertedCallback -> IO (FunPtr C_TableColumnInsertedCallback)
- noTableColumnInsertedCallback :: Maybe TableColumnInsertedCallback
- onTableColumnInserted :: (IsTable a, MonadIO m) => a -> TableColumnInsertedCallback -> m SignalHandlerId
- wrap_TableColumnInsertedCallback :: TableColumnInsertedCallback -> C_TableColumnInsertedCallback
- type C_TableColumnReorderedCallback = Ptr () -> Ptr () -> IO ()
- type TableColumnReorderedCallback = IO ()
- afterTableColumnReordered :: (IsTable a, MonadIO m) => a -> TableColumnReorderedCallback -> m SignalHandlerId
- genClosure_TableColumnReordered :: MonadIO m => TableColumnReorderedCallback -> m (GClosure C_TableColumnReorderedCallback)
- mk_TableColumnReorderedCallback :: C_TableColumnReorderedCallback -> IO (FunPtr C_TableColumnReorderedCallback)
- noTableColumnReorderedCallback :: Maybe TableColumnReorderedCallback
- onTableColumnReordered :: (IsTable a, MonadIO m) => a -> TableColumnReorderedCallback -> m SignalHandlerId
- wrap_TableColumnReorderedCallback :: TableColumnReorderedCallback -> C_TableColumnReorderedCallback
- type C_TableModelChangedCallback = Ptr () -> Ptr () -> IO ()
- type TableModelChangedCallback = IO ()
- afterTableModelChanged :: (IsTable a, MonadIO m) => a -> TableModelChangedCallback -> m SignalHandlerId
- genClosure_TableModelChanged :: MonadIO m => TableModelChangedCallback -> m (GClosure C_TableModelChangedCallback)
- mk_TableModelChangedCallback :: C_TableModelChangedCallback -> IO (FunPtr C_TableModelChangedCallback)
- noTableModelChangedCallback :: Maybe TableModelChangedCallback
- onTableModelChanged :: (IsTable a, MonadIO m) => a -> TableModelChangedCallback -> m SignalHandlerId
- wrap_TableModelChangedCallback :: TableModelChangedCallback -> C_TableModelChangedCallback
- type C_TableRowDeletedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- type TableRowDeletedCallback = Int32 -> Int32 -> IO ()
- afterTableRowDeleted :: (IsTable a, MonadIO m) => a -> TableRowDeletedCallback -> m SignalHandlerId
- genClosure_TableRowDeleted :: MonadIO m => TableRowDeletedCallback -> m (GClosure C_TableRowDeletedCallback)
- mk_TableRowDeletedCallback :: C_TableRowDeletedCallback -> IO (FunPtr C_TableRowDeletedCallback)
- noTableRowDeletedCallback :: Maybe TableRowDeletedCallback
- onTableRowDeleted :: (IsTable a, MonadIO m) => a -> TableRowDeletedCallback -> m SignalHandlerId
- wrap_TableRowDeletedCallback :: TableRowDeletedCallback -> C_TableRowDeletedCallback
- type C_TableRowInsertedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO ()
- type TableRowInsertedCallback = Int32 -> Int32 -> IO ()
- afterTableRowInserted :: (IsTable a, MonadIO m) => a -> TableRowInsertedCallback -> m SignalHandlerId
- genClosure_TableRowInserted :: MonadIO m => TableRowInsertedCallback -> m (GClosure C_TableRowInsertedCallback)
- mk_TableRowInsertedCallback :: C_TableRowInsertedCallback -> IO (FunPtr C_TableRowInsertedCallback)
- noTableRowInsertedCallback :: Maybe TableRowInsertedCallback
- onTableRowInserted :: (IsTable a, MonadIO m) => a -> TableRowInsertedCallback -> m SignalHandlerId
- wrap_TableRowInsertedCallback :: TableRowInsertedCallback -> C_TableRowInsertedCallback
- type C_TableRowReorderedCallback = Ptr () -> Ptr () -> IO ()
- type TableRowReorderedCallback = IO ()
- afterTableRowReordered :: (IsTable a, MonadIO m) => a -> TableRowReorderedCallback -> m SignalHandlerId
- genClosure_TableRowReordered :: MonadIO m => TableRowReorderedCallback -> m (GClosure C_TableRowReorderedCallback)
- mk_TableRowReorderedCallback :: C_TableRowReorderedCallback -> IO (FunPtr C_TableRowReorderedCallback)
- noTableRowReorderedCallback :: Maybe TableRowReorderedCallback
- onTableRowReordered :: (IsTable a, MonadIO m) => a -> TableRowReorderedCallback -> m SignalHandlerId
- wrap_TableRowReorderedCallback :: TableRowReorderedCallback -> C_TableRowReorderedCallback
Exported types
Memory-managed wrapper type.
Instances
GObject Table Source # | |
Defined in GI.Atk.Interfaces.Table gobjectType :: IO GType # | |
HasParentTypes Table Source # | |
Defined in GI.Atk.Interfaces.Table | |
type ParentTypes Table Source # | |
Defined in GI.Atk.Interfaces.Table |
class (GObject o, IsDescendantOf Table o) => IsTable o Source #
Instances
(GObject o, IsDescendantOf Table o) => IsTable o Source # | |
Defined in GI.Atk.Interfaces.Table |
Methods
addColumnSelection
tableAddColumnSelection Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if the column was successfully added to the selection, or 0 if value does not implement this interface. |
Adds the specified column
to the selection.
addRowSelection
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if row was successfully added to selection, or 0 if value does not implement this interface. |
Adds the specified row
to the selection.
getCaption
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> m (Maybe Object) | Returns: a AtkObject* representing the
table caption, or |
Gets the caption for the table
.
getColumnAtIndex
tableGetColumnAtIndex Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: a gint representing the column at the specified index, or -1 if the table does not implement this method. |
Deprecated: Since 2.12.
Gets a gint
representing the column at the specified index_
.
getColumnDescription
tableGetColumnDescription Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Text | Returns: a gchar* representing the column description, or |
Gets the description text of the specified column
in the table
getColumnExtentAt
tableGetColumnExtentAt Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: a gint representing the column extent at specified position, or 0 if value does not implement this interface. |
Gets the number of columns occupied by the accessible object
at the specified row
and column
in the table
.
getColumnHeader
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe Object) | Returns: a AtkObject* representing the
specified column header, or |
Gets the column header of a specified column in an accessible table.
getIndexAt
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: a |
Deprecated: Since 2.12. Use tableRefAt
in order to get theaccessible that represents the cell at (row
, column
)
Gets a gint
representing the index at the specified row
and
column
.
getNColumns
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> m Int32 | Returns: a gint representing the number of columns, or 0 if value does not implement this interface. |
Gets the number of columns in the table.
getNRows
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> m Int32 | Returns: a gint representing the number of rows, or 0 if value does not implement this interface. |
Gets the number of rows in the table.
getRowAtIndex
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: a gint representing the row at the specified index, or -1 if the table does not implement this method. |
Deprecated: since 2.12.
Gets a gint
representing the row at the specified index_
.
getRowDescription
tableGetRowDescription Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe Text) | Returns: a gchar* representing the row description, or
|
Gets the description text of the specified row in the table
getRowExtentAt
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: a gint representing the row extent at specified position, or 0 if value does not implement this interface. |
Gets the number of rows occupied by the accessible object
at a specified row
and column
in the table
.
getRowHeader
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe Object) | Returns: a AtkObject* representing the
specified row header, or |
Gets the row header of a specified row in an accessible table.
getSelectedColumns
tableGetSelectedColumns Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: a gint representing the number of selected columns,
or |
Gets the selected columns of the table by initializing **selected with the selected column numbers. This array should be freed by the caller.
getSelectedRows
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Int32 | Returns: a gint representing the number of selected rows, or zero if value does not implement this interface. |
Gets the selected rows of the table by initializing **selected with the selected row numbers. This array should be freed by the caller.
getSummary
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> m Object | Returns: a AtkObject* representing a summary description of the table, or zero if value does not implement this interface. |
Gets the summary description of the table.
isColumnSelected
tableIsColumnSelected Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if the column is selected, or 0 if value does not implement this interface. |
Gets a boolean value indicating whether the specified column
is selected
isRowSelected
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if the row is selected, or 0 if value does not implement this interface. |
Gets a boolean value indicating whether the specified row
is selected
isSelected
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if the cell is selected, or 0 if value does not implement this interface. |
Gets a boolean value indicating whether the accessible object
at the specified row
and column
is selected
refAt
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Object | Returns: an |
Get a reference to the table cell at row
, column
. This cell
should implement the interface TableCell
removeColumnSelection
tableRemoveColumnSelection Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if the column was successfully removed from the selection, or 0 if value does not implement this interface. |
Adds the specified column
to the selection.
removeRowSelection
tableRemoveRowSelection Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> m Bool | Returns: a gboolean representing if the row was successfully removed from the selection, or 0 if value does not implement this interface. |
Removes the specified row
from the selection.
setCaption
:: (HasCallStack, MonadIO m, IsTable a, IsObject b) | |
=> a |
|
-> b |
|
-> m () |
Sets the caption for the table.
setColumnDescription
tableSetColumnDescription Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Text |
|
-> m () |
Sets the description text for the specified column
of the table
.
setColumnHeader
:: (HasCallStack, MonadIO m, IsTable a, IsObject b) | |
=> a |
|
-> Int32 |
|
-> b |
|
-> m () |
Sets the specified column header to header
.
setRowDescription
tableSetRowDescription Source #
:: (HasCallStack, MonadIO m, IsTable a) | |
=> a |
|
-> Int32 |
|
-> Text |
|
-> m () |
Sets the description text for the specified row
of table
.
setRowHeader
:: (HasCallStack, MonadIO m, IsTable a, IsObject b) | |
=> a |
|
-> Int32 |
|
-> b |
|
-> m () |
Sets the specified row header to header
.
setSummary
:: (HasCallStack, MonadIO m, IsTable a, IsObject b) | |
=> a |
|
-> b |
|
-> m () |
Sets the summary description of the table.
Signals
columnDeleted
type C_TableColumnDeletedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableColumnDeletedCallback Source #
= Int32 |
|
-> Int32 |
|
-> IO () |
The "column-deleted" signal is emitted by an object which implements the AtkTable interface when a column is deleted.
afterTableColumnDeleted :: (IsTable a, MonadIO m) => a -> TableColumnDeletedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “column-deleted
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #columnDeleted callback
genClosure_TableColumnDeleted :: MonadIO m => TableColumnDeletedCallback -> m (GClosure C_TableColumnDeletedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableColumnDeletedCallback :: C_TableColumnDeletedCallback -> IO (FunPtr C_TableColumnDeletedCallback) Source #
Generate a function pointer callable from C code, from a C_TableColumnDeletedCallback
.
noTableColumnDeletedCallback :: Maybe TableColumnDeletedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableColumnDeletedCallback
onTableColumnDeleted :: (IsTable a, MonadIO m) => a -> TableColumnDeletedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “column-deleted
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #columnDeleted callback
wrap_TableColumnDeletedCallback :: TableColumnDeletedCallback -> C_TableColumnDeletedCallback Source #
Wrap a TableColumnDeletedCallback
into a C_TableColumnDeletedCallback
.
columnInserted
type C_TableColumnInsertedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableColumnInsertedCallback Source #
= Int32 |
|
-> Int32 |
|
-> IO () |
The "column-inserted" signal is emitted by an object which implements the AtkTable interface when a column is inserted.
afterTableColumnInserted :: (IsTable a, MonadIO m) => a -> TableColumnInsertedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “column-inserted
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #columnInserted callback
genClosure_TableColumnInserted :: MonadIO m => TableColumnInsertedCallback -> m (GClosure C_TableColumnInsertedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableColumnInsertedCallback :: C_TableColumnInsertedCallback -> IO (FunPtr C_TableColumnInsertedCallback) Source #
Generate a function pointer callable from C code, from a C_TableColumnInsertedCallback
.
noTableColumnInsertedCallback :: Maybe TableColumnInsertedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableColumnInsertedCallback
onTableColumnInserted :: (IsTable a, MonadIO m) => a -> TableColumnInsertedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “column-inserted
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #columnInserted callback
wrap_TableColumnInsertedCallback :: TableColumnInsertedCallback -> C_TableColumnInsertedCallback Source #
Wrap a TableColumnInsertedCallback
into a C_TableColumnInsertedCallback
.
columnReordered
type C_TableColumnReorderedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableColumnReorderedCallback = IO () Source #
The "column-reordered" signal is emitted by an object which implements the AtkTable interface when the columns are reordered.
afterTableColumnReordered :: (IsTable a, MonadIO m) => a -> TableColumnReorderedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “column-reordered
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #columnReordered callback
genClosure_TableColumnReordered :: MonadIO m => TableColumnReorderedCallback -> m (GClosure C_TableColumnReorderedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableColumnReorderedCallback :: C_TableColumnReorderedCallback -> IO (FunPtr C_TableColumnReorderedCallback) Source #
Generate a function pointer callable from C code, from a C_TableColumnReorderedCallback
.
noTableColumnReorderedCallback :: Maybe TableColumnReorderedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableColumnReorderedCallback
onTableColumnReordered :: (IsTable a, MonadIO m) => a -> TableColumnReorderedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “column-reordered
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #columnReordered callback
wrap_TableColumnReorderedCallback :: TableColumnReorderedCallback -> C_TableColumnReorderedCallback Source #
Wrap a TableColumnReorderedCallback
into a C_TableColumnReorderedCallback
.
modelChanged
type C_TableModelChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableModelChangedCallback = IO () Source #
The "model-changed" signal is emitted by an object which implements the AtkTable interface when the model displayed by the table changes.
afterTableModelChanged :: (IsTable a, MonadIO m) => a -> TableModelChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “model-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #modelChanged callback
genClosure_TableModelChanged :: MonadIO m => TableModelChangedCallback -> m (GClosure C_TableModelChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableModelChangedCallback :: C_TableModelChangedCallback -> IO (FunPtr C_TableModelChangedCallback) Source #
Generate a function pointer callable from C code, from a C_TableModelChangedCallback
.
noTableModelChangedCallback :: Maybe TableModelChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableModelChangedCallback
onTableModelChanged :: (IsTable a, MonadIO m) => a -> TableModelChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “model-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #modelChanged callback
wrap_TableModelChangedCallback :: TableModelChangedCallback -> C_TableModelChangedCallback Source #
Wrap a TableModelChangedCallback
into a C_TableModelChangedCallback
.
rowDeleted
type C_TableRowDeletedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableRowDeletedCallback Source #
The "row-deleted" signal is emitted by an object which implements the AtkTable interface when a row is deleted.
afterTableRowDeleted :: (IsTable a, MonadIO m) => a -> TableRowDeletedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “row-deleted
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #rowDeleted callback
genClosure_TableRowDeleted :: MonadIO m => TableRowDeletedCallback -> m (GClosure C_TableRowDeletedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableRowDeletedCallback :: C_TableRowDeletedCallback -> IO (FunPtr C_TableRowDeletedCallback) Source #
Generate a function pointer callable from C code, from a C_TableRowDeletedCallback
.
noTableRowDeletedCallback :: Maybe TableRowDeletedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableRowDeletedCallback
onTableRowDeleted :: (IsTable a, MonadIO m) => a -> TableRowDeletedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “row-deleted
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #rowDeleted callback
wrap_TableRowDeletedCallback :: TableRowDeletedCallback -> C_TableRowDeletedCallback Source #
Wrap a TableRowDeletedCallback
into a C_TableRowDeletedCallback
.
rowInserted
type C_TableRowInsertedCallback = Ptr () -> Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableRowInsertedCallback Source #
= Int32 |
|
-> Int32 |
|
-> IO () |
The "row-inserted" signal is emitted by an object which implements the AtkTable interface when a row is inserted.
afterTableRowInserted :: (IsTable a, MonadIO m) => a -> TableRowInsertedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “row-inserted
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #rowInserted callback
genClosure_TableRowInserted :: MonadIO m => TableRowInsertedCallback -> m (GClosure C_TableRowInsertedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableRowInsertedCallback :: C_TableRowInsertedCallback -> IO (FunPtr C_TableRowInsertedCallback) Source #
Generate a function pointer callable from C code, from a C_TableRowInsertedCallback
.
noTableRowInsertedCallback :: Maybe TableRowInsertedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableRowInsertedCallback
onTableRowInserted :: (IsTable a, MonadIO m) => a -> TableRowInsertedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “row-inserted
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #rowInserted callback
wrap_TableRowInsertedCallback :: TableRowInsertedCallback -> C_TableRowInsertedCallback Source #
Wrap a TableRowInsertedCallback
into a C_TableRowInsertedCallback
.
rowReordered
type C_TableRowReorderedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type TableRowReorderedCallback = IO () Source #
The "row-reordered" signal is emitted by an object which implements the AtkTable interface when the rows are reordered.
afterTableRowReordered :: (IsTable a, MonadIO m) => a -> TableRowReorderedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “row-reordered
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
table #rowReordered callback
genClosure_TableRowReordered :: MonadIO m => TableRowReorderedCallback -> m (GClosure C_TableRowReorderedCallback) Source #
Wrap the callback into a GClosure
.
mk_TableRowReorderedCallback :: C_TableRowReorderedCallback -> IO (FunPtr C_TableRowReorderedCallback) Source #
Generate a function pointer callable from C code, from a C_TableRowReorderedCallback
.
noTableRowReorderedCallback :: Maybe TableRowReorderedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
TableRowReorderedCallback
onTableRowReordered :: (IsTable a, MonadIO m) => a -> TableRowReorderedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “row-reordered
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
table #rowReordered callback