module Graphics.UI.Gtk.ModelView.TreeView (
TreeView,
TreeViewClass,
castToTreeView, gTypeTreeView,
toTreeView,
Point,
DragAction(..),
TreeViewGridLines(..),
treeViewNew,
treeViewNewWithModel,
treeViewGetModel,
treeViewSetModel,
treeViewGetSelection,
treeViewGetHAdjustment,
treeViewSetHAdjustment,
treeViewGetVAdjustment,
treeViewSetVAdjustment,
treeViewGetHeadersVisible,
treeViewSetHeadersVisible,
treeViewColumnsAutosize,
treeViewSetHeadersClickable,
treeViewGetRulesHint,
treeViewSetRulesHint,
treeViewAppendColumn,
treeViewRemoveColumn,
treeViewInsertColumn,
treeViewGetColumn,
treeViewGetColumns,
treeViewMoveColumnAfter,
treeViewMoveColumnFirst,
treeViewSetExpanderColumn,
treeViewGetExpanderColumn,
treeViewSetColumnDragFunction,
treeViewScrollToPoint,
treeViewScrollToCell,
treeViewSetCursor,
treeViewSetCursorOnCell,
treeViewGetCursor,
treeViewRowActivated,
treeViewExpandAll,
treeViewCollapseAll,
treeViewExpandToPath,
treeViewExpandRow,
treeViewCollapseRow,
treeViewMapExpandedRows,
treeViewRowExpanded,
treeViewGetReorderable,
treeViewSetReorderable,
treeViewGetPathAtPos,
treeViewGetCellArea,
treeViewGetBackgroundArea,
treeViewGetVisibleRect,
treeViewConvertBinWindowToTreeCoords,
treeViewConvertBinWindowToWidgetCoords,
treeViewConvertTreeToBinWindowCoords,
treeViewConvertTreeToWidgetCoords,
treeViewConvertWidgetToBinWindowCoords,
treeViewConvertWidgetToTreeCoords,
treeViewCreateRowDragIcon,
treeViewGetEnableSearch,
treeViewSetEnableSearch,
treeViewGetSearchColumn,
treeViewSetSearchColumn,
treeViewSetSearchEqualFunc,
treeViewGetFixedHeightMode,
treeViewSetFixedHeightMode,
treeViewGetHoverSelection,
treeViewSetHoverSelection,
treeViewGetHoverExpand,
treeViewSetHoverExpand,
treeViewGetHeadersClickable,
treeViewGetVisibleRange,
treeViewEnableModelDragDest,
treeViewEnableModelDragSource,
treeViewUnsetRowsDragSource,
treeViewUnsetRowsDragDest,
treeViewGetSearchEntry,
treeViewSetSearchEntry,
treeViewSetRowSeparatorFunc,
treeViewGetRubberBanding,
treeViewSetRubberBanding,
treeViewGetEnableTreeLines,
treeViewSetEnableTreeLines,
treeViewGetGridLines,
treeViewSetGridLines,
treeViewSetTooltipRow,
treeViewSetTooltipCell,
treeViewGetTooltipContext,
treeViewModel,
treeViewHAdjustment,
treeViewVAdjustment,
treeViewHeadersVisible,
treeViewHeadersClickable,
treeViewExpanderColumn,
treeViewReorderable,
treeViewRulesHint,
treeViewEnableSearch,
treeViewSearchColumn,
treeViewFixedHeightMode,
treeViewHoverSelection,
treeViewHoverExpand,
treeViewShowExpanders,
treeViewLevelIndentation,
treeViewRubberBanding,
treeViewEnableGridLines,
treeViewEnableTreeLines,
treeViewGridLines,
treeViewSearchEntry,
treeViewTooltipColumn,
columnsChanged,
cursorChanged,
rowCollapsed,
rowExpanded,
rowActivated,
testCollapseRow,
testExpandRow,
treeViewWidgetToTreeCoords,
treeViewTreeToWidgetCoords,
onColumnsChanged,
afterColumnsChanged,
onCursorChanged,
afterCursorChanged,
onRowActivated,
afterRowActivated,
onRowCollapsed,
afterRowCollapsed,
onRowExpanded,
afterRowExpanded,
onStartInteractiveSearch,
afterStartInteractiveSearch,
onTestCollapseRow,
afterTestCollapseRow,
onTestExpandRow,
afterTestExpandRow
) where
import Control.Monad (liftM,)
import Data.Maybe (fromMaybe)
import System.Glib.FFI
import System.Glib.UTFString
import System.Glib.GList (fromGList)
import System.Glib.Flags
import System.Glib.Attributes
import System.Glib.Properties
import Graphics.UI.Gtk.Gdk.Enums (DragAction(..))
import Graphics.UI.Gtk.Gdk.Events (Modifier(..))
import Graphics.UI.Gtk.General.Structs (Point, Rectangle)
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
import Graphics.UI.Gtk.Types
import Graphics.UI.Gtk.Signals
import Graphics.UI.Gtk.ModelView.TreeModel (columnIdToNumber,
makeColumnIdString)
import Graphics.UI.Gtk.ModelView.Types
import Graphics.UI.Gtk.General.DNDTypes (TargetList(..))
treeViewNew :: IO TreeView
treeViewNew =
makeNewObject mkTreeView $
liftM (castPtr :: Ptr Widget -> Ptr TreeView) $
gtk_tree_view_new
treeViewNewWithModel :: TreeModelClass model => model -> IO TreeView
treeViewNewWithModel model =
makeNewObject mkTreeView $
liftM (castPtr :: Ptr Widget -> Ptr TreeView) $
(\(TreeModel arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_new_with_model argPtr1)
(toTreeModel model)
treeViewGetModel :: TreeViewClass self => self -> IO (Maybe TreeModel)
treeViewGetModel self =
maybeNull (makeNewGObject mkTreeModel) $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_model argPtr1)
(toTreeView self)
treeViewSetModel :: (TreeViewClass self, TreeModelClass model) => self
-> model
-> IO ()
treeViewSetModel self model =
(\(TreeView arg1) (TreeModel arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_model argPtr1 argPtr2)
(toTreeView self)
(toTreeModel model)
treeViewGetSelection :: TreeViewClass self => self -> IO TreeSelection
treeViewGetSelection self =
makeNewGObject mkTreeSelection $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_selection argPtr1)
(toTreeView self)
treeViewGetHAdjustment :: TreeViewClass self => self -> IO (Maybe Adjustment)
treeViewGetHAdjustment self =
maybeNull (makeNewObject mkAdjustment) $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_hadjustment argPtr1)
(toTreeView self)
treeViewSetHAdjustment :: TreeViewClass self => self
-> Maybe Adjustment
-> IO ()
treeViewSetHAdjustment self adjustment =
(\(TreeView arg1) (Adjustment arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_hadjustment argPtr1 argPtr2)
(toTreeView self)
(fromMaybe (Adjustment nullForeignPtr) adjustment)
treeViewGetVAdjustment :: TreeViewClass self => self -> IO (Maybe Adjustment)
treeViewGetVAdjustment self =
maybeNull (makeNewObject mkAdjustment) $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_vadjustment argPtr1)
(toTreeView self)
treeViewSetVAdjustment :: TreeViewClass self => self
-> Maybe Adjustment
-> IO ()
treeViewSetVAdjustment self adjustment =
(\(TreeView arg1) (Adjustment arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_vadjustment argPtr1 argPtr2)
(toTreeView self)
(fromMaybe (Adjustment nullForeignPtr) adjustment)
treeViewGetHeadersVisible :: TreeViewClass self => self -> IO Bool
treeViewGetHeadersVisible self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_headers_visible argPtr1)
(toTreeView self)
treeViewSetHeadersVisible :: TreeViewClass self => self -> Bool -> IO ()
treeViewSetHeadersVisible self headersVisible =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_headers_visible argPtr1 arg2)
(toTreeView self)
(fromBool headersVisible)
treeViewColumnsAutosize :: TreeViewClass self => self -> IO ()
treeViewColumnsAutosize self =
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_columns_autosize argPtr1)
(toTreeView self)
treeViewSetHeadersClickable :: TreeViewClass self => self -> Bool -> IO ()
treeViewSetHeadersClickable self setting =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_headers_clickable argPtr1 arg2)
(toTreeView self)
(fromBool setting)
treeViewGetRulesHint :: TreeViewClass self => self -> IO Bool
treeViewGetRulesHint self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_rules_hint argPtr1)
(toTreeView self)
treeViewSetRulesHint :: TreeViewClass self => self -> Bool -> IO ()
treeViewSetRulesHint self setting =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_rules_hint argPtr1 arg2)
(toTreeView self)
(fromBool setting)
treeViewAppendColumn :: TreeViewClass self => self -> TreeViewColumn -> IO Int
treeViewAppendColumn self column =
liftM fromIntegral $
(\(TreeView arg1) (TreeViewColumn arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_append_column argPtr1 argPtr2)
(toTreeView self)
column
treeViewRemoveColumn :: TreeViewClass self => self -> TreeViewColumn -> IO Int
treeViewRemoveColumn self column =
liftM fromIntegral $
(\(TreeView arg1) (TreeViewColumn arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_remove_column argPtr1 argPtr2)
(toTreeView self)
column
treeViewInsertColumn :: TreeViewClass self => self
-> TreeViewColumn
-> Int
-> IO Int
treeViewInsertColumn self column position =
liftM fromIntegral $
(\(TreeView arg1) (TreeViewColumn arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_insert_column argPtr1 argPtr2 arg3)
(toTreeView self)
column
(fromIntegral position)
treeViewGetColumn :: TreeViewClass self => self -> Int -> IO (Maybe TreeViewColumn)
treeViewGetColumn self pos = do
tvcPtr <- (\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_column argPtr1 arg2) (toTreeView self)
(fromIntegral pos)
if tvcPtr==nullPtr then return Nothing else
liftM Just $ makeNewObject mkTreeViewColumn (return tvcPtr)
treeViewGetColumns :: TreeViewClass self => self -> IO [TreeViewColumn]
treeViewGetColumns self = do
colsList <- (\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_columns argPtr1) (toTreeView self)
colsPtr <- fromGList colsList
mapM (makeNewObject mkTreeViewColumn) (map return colsPtr)
treeViewMoveColumnAfter :: TreeViewClass self => self
-> TreeViewColumn
-> TreeViewColumn
-> IO ()
treeViewMoveColumnAfter self column baseColumn =
(\(TreeView arg1) (TreeViewColumn arg2) (TreeViewColumn arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_move_column_after argPtr1 argPtr2 argPtr3)
(toTreeView self)
column
baseColumn
treeViewMoveColumnFirst :: TreeViewClass self => self -> TreeViewColumn -> IO ()
treeViewMoveColumnFirst self which =
(\(TreeView arg1) (TreeViewColumn arg2) (TreeViewColumn arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_move_column_after argPtr1 argPtr2 argPtr3)
(toTreeView self)
which
(TreeViewColumn nullForeignPtr)
treeViewSetExpanderColumn :: TreeViewClass self => self
-> Maybe TreeViewColumn
-> IO ()
treeViewSetExpanderColumn self column =
(\(TreeView arg1) (TreeViewColumn arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_expander_column argPtr1 argPtr2)
(toTreeView self)
(fromMaybe (TreeViewColumn nullForeignPtr) column)
treeViewGetExpanderColumn :: TreeViewClass self => self
-> IO TreeViewColumn
treeViewGetExpanderColumn self =
makeNewObject mkTreeViewColumn $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_expander_column argPtr1)
(toTreeView self)
treeViewSetColumnDragFunction :: TreeViewClass self => self
-> Maybe (TreeViewColumn
-> Maybe TreeViewColumn
-> Maybe TreeViewColumn
-> IO Bool)
-> IO ()
treeViewSetColumnDragFunction self Nothing =
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_column_drag_function argPtr1 arg2 arg3 arg4) (toTreeView self)
nullFunPtr nullPtr nullFunPtr
treeViewSetColumnDragFunction self (Just pred) = do
fPtr <- mkTreeViewColumnDropFunc $ \_ target prev next _ -> do
target' <- makeNewObject mkTreeViewColumn (return target)
prev' <- if prev==nullPtr then return Nothing else liftM Just $
makeNewObject mkTreeViewColumn (return prev)
next' <- if next==nullPtr then return Nothing else liftM Just $
makeNewObject mkTreeViewColumn (return next)
res <- pred target' prev' next'
return (fromBool res)
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_column_drag_function argPtr1 arg2 arg3 arg4)
(toTreeView self)
fPtr
(castFunPtrToPtr fPtr) destroyFunPtr
type TreeViewColumnDropFunc = FunPtr (((Ptr TreeView) -> ((Ptr TreeViewColumn) -> ((Ptr TreeViewColumn) -> ((Ptr TreeViewColumn) -> ((Ptr ()) -> (IO CInt)))))))
foreign import ccall "wrapper" mkTreeViewColumnDropFunc ::
(Ptr TreeView -> Ptr TreeViewColumn -> Ptr TreeViewColumn -> Ptr TreeViewColumn ->
Ptr () -> IO (CInt)) -> IO TreeViewColumnDropFunc
treeViewScrollToPoint :: TreeViewClass self => self
-> Int
-> Int
-> IO ()
treeViewScrollToPoint self treeX treeY =
(\(TreeView arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_scroll_to_point argPtr1 arg2 arg3)
(toTreeView self)
(fromIntegral treeX)
(fromIntegral treeY)
treeViewScrollToCell :: TreeViewClass self => self
-> Maybe TreePath
-> Maybe TreeViewColumn
-> Maybe (Float, Float)
-> IO ()
treeViewScrollToCell self mbPath mbColumn (Just (rowAlign, colAlign)) =
maybeWithTreePath mbPath $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 arg5 arg6 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_scroll_to_cell argPtr1 arg2 argPtr3 arg4 arg5 arg6)
(toTreeView self)
path
(maybe (TreeViewColumn nullForeignPtr) toTreeViewColumn mbColumn)
1
(realToFrac rowAlign)
(realToFrac colAlign)
treeViewScrollToCell self mbPath mbColumn Nothing =
maybeWithTreePath mbPath $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 arg5 arg6 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_scroll_to_cell argPtr1 arg2 argPtr3 arg4 arg5 arg6)
(toTreeView self)
path
(maybe (TreeViewColumn nullForeignPtr) toTreeViewColumn mbColumn)
0
0.0
0.0
treeViewSetCursor :: TreeViewClass self => self
-> TreePath
-> (Maybe (TreeViewColumn, Bool))
-> IO ()
treeViewSetCursor self path Nothing =
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_set_cursor argPtr1 arg2 argPtr3 arg4)
(toTreeView self)
path
(TreeViewColumn nullForeignPtr)
(fromBool False)
treeViewSetCursor self path (Just (focusColumn, startEditing)) =
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_set_cursor argPtr1 arg2 argPtr3 arg4)
(toTreeView self)
path
focusColumn
(fromBool startEditing)
treeViewSetCursorOnCell :: (TreeViewClass self, CellRendererClass focusCell) => self
-> TreePath
-> TreeViewColumn
-> focusCell
-> Bool
-> IO ()
treeViewSetCursorOnCell self path focusColumn focusCell startEditing =
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) (CellRenderer arg4) arg5 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->withForeignPtr arg4 $ \argPtr4 ->gtk_tree_view_set_cursor_on_cell argPtr1 arg2 argPtr3 argPtr4 arg5)
(toTreeView self)
path
focusColumn
(toCellRenderer focusCell)
(fromBool startEditing)
treeViewGetCursor :: TreeViewClass self => self
-> IO (TreePath, Maybe TreeViewColumn)
treeViewGetCursor self =
alloca $ \tpPtrPtr -> alloca $ \tvcPtrPtr -> do
(\(TreeView arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_cursor argPtr1 arg2 arg3)
(toTreeView self)
(castPtr tpPtrPtr)
(castPtr tvcPtrPtr)
tpPtr <- peek tpPtrPtr
tvcPtr <- peek tvcPtrPtr
tp <- fromTreePath tpPtr
tvc <- if tvcPtr==nullPtr then return Nothing else liftM Just $
makeNewObject mkTreeViewColumn (return tvcPtr)
return (tp,tvc)
treeViewRowActivated :: TreeViewClass self => self
-> TreePath
-> TreeViewColumn
-> IO ()
treeViewRowActivated self path column =
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_row_activated argPtr1 arg2 argPtr3)
(toTreeView self)
path
column
treeViewExpandAll :: TreeViewClass self => self -> IO ()
treeViewExpandAll self =
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_expand_all argPtr1)
(toTreeView self)
treeViewCollapseAll :: TreeViewClass self => self -> IO ()
treeViewCollapseAll self =
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_collapse_all argPtr1)
(toTreeView self)
treeViewExpandToPath :: TreeViewClass self => self -> TreePath -> IO ()
treeViewExpandToPath self path =
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_expand_to_path argPtr1 arg2)
(toTreeView self)
path
treeViewExpandRow :: TreeViewClass self => self
-> TreePath
-> Bool
-> IO Bool
treeViewExpandRow self path openAll =
liftM toBool $
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_expand_row argPtr1 arg2 arg3)
(toTreeView self)
path
(fromBool openAll)
treeViewCollapseRow :: TreeViewClass self => self
-> TreePath
-> IO Bool
treeViewCollapseRow self path =
liftM toBool $
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_collapse_row argPtr1 arg2)
(toTreeView self)
path
treeViewMapExpandedRows :: TreeViewClass self => self
-> (TreePath -> IO ())
-> IO ()
treeViewMapExpandedRows self func = do
fPtr <- mkTreeViewMappingFunc $ \_ tpPtr _ -> fromTreePath tpPtr >>= func
(\(TreeView arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_map_expanded_rows argPtr1 arg2 arg3)
(toTreeView self)
fPtr
nullPtr
freeHaskellFunPtr fPtr
type TreeViewMappingFunc = FunPtr (((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr ()) -> (IO ())))))
foreign import ccall "wrapper" mkTreeViewMappingFunc ::
(Ptr TreeView -> Ptr NativeTreePath -> Ptr () -> IO ()) ->
IO TreeViewMappingFunc
treeViewRowExpanded :: TreeViewClass self => self
-> TreePath
-> IO Bool
treeViewRowExpanded self path =
liftM toBool $
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_row_expanded argPtr1 arg2)
(toTreeView self)
path
treeViewGetReorderable :: TreeViewClass self => self -> IO Bool
treeViewGetReorderable self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_reorderable argPtr1)
(toTreeView self)
treeViewSetReorderable :: TreeViewClass self => self
-> Bool
-> IO ()
treeViewSetReorderable self reorderable =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_reorderable argPtr1 arg2)
(toTreeView self)
(fromBool reorderable)
treeViewGetPathAtPos :: TreeViewClass self => self
-> Point
-> IO (Maybe (TreePath, TreeViewColumn, Point))
treeViewGetPathAtPos self (x,y) =
alloca $ \tpPtrPtr ->
alloca $ \tvcPtrPtr ->
alloca $ \xPtr ->
alloca $ \yPtr -> do
res <- liftM toBool $
(\(TreeView arg1) arg2 arg3 arg4 arg5 arg6 arg7 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_path_at_pos argPtr1 arg2 arg3 arg4 arg5 arg6 arg7)
(toTreeView self)
(fromIntegral x)
(fromIntegral y)
(castPtr tpPtrPtr)
(castPtr tvcPtrPtr)
xPtr
yPtr
tpPtr <- peek tpPtrPtr
tvcPtr <- peek tvcPtrPtr
xCell <- peek xPtr
yCell <- peek yPtr
if not res then return Nothing else do
tp <- fromTreePath tpPtr
tvc <- makeNewObject mkTreeViewColumn (return tvcPtr)
return (Just (tp,tvc,(fromIntegral xCell, fromIntegral yCell)))
treeViewGetCellArea :: TreeViewClass self => self
-> Maybe TreePath
-> TreeViewColumn
-> IO Rectangle
treeViewGetCellArea self Nothing tvc =
alloca $ \rPtr ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_get_cell_area argPtr1 arg2 argPtr3 arg4)
(toTreeView self)
(NativeTreePath nullPtr)
tvc
(castPtr (rPtr :: Ptr Rectangle))
>> peek rPtr
treeViewGetCellArea self (Just tp) tvc =
withTreePath tp $ \tp ->
alloca $ \rPtr -> do
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_get_cell_area argPtr1 arg2 argPtr3 arg4)
(toTreeView self)
tp
tvc
(castPtr (rPtr :: Ptr Rectangle))
>> peek rPtr
treeViewGetBackgroundArea :: TreeViewClass self => self
-> Maybe TreePath
-> TreeViewColumn
-> IO Rectangle
treeViewGetBackgroundArea self Nothing tvc =
alloca $ \rPtr ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_get_background_area argPtr1 arg2 argPtr3 arg4)
(toTreeView self)
(NativeTreePath nullPtr)
tvc
(castPtr (rPtr :: Ptr Rectangle))
>> peek rPtr
treeViewGetBackgroundArea self (Just tp) tvc =
withTreePath tp $ \tp -> alloca $ \rPtr ->
(\(TreeView arg1) (NativeTreePath arg2) (TreeViewColumn arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg3 $ \argPtr3 ->gtk_tree_view_get_background_area argPtr1 arg2 argPtr3 arg4)
(toTreeView self)
tp
tvc
(castPtr (rPtr :: Ptr Rectangle))
>> peek rPtr
treeViewGetVisibleRect :: TreeViewClass self => self -> IO Rectangle
treeViewGetVisibleRect self =
alloca $ \rPtr -> do
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_visible_rect argPtr1 arg2)
(toTreeView self)
(castPtr (rPtr :: Ptr Rectangle))
peek rPtr
treeViewTreeToWidgetCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewTreeToWidgetCoords self (tx, ty) =
alloca $ \wxPtr ->
alloca $ \wyPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_tree_to_widget_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral tx)
(fromIntegral ty)
wxPtr
wyPtr
wx <- peek wxPtr
wy <- peek wyPtr
return (fromIntegral wx, fromIntegral wy)
treeViewWidgetToTreeCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewWidgetToTreeCoords self (wx, wy) =
alloca $ \txPtr ->
alloca $ \tyPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_widget_to_tree_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral wx)
(fromIntegral wy)
txPtr
tyPtr
tx <- peek txPtr
ty <- peek tyPtr
return (fromIntegral tx, fromIntegral ty)
treeViewConvertBinWindowToTreeCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewConvertBinWindowToTreeCoords self (bx, by) =
alloca $ \txPtr ->
alloca $ \tyPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_convert_bin_window_to_tree_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral bx)
(fromIntegral by)
txPtr
tyPtr
tx <- peek txPtr
ty <- peek tyPtr
return (fromIntegral tx, fromIntegral ty)
treeViewConvertBinWindowToWidgetCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewConvertBinWindowToWidgetCoords self (bx, by) =
alloca $ \wxPtr ->
alloca $ \wyPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_convert_bin_window_to_widget_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral bx)
(fromIntegral by)
wxPtr
wyPtr
wx <- peek wxPtr
wy <- peek wyPtr
return (fromIntegral wx, fromIntegral wy)
treeViewConvertTreeToBinWindowCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewConvertTreeToBinWindowCoords self (tx, ty) =
alloca $ \bxPtr ->
alloca $ \byPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_convert_tree_to_bin_window_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral tx)
(fromIntegral ty)
bxPtr
byPtr
bx <- peek bxPtr
by <- peek byPtr
return (fromIntegral bx, fromIntegral by)
treeViewConvertTreeToWidgetCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewConvertTreeToWidgetCoords self (wx, wy) =
alloca $ \bxPtr ->
alloca $ \byPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_convert_tree_to_widget_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral wx)
(fromIntegral wy)
bxPtr
byPtr
bx <- peek bxPtr
by <- peek byPtr
return (fromIntegral bx, fromIntegral by)
treeViewConvertWidgetToBinWindowCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewConvertWidgetToBinWindowCoords self (wx, wy) =
alloca $ \bxPtr ->
alloca $ \byPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_convert_widget_to_bin_window_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral wx)
(fromIntegral wy)
bxPtr
byPtr
bx <- peek bxPtr
by <- peek byPtr
return (fromIntegral bx, fromIntegral by)
treeViewConvertWidgetToTreeCoords :: TreeViewClass self => self
-> Point
-> IO Point
treeViewConvertWidgetToTreeCoords self (wx, wy) =
alloca $ \txPtr ->
alloca $ \tyPtr -> do
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_convert_widget_to_tree_coords argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
(fromIntegral wx)
(fromIntegral wy)
txPtr
tyPtr
tx <- peek txPtr
ty <- peek tyPtr
return (fromIntegral tx, fromIntegral ty)
treeViewCreateRowDragIcon :: TreeViewClass self => self
-> TreePath
-> IO Pixmap
treeViewCreateRowDragIcon self path =
wrapNewGObject mkPixmap $
withTreePath path $ \path ->
(\(TreeView arg1) (NativeTreePath arg2) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_create_row_drag_icon argPtr1 arg2)
(toTreeView self)
path
treeViewGetEnableSearch :: TreeViewClass self => self -> IO Bool
treeViewGetEnableSearch self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_enable_search argPtr1)
(toTreeView self)
treeViewSetEnableSearch :: TreeViewClass self => self -> Bool -> IO ()
treeViewSetEnableSearch self enableSearch =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_enable_search argPtr1 arg2)
(toTreeView self)
(fromBool enableSearch)
treeViewGetSearchColumn :: (TreeViewClass self, GlibString string) => self
-> IO (ColumnId row string)
treeViewGetSearchColumn self =
liftM (makeColumnIdString . fromIntegral) $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_search_column argPtr1)
(toTreeView self)
treeViewSetSearchColumn :: (TreeViewClass self, GlibString string) => self
-> (ColumnId row string)
-> IO ()
treeViewSetSearchColumn self column =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_search_column argPtr1 arg2)
(toTreeView self)
(fromIntegral (columnIdToNumber column))
treeViewSetSearchEqualFunc :: (TreeViewClass self, GlibString string) => self
-> Maybe (string -> TreeIter -> IO Bool)
-> IO ()
treeViewSetSearchEqualFunc self (Just pred) = do
fPtr <- mkTreeViewSearchEqualFunc (\_ _ keyPtr iterPtr _ -> do
key <- peekUTFString keyPtr
iter <- peek iterPtr
liftM (fromBool . not) $ pred key iter)
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_search_equal_func argPtr1 arg2 arg3 arg4) (toTreeView self) fPtr
(castFunPtrToPtr fPtr) destroyFunPtr
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_search_column argPtr1 arg2) (toTreeView self) 0
treeViewSetSearchEqualFunc self Nothing = do
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_search_equal_func argPtr1 arg2 arg3 arg4) (toTreeView self)
nullFunPtr nullPtr nullFunPtr
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_search_column argPtr1 arg2) (toTreeView self) (1)
type TreeViewSearchEqualFunc = FunPtr (((Ptr TreeModel) -> (CInt -> ((Ptr CChar) -> ((Ptr TreeIter) -> ((Ptr ()) -> (IO CInt)))))))
foreign import ccall "wrapper" mkTreeViewSearchEqualFunc ::
(Ptr TreeModel -> (CInt) -> CString -> Ptr TreeIter -> Ptr () ->
IO (CInt)) -> IO TreeViewSearchEqualFunc
readNTP :: Ptr TreePath -> IO TreePath
readNTP ptr = peekTreePath (castPtr ptr)
treeViewGetFixedHeightMode :: TreeViewClass self => self
-> IO Bool
treeViewGetFixedHeightMode self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_fixed_height_mode argPtr1)
(toTreeView self)
treeViewSetFixedHeightMode :: TreeViewClass self => self
-> Bool
-> IO ()
treeViewSetFixedHeightMode self enable =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_fixed_height_mode argPtr1 arg2)
(toTreeView self)
(fromBool enable)
treeViewGetHoverSelection :: TreeViewClass self => self
-> IO Bool
treeViewGetHoverSelection self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_hover_selection argPtr1)
(toTreeView self)
treeViewSetHoverSelection :: TreeViewClass self => self
-> Bool
-> IO ()
treeViewSetHoverSelection self hover =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_hover_selection argPtr1 arg2)
(toTreeView self)
(fromBool hover)
treeViewGetHoverExpand :: TreeViewClass self => self
-> IO Bool
treeViewGetHoverExpand self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_hover_expand argPtr1)
(toTreeView self)
treeViewSetHoverExpand :: TreeViewClass self => self
-> Bool
-> IO ()
treeViewSetHoverExpand self expand =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_hover_expand argPtr1 arg2)
(toTreeView self)
(fromBool expand)
treeViewGetHeadersClickable :: TreeViewClass self => self
-> IO Bool
treeViewGetHeadersClickable self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_headers_clickable argPtr1)
(toTreeView self)
treeViewGetVisibleRange :: TreeViewClass self => self
-> IO (TreePath, TreePath)
treeViewGetVisibleRange self = alloca $ \startPtr -> alloca $ \endPtr -> do
valid <- liftM toBool $
(\(TreeView arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_visible_range argPtr1 arg2 arg3)
(toTreeView self) (castPtr startPtr) (castPtr endPtr)
if not valid then return ([],[]) else do
startTPPtr <- peek startPtr
endTPPtr <- peek endPtr
startPath <- fromTreePath startTPPtr
endPath <- fromTreePath endTPPtr
return (startPath, endPath)
treeViewEnableModelDragDest :: TreeViewClass self => self
-> TargetList
-> [DragAction]
-> IO ()
treeViewEnableModelDragDest self targets actions =
alloca $ \nTargetsPtr -> do
tlPtr <- (\(TargetList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_target_table_new_from_list argPtr1 arg2) targets nTargetsPtr
nTargets <- peek nTargetsPtr
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_enable_model_drag_dest argPtr1 arg2 arg3 arg4)
(toTreeView self)
tlPtr
nTargets
((fromIntegral . fromFlags) actions)
gtk_target_table_free tlPtr nTargets
treeViewEnableModelDragSource :: TreeViewClass self => self
-> [Modifier]
-> TargetList
-> [DragAction]
-> IO ()
treeViewEnableModelDragSource self startButtonMask targets actions =
alloca $ \nTargetsPtr -> do
tlPtr <- (\(TargetList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_target_table_new_from_list argPtr1 arg2) targets nTargetsPtr
nTargets <- peek nTargetsPtr
(\(TreeView arg1) arg2 arg3 arg4 arg5 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_enable_model_drag_source argPtr1 arg2 arg3 arg4 arg5)
(toTreeView self)
((fromIntegral . fromFlags) startButtonMask)
tlPtr
nTargets
((fromIntegral . fromFlags) actions)
gtk_target_table_free tlPtr nTargets
treeViewUnsetRowsDragSource :: TreeViewClass self => self -> IO ()
treeViewUnsetRowsDragSource self =
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_unset_rows_drag_source argPtr1)
(toTreeView self)
treeViewUnsetRowsDragDest :: TreeViewClass self => self -> IO ()
treeViewUnsetRowsDragDest self =
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_unset_rows_drag_dest argPtr1)
(toTreeView self)
treeViewGetSearchEntry :: TreeViewClass self => self
-> IO (Maybe Entry)
treeViewGetSearchEntry self = do
ePtr <- (\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_search_entry argPtr1)
(toTreeView self)
if ePtr==nullPtr then return Nothing else liftM Just $
makeNewObject mkEntry (return ePtr)
treeViewSetSearchEntry :: (TreeViewClass self, EntryClass entry) => self
-> (Maybe entry)
-> IO ()
treeViewSetSearchEntry self (Just entry) =
(\(TreeView arg1) (Entry arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_search_entry argPtr1 argPtr2)
(toTreeView self)
(toEntry entry)
treeViewSetSearchEntry self Nothing =
(\(TreeView arg1) (Entry arg2) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_search_entry argPtr1 argPtr2)
(toTreeView self)
(Entry nullForeignPtr)
treeViewSetRowSeparatorFunc :: TreeViewClass self => self
-> Maybe (TreeIter -> IO Bool)
-> IO ()
treeViewSetRowSeparatorFunc self Nothing =
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_row_separator_func argPtr1 arg2 arg3 arg4)
(toTreeView self) nullFunPtr nullPtr nullFunPtr
treeViewSetRowSeparatorFunc self (Just func) = do
funcPtr <- mkTreeViewRowSeparatorFunc $ \_ tiPtr _ -> do
ti <- peekTreeIter tiPtr
liftM fromBool $ func ti
(\(TreeView arg1) arg2 arg3 arg4 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_row_separator_func argPtr1 arg2 arg3 arg4)
(toTreeView self) funcPtr (castFunPtrToPtr funcPtr) destroyFunPtr
type TreeViewRowSeparatorFunc = FunPtr (((Ptr TreeModel) -> ((Ptr TreeIter) -> ((Ptr ()) -> (IO CInt)))))
foreign import ccall "wrapper" mkTreeViewRowSeparatorFunc ::
(Ptr TreeModel -> Ptr TreeIter -> Ptr () -> IO (CInt)) ->
IO TreeViewRowSeparatorFunc
treeViewGetRubberBanding :: TreeViewClass self => self
-> IO Bool
treeViewGetRubberBanding self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_rubber_banding argPtr1)
(toTreeView self)
treeViewSetRubberBanding :: TreeViewClass self => self
-> Bool
-> IO ()
treeViewSetRubberBanding self enable =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_rubber_banding argPtr1 arg2)
(toTreeView self)
(fromBool enable)
treeViewGetEnableTreeLines :: TreeViewClass self => self
-> IO Bool
treeViewGetEnableTreeLines self =
liftM toBool $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_enable_tree_lines argPtr1)
(toTreeView self)
treeViewSetEnableTreeLines :: TreeViewClass self => self
-> Bool
-> IO ()
treeViewSetEnableTreeLines self enabled =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_enable_tree_lines argPtr1 arg2)
(toTreeView self)
(fromBool enabled)
data TreeViewGridLines = TreeViewGridLinesNone
| TreeViewGridLinesHorizontal
| TreeViewGridLinesVertical
| TreeViewGridLinesBoth
deriving (Enum)
treeViewGetGridLines :: TreeViewClass self => self
-> IO TreeViewGridLines
treeViewGetGridLines self =
liftM (toEnum . fromIntegral) $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_grid_lines argPtr1)
(toTreeView self)
treeViewSetGridLines :: TreeViewClass self => self
-> TreeViewGridLines
-> IO ()
treeViewSetGridLines self gridLines =
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_grid_lines argPtr1 arg2)
(toTreeView self)
((fromIntegral . fromEnum) gridLines)
treeViewSetTooltipRow :: TreeViewClass self => self
-> Tooltip
-> TreePath
-> IO ()
treeViewSetTooltipRow self tip path =
withTreePath path $ \path ->
(\(TreeView arg1) (Tooltip arg2) (NativeTreePath arg3) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->gtk_tree_view_set_tooltip_row argPtr1 argPtr2 arg3) (toTreeView self) tip path
treeViewSetTooltipCell :: (TreeViewClass self, TreeViewColumnClass col,
CellRendererClass renderer) => self
-> Tooltip
-> Maybe TreePath
-> Maybe col
-> Maybe renderer
-> IO ()
treeViewSetTooltipCell self tip mPath mColumn mRenderer =
(case mPath of Just path -> withTreePath path
Nothing -> \f -> f (NativeTreePath nullPtr)) $ \path -> do
(\(TreeView arg1) (Tooltip arg2) (NativeTreePath arg3) (TreeViewColumn arg4) (CellRenderer arg5) -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg4 $ \argPtr4 ->withForeignPtr arg5 $ \argPtr5 ->gtk_tree_view_set_tooltip_cell argPtr1 argPtr2 arg3 argPtr4 argPtr5) (toTreeView self) tip path
(maybe (TreeViewColumn nullForeignPtr) toTreeViewColumn mColumn)
(maybe (CellRenderer nullForeignPtr) toCellRenderer mRenderer)
treeViewGetTooltipContext :: TreeViewClass self => self
-> Maybe Point
-> IO (Maybe TreeIter)
treeViewGetTooltipContext self (Just (x,y)) =
alloca $ \xPtr -> alloca $ \yPtr -> receiveTreeIter $
(\(TreeView arg1) arg2 arg3 arg4 arg5 arg6 arg7 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_tooltip_context argPtr1 arg2 arg3 arg4 arg5 arg6 arg7) (toTreeView self)
xPtr yPtr 0 nullPtr nullPtr
treeViewGetTooltipContext self Nothing =
receiveTreeIter $
(\(TreeView arg1) arg2 arg3 arg4 arg5 arg6 arg7 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_tooltip_context argPtr1 arg2 arg3 arg4 arg5 arg6 arg7) (toTreeView self)
nullPtr nullPtr 1 nullPtr nullPtr
treeViewModel :: (TreeViewClass self, TreeModelClass model) => ReadWriteAttr self (Maybe TreeModel) model
treeViewModel = newAttr
treeViewGetModel
treeViewSetModel
treeViewHAdjustment :: TreeViewClass self => Attr self (Maybe Adjustment)
treeViewHAdjustment = newAttr
treeViewGetHAdjustment
treeViewSetHAdjustment
treeViewVAdjustment :: TreeViewClass self => Attr self (Maybe Adjustment)
treeViewVAdjustment = newAttr
treeViewGetVAdjustment
treeViewSetVAdjustment
treeViewHeadersVisible :: TreeViewClass self => Attr self Bool
treeViewHeadersVisible = newAttr
treeViewGetHeadersVisible
treeViewSetHeadersVisible
treeViewHeadersClickable :: TreeViewClass self => Attr self Bool
treeViewHeadersClickable = newAttrFromBoolProperty "headers-clickable"
treeViewExpanderColumn :: TreeViewClass self => ReadWriteAttr self TreeViewColumn (Maybe TreeViewColumn)
treeViewExpanderColumn = newAttr
treeViewGetExpanderColumn
treeViewSetExpanderColumn
treeViewReorderable :: TreeViewClass self => Attr self Bool
treeViewReorderable = newAttr
treeViewGetReorderable
treeViewSetReorderable
treeViewRulesHint :: TreeViewClass self => Attr self Bool
treeViewRulesHint = newAttr
treeViewGetRulesHint
treeViewSetRulesHint
treeViewEnableSearch :: TreeViewClass self => Attr self Bool
treeViewEnableSearch = newAttr
treeViewGetEnableSearch
treeViewSetEnableSearch
treeViewSearchColumn :: (TreeViewClass self, GlibString string) => Attr self (ColumnId row string)
treeViewSearchColumn = newAttr
treeViewGetSearchColumn
treeViewSetSearchColumn
treeViewFixedHeightMode :: TreeViewClass self => Attr self Bool
treeViewFixedHeightMode = newAttrFromBoolProperty "fixed-height-mode"
treeViewHoverSelection :: TreeViewClass self => Attr self Bool
treeViewHoverSelection = newAttrFromBoolProperty "hover-selection"
treeViewHoverExpand :: TreeViewClass self => Attr self Bool
treeViewHoverExpand = newAttrFromBoolProperty "hover-expand"
treeViewShowExpanders :: TreeViewClass self => Attr self Bool
treeViewShowExpanders = newAttrFromBoolProperty "show-expanders"
treeViewLevelIndentation :: TreeViewClass self => Attr self Int
treeViewLevelIndentation = newAttrFromIntProperty "level-indentation"
treeViewRubberBanding :: TreeViewClass self => Attr self Bool
treeViewRubberBanding = newAttrFromBoolProperty "rubber-banding"
treeViewEnableGridLines :: TreeViewClass self => Attr self TreeViewGridLines
treeViewEnableGridLines = newAttrFromEnumProperty "enable-grid-lines"
gtk_tree_view_grid_lines_get_type
treeViewEnableTreeLines :: TreeViewClass self => Attr self Bool
treeViewEnableTreeLines = newAttrFromBoolProperty "enable-tree-lines"
treeViewGridLines :: TreeViewClass self => Attr self TreeViewGridLines
treeViewGridLines = newAttr
treeViewGetGridLines
treeViewSetGridLines
treeViewSearchEntry :: (TreeViewClass self, EntryClass entry) => ReadWriteAttr self (Maybe Entry) (Maybe entry)
treeViewSearchEntry = newAttr
treeViewGetSearchEntry
treeViewSetSearchEntry
treeViewTooltipColumn :: (TreeViewClass self, GlibString string) => Attr self (ColumnId row string)
treeViewTooltipColumn = newAttr
(\self -> liftM (makeColumnIdString . fromIntegral) $
(\(TreeView arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_get_tooltip_column argPtr1)
(toTreeView self)
)
(\self column ->
(\(TreeView arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->gtk_tree_view_set_tooltip_column argPtr1 arg2)
(toTreeView self)
(fromIntegral (columnIdToNumber column))
)
testExpandRow :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO Bool)
testExpandRow = Signal (connect_BOXED_BOXED__BOOL "test-expand-row" peek readNTP)
testCollapseRow :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO Bool)
testCollapseRow = Signal (connect_BOXED_BOXED__BOOL "test-collapse-row" peek readNTP)
rowExpanded :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO ())
rowExpanded = Signal (connect_BOXED_BOXED__NONE "row-expanded" peek readNTP)
rowActivated :: TreeViewClass self => Signal self (TreePath -> TreeViewColumn -> IO ())
rowActivated = Signal (connect_BOXED_OBJECT__NONE "row-activated" readNTP)
rowCollapsed :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO ())
rowCollapsed = Signal (connect_BOXED_BOXED__NONE "row-collapsed" peek readNTP)
columnsChanged :: TreeViewClass self => Signal self (IO ())
columnsChanged = Signal (connect_NONE__NONE "columns-changed")
cursorChanged :: TreeViewClass self => Signal self (IO ())
cursorChanged = Signal (connect_NONE__NONE "cursor-changed")
onColumnsChanged, afterColumnsChanged :: TreeViewClass self => self
-> IO ()
-> IO (ConnectId self)
onColumnsChanged = connect_NONE__NONE "columns_changed" False
afterColumnsChanged = connect_NONE__NONE "columns_changed" True
onCursorChanged, afterCursorChanged :: TreeViewClass self => self
-> IO ()
-> IO (ConnectId self)
onCursorChanged = connect_NONE__NONE "cursor_changed" False
afterCursorChanged = connect_NONE__NONE "cursor_changed" True
onRowActivated, afterRowActivated :: TreeViewClass self => self
-> (TreePath -> TreeViewColumn -> IO ())
-> IO (ConnectId self)
onRowActivated = connect_BOXED_OBJECT__NONE "row_activated"
readNTP False
afterRowActivated = connect_BOXED_OBJECT__NONE "row_activated"
readNTP True
onRowCollapsed, afterRowCollapsed :: TreeViewClass self => self
-> (TreeIter -> TreePath -> IO ())
-> IO (ConnectId self)
onRowCollapsed = connect_BOXED_BOXED__NONE "row_collapsed"
peek readNTP False
afterRowCollapsed = connect_BOXED_BOXED__NONE "row_collapsed"
peek readNTP True
onRowExpanded, afterRowExpanded :: TreeViewClass self => self
-> (TreeIter -> TreePath -> IO ())
-> IO (ConnectId self)
onRowExpanded = connect_BOXED_BOXED__NONE "row_expanded"
peek readNTP False
afterRowExpanded = connect_BOXED_BOXED__NONE "row_expanded"
peek readNTP True
onStartInteractiveSearch, afterStartInteractiveSearch ::
TreeViewClass self => self -> IO () -> IO (ConnectId self)
onStartInteractiveSearch self fun =
connect_NONE__BOOL "start_interactive_search" False self (fun >> return True)
afterStartInteractiveSearch self fun =
connect_NONE__BOOL "start_interactive_search" True self (fun >> return True)
onTestCollapseRow, afterTestCollapseRow :: TreeViewClass self => self
-> (TreeIter -> TreePath -> IO Bool)
-> IO (ConnectId self)
onTestCollapseRow = connect_BOXED_BOXED__BOOL "test_collapse_row"
peek readNTP False
afterTestCollapseRow = connect_BOXED_BOXED__BOOL "test_collapse_row"
peek readNTP True
onTestExpandRow, afterTestExpandRow :: TreeViewClass self => self
-> (TreeIter -> TreePath -> IO Bool)
-> IO (ConnectId self)
onTestExpandRow = connect_BOXED_BOXED__BOOL "test_expand_row"
peek readNTP False
afterTestExpandRow = connect_BOXED_BOXED__BOOL "test_expand_row"
peek readNTP True
foreign import ccall safe "gtk_tree_view_new"
gtk_tree_view_new :: (IO (Ptr Widget))
foreign import ccall safe "gtk_tree_view_new_with_model"
gtk_tree_view_new_with_model :: ((Ptr TreeModel) -> (IO (Ptr Widget)))
foreign import ccall unsafe "gtk_tree_view_get_model"
gtk_tree_view_get_model :: ((Ptr TreeView) -> (IO (Ptr TreeModel)))
foreign import ccall safe "gtk_tree_view_set_model"
gtk_tree_view_set_model :: ((Ptr TreeView) -> ((Ptr TreeModel) -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_selection"
gtk_tree_view_get_selection :: ((Ptr TreeView) -> (IO (Ptr TreeSelection)))
foreign import ccall unsafe "gtk_tree_view_get_hadjustment"
gtk_tree_view_get_hadjustment :: ((Ptr TreeView) -> (IO (Ptr Adjustment)))
foreign import ccall safe "gtk_tree_view_set_hadjustment"
gtk_tree_view_set_hadjustment :: ((Ptr TreeView) -> ((Ptr Adjustment) -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_vadjustment"
gtk_tree_view_get_vadjustment :: ((Ptr TreeView) -> (IO (Ptr Adjustment)))
foreign import ccall safe "gtk_tree_view_set_vadjustment"
gtk_tree_view_set_vadjustment :: ((Ptr TreeView) -> ((Ptr Adjustment) -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_headers_visible"
gtk_tree_view_get_headers_visible :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_headers_visible"
gtk_tree_view_set_headers_visible :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_columns_autosize"
gtk_tree_view_columns_autosize :: ((Ptr TreeView) -> (IO ()))
foreign import ccall safe "gtk_tree_view_set_headers_clickable"
gtk_tree_view_set_headers_clickable :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_rules_hint"
gtk_tree_view_get_rules_hint :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_rules_hint"
gtk_tree_view_set_rules_hint :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_append_column"
gtk_tree_view_append_column :: ((Ptr TreeView) -> ((Ptr TreeViewColumn) -> (IO CInt)))
foreign import ccall safe "gtk_tree_view_remove_column"
gtk_tree_view_remove_column :: ((Ptr TreeView) -> ((Ptr TreeViewColumn) -> (IO CInt)))
foreign import ccall safe "gtk_tree_view_insert_column"
gtk_tree_view_insert_column :: ((Ptr TreeView) -> ((Ptr TreeViewColumn) -> (CInt -> (IO CInt))))
foreign import ccall unsafe "gtk_tree_view_get_column"
gtk_tree_view_get_column :: ((Ptr TreeView) -> (CInt -> (IO (Ptr TreeViewColumn))))
foreign import ccall unsafe "gtk_tree_view_get_columns"
gtk_tree_view_get_columns :: ((Ptr TreeView) -> (IO (Ptr ())))
foreign import ccall safe "gtk_tree_view_move_column_after"
gtk_tree_view_move_column_after :: ((Ptr TreeView) -> ((Ptr TreeViewColumn) -> ((Ptr TreeViewColumn) -> (IO ()))))
foreign import ccall unsafe "gtk_tree_view_set_expander_column"
gtk_tree_view_set_expander_column :: ((Ptr TreeView) -> ((Ptr TreeViewColumn) -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_expander_column"
gtk_tree_view_get_expander_column :: ((Ptr TreeView) -> (IO (Ptr TreeViewColumn)))
foreign import ccall safe "gtk_tree_view_set_column_drag_function"
gtk_tree_view_set_column_drag_function :: ((Ptr TreeView) -> ((FunPtr ((Ptr TreeView) -> ((Ptr TreeViewColumn) -> ((Ptr TreeViewColumn) -> ((Ptr TreeViewColumn) -> ((Ptr ()) -> (IO CInt))))))) -> ((Ptr ()) -> ((FunPtr ((Ptr ()) -> (IO ()))) -> (IO ())))))
foreign import ccall safe "gtk_tree_view_scroll_to_point"
gtk_tree_view_scroll_to_point :: ((Ptr TreeView) -> (CInt -> (CInt -> (IO ()))))
foreign import ccall safe "gtk_tree_view_scroll_to_cell"
gtk_tree_view_scroll_to_cell :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> (CInt -> (CFloat -> (CFloat -> (IO ())))))))
foreign import ccall safe "gtk_tree_view_set_cursor"
gtk_tree_view_set_cursor :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> (CInt -> (IO ())))))
foreign import ccall safe "gtk_tree_view_set_cursor_on_cell"
gtk_tree_view_set_cursor_on_cell :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> ((Ptr CellRenderer) -> (CInt -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_get_cursor"
gtk_tree_view_get_cursor :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> (IO ()))))
foreign import ccall safe "gtk_tree_view_row_activated"
gtk_tree_view_row_activated :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> (IO ()))))
foreign import ccall safe "gtk_tree_view_expand_all"
gtk_tree_view_expand_all :: ((Ptr TreeView) -> (IO ()))
foreign import ccall safe "gtk_tree_view_collapse_all"
gtk_tree_view_collapse_all :: ((Ptr TreeView) -> (IO ()))
foreign import ccall safe "gtk_tree_view_expand_to_path"
gtk_tree_view_expand_to_path :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> (IO ())))
foreign import ccall safe "gtk_tree_view_expand_row"
gtk_tree_view_expand_row :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> (CInt -> (IO CInt))))
foreign import ccall safe "gtk_tree_view_collapse_row"
gtk_tree_view_collapse_row :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> (IO CInt)))
foreign import ccall safe "gtk_tree_view_map_expanded_rows"
gtk_tree_view_map_expanded_rows :: ((Ptr TreeView) -> ((FunPtr ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr ()) -> (IO ()))))) -> ((Ptr ()) -> (IO ()))))
foreign import ccall unsafe "gtk_tree_view_row_expanded"
gtk_tree_view_row_expanded :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> (IO CInt)))
foreign import ccall unsafe "gtk_tree_view_get_reorderable"
gtk_tree_view_get_reorderable :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_reorderable"
gtk_tree_view_set_reorderable :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_path_at_pos"
gtk_tree_view_get_path_at_pos :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO CInt))))))))
foreign import ccall unsafe "gtk_tree_view_get_cell_area"
gtk_tree_view_get_cell_area :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> ((Ptr ()) -> (IO ())))))
foreign import ccall unsafe "gtk_tree_view_get_background_area"
gtk_tree_view_get_background_area :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> ((Ptr ()) -> (IO ())))))
foreign import ccall unsafe "gtk_tree_view_get_visible_rect"
gtk_tree_view_get_visible_rect :: ((Ptr TreeView) -> ((Ptr ()) -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_tree_to_widget_coords"
gtk_tree_view_tree_to_widget_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_widget_to_tree_coords"
gtk_tree_view_widget_to_tree_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_convert_bin_window_to_tree_coords"
gtk_tree_view_convert_bin_window_to_tree_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_convert_bin_window_to_widget_coords"
gtk_tree_view_convert_bin_window_to_widget_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_convert_tree_to_bin_window_coords"
gtk_tree_view_convert_tree_to_bin_window_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_convert_tree_to_widget_coords"
gtk_tree_view_convert_tree_to_widget_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_convert_widget_to_bin_window_coords"
gtk_tree_view_convert_widget_to_bin_window_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_convert_widget_to_tree_coords"
gtk_tree_view_convert_widget_to_tree_coords :: ((Ptr TreeView) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))))
foreign import ccall unsafe "gtk_tree_view_create_row_drag_icon"
gtk_tree_view_create_row_drag_icon :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> (IO (Ptr Pixmap))))
foreign import ccall unsafe "gtk_tree_view_get_enable_search"
gtk_tree_view_get_enable_search :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_enable_search"
gtk_tree_view_set_enable_search :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall unsafe "gtk_tree_view_get_search_column"
gtk_tree_view_get_search_column :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_search_column"
gtk_tree_view_set_search_column :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_set_search_equal_func"
gtk_tree_view_set_search_equal_func :: ((Ptr TreeView) -> ((FunPtr ((Ptr TreeModel) -> (CInt -> ((Ptr CChar) -> ((Ptr TreeIter) -> ((Ptr ()) -> (IO CInt))))))) -> ((Ptr ()) -> ((FunPtr ((Ptr ()) -> (IO ()))) -> (IO ())))))
foreign import ccall safe "gtk_tree_view_get_fixed_height_mode"
gtk_tree_view_get_fixed_height_mode :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_fixed_height_mode"
gtk_tree_view_set_fixed_height_mode :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_get_hover_selection"
gtk_tree_view_get_hover_selection :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_hover_selection"
gtk_tree_view_set_hover_selection :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_get_hover_expand"
gtk_tree_view_get_hover_expand :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_hover_expand"
gtk_tree_view_set_hover_expand :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_get_headers_clickable"
gtk_tree_view_get_headers_clickable :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_get_visible_range"
gtk_tree_view_get_visible_range :: ((Ptr TreeView) -> ((Ptr NativeTreePath) -> ((Ptr NativeTreePath) -> (IO CInt))))
foreign import ccall unsafe "gtk_target_table_new_from_list"
gtk_target_table_new_from_list :: ((Ptr TargetList) -> ((Ptr CInt) -> (IO (Ptr ()))))
foreign import ccall safe "gtk_tree_view_enable_model_drag_dest"
gtk_tree_view_enable_model_drag_dest :: ((Ptr TreeView) -> ((Ptr ()) -> (CInt -> (CInt -> (IO ())))))
foreign import ccall unsafe "gtk_target_table_free"
gtk_target_table_free :: ((Ptr ()) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_enable_model_drag_source"
gtk_tree_view_enable_model_drag_source :: ((Ptr TreeView) -> (CInt -> ((Ptr ()) -> (CInt -> (CInt -> (IO ()))))))
foreign import ccall safe "gtk_tree_view_unset_rows_drag_source"
gtk_tree_view_unset_rows_drag_source :: ((Ptr TreeView) -> (IO ()))
foreign import ccall safe "gtk_tree_view_unset_rows_drag_dest"
gtk_tree_view_unset_rows_drag_dest :: ((Ptr TreeView) -> (IO ()))
foreign import ccall safe "gtk_tree_view_get_search_entry"
gtk_tree_view_get_search_entry :: ((Ptr TreeView) -> (IO (Ptr Entry)))
foreign import ccall safe "gtk_tree_view_set_search_entry"
gtk_tree_view_set_search_entry :: ((Ptr TreeView) -> ((Ptr Entry) -> (IO ())))
foreign import ccall safe "gtk_tree_view_set_row_separator_func"
gtk_tree_view_set_row_separator_func :: ((Ptr TreeView) -> ((FunPtr ((Ptr TreeModel) -> ((Ptr TreeIter) -> ((Ptr ()) -> (IO CInt))))) -> ((Ptr ()) -> ((FunPtr ((Ptr ()) -> (IO ()))) -> (IO ())))))
foreign import ccall safe "gtk_tree_view_get_rubber_banding"
gtk_tree_view_get_rubber_banding :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_rubber_banding"
gtk_tree_view_set_rubber_banding :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_get_enable_tree_lines"
gtk_tree_view_get_enable_tree_lines :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_enable_tree_lines"
gtk_tree_view_set_enable_tree_lines :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_get_grid_lines"
gtk_tree_view_get_grid_lines :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_grid_lines"
gtk_tree_view_set_grid_lines :: ((Ptr TreeView) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_tree_view_set_tooltip_row"
gtk_tree_view_set_tooltip_row :: ((Ptr TreeView) -> ((Ptr Tooltip) -> ((Ptr NativeTreePath) -> (IO ()))))
foreign import ccall safe "gtk_tree_view_set_tooltip_cell"
gtk_tree_view_set_tooltip_cell :: ((Ptr TreeView) -> ((Ptr Tooltip) -> ((Ptr NativeTreePath) -> ((Ptr TreeViewColumn) -> ((Ptr CellRenderer) -> (IO ()))))))
foreign import ccall safe "gtk_tree_view_get_tooltip_context"
gtk_tree_view_get_tooltip_context :: ((Ptr TreeView) -> ((Ptr CInt) -> ((Ptr CInt) -> (CInt -> ((Ptr TreeModel) -> ((Ptr NativeTreePath) -> ((Ptr TreeIter) -> (IO CInt))))))))
foreign import ccall unsafe "gtk_tree_view_grid_lines_get_type"
gtk_tree_view_grid_lines_get_type :: CULong
foreign import ccall unsafe "gtk_tree_view_get_tooltip_column"
gtk_tree_view_get_tooltip_column :: ((Ptr TreeView) -> (IO CInt))
foreign import ccall safe "gtk_tree_view_set_tooltip_column"
gtk_tree_view_set_tooltip_column :: ((Ptr TreeView) -> (CInt -> (IO ())))