| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.UI.FLTK.LowLevel.Table
- data TableCoordinate = TableCoordinate Row Column
- data Row = Row Int
- data Column = Column Int
- data CustomTableFuncs a = CustomTableFuncs {
- clearCustom :: Maybe (Ref a -> IO ())
- setRowsCustom :: Maybe (Ref a -> Int -> IO ())
- setColsCustom :: Maybe (Ref a -> Int -> IO ())
- mkSetInt :: (Ptr () -> CInt -> IO ()) -> IO (FunPtr (Ptr () -> CInt -> IO ()))
- mkDrawCell :: (Ptr () -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> IO ()) -> IO (FunPtr (Ptr () -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> IO ()))
- toSetIntPrim :: (Ref a -> Int -> IO ()) -> IO (FunPtr (Ptr () -> CInt -> IO ()))
- toDrawCellPrim :: (Ref a -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> IO (FunPtr (Ptr () -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> IO ()))
- fillCustomTableFunctionStruct :: forall a. Parent a Table => Ptr () -> Maybe (Ref a -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> CustomTableFuncs a -> IO ()
- defaultCustomTableFuncs :: forall a. Parent a Table => CustomTableFuncs a
- tableCustom :: Rectangle -> Maybe Text -> Maybe (Ref Table -> IO ()) -> (Ref Table -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> CustomWidgetFuncs Table -> CustomTableFuncs Table -> IO (Ref Table)
- tableCustomFunctionStruct :: (Parent a Widget, Parent b Table) => Maybe (Ref a -> IO ()) -> Maybe (Ref b -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> CustomWidgetFuncs a -> CustomTableFuncs b -> IO (Ptr ())
Documentation
data TableCoordinate Source #
Constructors
| TableCoordinate Row Column |
data CustomTableFuncs a Source #
Constructors
| CustomTableFuncs | |
Fields
| |
mkDrawCell :: (Ptr () -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> IO ()) -> IO (FunPtr (Ptr () -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> IO ())) Source #
toDrawCellPrim :: (Ref a -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> IO (FunPtr (Ptr () -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> CInt -> IO ())) Source #
fillCustomTableFunctionStruct :: forall a. Parent a Table => Ptr () -> Maybe (Ref a -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> CustomTableFuncs a -> IO () Source #
defaultCustomTableFuncs :: forall a. Parent a Table => CustomTableFuncs a Source #
Arguments
| :: Rectangle | Bounds of this table |
| -> Maybe Text | Optional label |
| -> Maybe (Ref Table -> IO ()) | Optional custom table drawing function |
| -> (Ref Table -> TableContext -> TableCoordinate -> Rectangle -> IO ()) | Custom table cell drawing function |
| -> CustomWidgetFuncs Table | Widget overrides |
| -> CustomTableFuncs Table | Table overrides |
| -> IO (Ref Table) |
tableCustomFunctionStruct :: (Parent a Widget, Parent b Table) => Maybe (Ref a -> IO ()) -> Maybe (Ref b -> TableContext -> TableCoordinate -> Rectangle -> IO ()) -> CustomWidgetFuncs a -> CustomTableFuncs b -> IO (Ptr ()) Source #
Hierarchy
Graphics.UI.FLTK.LowLevel.Widget | v Graphics.UI.FLTK.LowLevel.Group | v Graphics.UI.FLTK.LowLevel.Table
Table functions
add:: (ParentaWidget) =>RefTable->Refa ->IO() begin ::RefTable->IO() callbackCol ::RefTable->IO(Column) callbackContext ::RefTable->IO(TableContext) callbackRow ::RefTable->IO(Row) children ::RefTable->IO(Int) clear ::RefTable->IO() clearSuper ::RefTable->IO() destroy ::RefTable->IO() doCallback ::RefTable->TableContext->TableCoordinate->IO() draw ::RefTable->IO() drawSuper ::RefTable->IO() end ::RefTable->IO() find:: (ParentaWidget) =>RefTable->Refa ->IO(Int) findCell ::RefTable->TableContext->TableCoordinate->IO(MaybeRectangle) getArray ::RefTable->IO[RefWidget] getChild ::RefTable->Int->IO(Maybe(RefWidget)) getColHeader ::RefTable->IO(Bool) getColHeaderColor ::RefTable->IO(Color) getColHeaderHeight ::RefTable->IO(Int) getColPosition ::RefTable->IO(Column) getColResize ::RefTable->IO(Bool) getColResizeMin ::RefTable->IO(Int) getColWidth ::RefTable->Column->IO(Int) getCols ::RefTable->IO(Int) getRowHeader ::RefTable->IOBoolgetRowHeaderColor ::RefTable->IO(Color) getRowHeaderWidth ::RefTable->IO(Int) getRowHeight ::RefTable->Row->IO(Int) getRowPosition ::RefTable->IO(Row) getRowResize ::RefTable->IO(Bool) getRowResizeMin ::RefTable->IO(Int) getRows ::RefTable->IO(Int) getSelection ::RefTable->IO(TableCoordinate,TableCoordinate) getTableBox ::RefTable->IO(Boxtype) getTopRow ::RefTable->IO(Row) getVisibleCells ::RefTable->IO('TableCoordinate,TableCoordinate') handle ::RefTable->Event->IO(Int) hide ::RefTable->IO() hideSuper ::RefTable->IO() initSizes ::RefTable->IO() insert:: (ParentaWidget) =>RefTable->Refa ->Int->IO() insertWithBefore:: (ParentaWidget,ParentbWidget) =>RefTable->Refa ->Refb ->IO() isInteractiveResize ::RefTable->IO(Bool) isSelected ::RefTable->TableCoordinate->IOBoolmoveCursor ::RefTable->TableCoordinate->IO(Int) resize ::RefTable->Rectangle->IO() resizeSuper ::RefTable->Rectangle->IO() setColHeader ::RefTable->Bool->IO() setColHeaderColor ::RefTable->Color->IO() setColHeaderHeight ::RefTable->Int->IO() setColPosition ::RefTable->Column->IO() setColResize ::RefTable->Bool->IO() setColResizeMin ::RefTable->Int->IO() setColWidth ::RefTable->Column->Int->IO() setColWidthAll ::RefTable->Int->IO() setCols ::RefTable->Int->IO() setColsSuper ::RefTable->Int->IO() setRowHeader ::RefTable->Bool->IO() setRowHeaderColor ::RefTable->Color->IO() setRowHeaderWidth ::RefTable->Int->IO() setRowHeight ::RefTable->Row->Int->IO() setRowHeightAll ::RefTable->Int->IO() setRowPosition ::RefTable->Row->IO() setRowResize ::RefTable->Bool->IO() setRowResizeMin ::RefTable->Int->IO() setRows ::RefTable->Int->IO() setRowsSuper ::RefTable->Int->IO() setSelection ::RefTable->Int->Int->Int->Int->IO() setTableBox ::RefTable->Boxtype->IO() setTopRow ::RefTable->Row->IO() showWidget ::RefTable->IO() showWidgetSuper ::RefTable->IO()
Orphan instances
| (~) * impl (Int -> IO ()) => Op (SetColsSuper ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetRowsSuper ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (ClearSuper ()) Table orig impl Source # | |
| (~) * impl (TableContext -> TableCoordinate -> IO (Maybe Rectangle)) => Op (FindCell ()) Table orig impl Source # | |
| (~) * impl (IO TableContext) => Op (CallbackContext ()) Table orig impl Source # | |
| (~) * impl (IO Column) => Op (CallbackCol ()) Table orig impl Source # | |
| (~) * impl (IO Row) => Op (CallbackRow ()) Table orig impl Source # | |
| (~) * impl (TableCoordinate -> IO Int) => Op (MoveCursor ()) Table orig impl Source # | |
| (~) * impl (Int -> Int -> Int -> Int -> IO ()) => Op (SetSelection ()) Table orig impl Source # | |
| (~) * impl (IO (TableCoordinate, TableCoordinate)) => Op (GetSelection ()) Table orig impl Source # | |
| (~) * impl (TableCoordinate -> IO Bool) => Op (IsSelected ()) Table orig impl Source # | |
| (~) * impl (IO Row) => Op (GetTopRow ()) Table orig impl Source # | |
| (~) * impl (Row -> IO ()) => Op (SetTopRow ()) Table orig impl Source # | |
| (~) * impl (IO Column) => Op (GetColPosition ()) Table orig impl Source # | |
| (~) * impl (IO Row) => Op (GetRowPosition ()) Table orig impl Source # | |
| (~) * impl (Column -> IO ()) => Op (SetColPosition ()) Table orig impl Source # | |
| (~) * impl (Row -> IO ()) => Op (SetRowPosition ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetColWidthAll ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetRowHeightAll ()) Table orig impl Source # | |
| (~) * impl (Column -> IO Int) => Op (GetColWidth ()) Table orig impl Source # | |
| (~) * impl (Column -> Int -> IO ()) => Op (SetColWidth ()) Table orig impl Source # | |
| (~) * impl (Row -> IO Int) => Op (GetRowHeight ()) Table orig impl Source # | |
| (~) * impl (Row -> Int -> IO ()) => Op (SetRowHeight ()) Table orig impl Source # | |
| (~) * impl (IO Color) => Op (GetColHeaderColor ()) Table orig impl Source # | |
| (~) * impl (Color -> IO ()) => Op (SetColHeaderColor ()) Table orig impl Source # | |
| (~) * impl (IO Color) => Op (GetRowHeaderColor ()) Table orig impl Source # | |
| (~) * impl (Color -> IO ()) => Op (SetRowHeaderColor ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (GetRowHeaderWidth ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetRowHeaderWidth ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (GetColHeaderHeight ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetColHeaderHeight ()) Table orig impl Source # | |
| (~) * impl (Bool -> IO ()) => Op (SetColHeader ()) Table orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetColHeader ()) Table orig impl Source # | |
| (~) * impl (Bool -> IO ()) => Op (SetRowHeader ()) Table orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetRowHeader ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetRowResizeMin ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (GetRowResizeMin ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetColResizeMin ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (GetColResizeMin ()) Table orig impl Source # | |
| (~) * impl (Bool -> IO ()) => Op (SetColResize ()) Table orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetColResize ()) Table orig impl Source # | |
| (~) * impl (Bool -> IO ()) => Op (SetRowResize ()) Table orig impl Source # | |
| (~) * impl (IO Bool) => Op (GetRowResize ()) Table orig impl Source # | |
| (~) * impl (IO Bool) => Op (IsInteractiveResize ()) Table orig impl Source # | |
| (~) * impl (IO (TableCoordinate, TableCoordinate)) => Op (GetVisibleCells ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (GetCols ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetCols ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (GetRows ()) Table orig impl Source # | |
| (~) * impl (Int -> IO ()) => Op (SetRows ()) Table orig impl Source # | |
| (~) * impl (IO Boxtype) => Op (GetTableBox ()) Table orig impl Source # | |
| (~) * impl (Boxtype -> IO ()) => Op (SetTableBox ()) Table orig impl Source # | |
| (~) * impl (TableContext -> TableCoordinate -> IO ()) => Op (DoCallback ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (Draw ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (DrawSuper ()) Table orig impl Source # | |
| (~) * impl (Int -> IO (Maybe (Ref Widget))) => Op (GetChild ()) Table orig impl Source # | |
| (~) * impl (IO [Ref Widget]) => Op (GetArray ()) Table orig impl Source # | |
| (Parent a Widget, Parent b Widget, (~) * impl (Ref a -> Ref b -> IO ())) => Op (InsertWithBefore ()) Table orig impl Source # | |
| (~) * impl (IO Int) => Op (Children ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (InitSizes ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (Clear ()) Table orig impl Source # | |
| (Parent a Widget, (~) * impl (Ref a -> Int -> IO ())) => Op (Insert ()) Table orig impl Source # | |
| (Parent a Widget, (~) * impl (Ref a -> IO ())) => Op (Add ()) Table orig impl Source # | |
| (Parent a Widget, (~) * impl (Ref a -> IO Int)) => Op (Find ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (End ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (Begin ()) Table orig impl Source # | |
| (~) * impl (Rectangle -> IO ()) => Op (Resize ()) Table orig impl Source # | |
| (~) * impl (Rectangle -> IO ()) => Op (ResizeSuper ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (Hide ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (HideSuper ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (ShowWidget ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (ShowWidgetSuper ()) Table orig impl Source # | |
| (~) * impl (Event -> IO (Either UnknownEvent ())) => Op (Handle ()) Table orig impl Source # | |
| (~) * impl (IO ()) => Op (Destroy ()) Table orig impl Source # | |