1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755
|
{-# LANGUAGE CPP #-}
-- -*-haskell-*-
-- GIMP Toolkit (GTK) TreeViewColumn TreeView
--
-- Author : Axel Simon
--
-- Created: 9 May 2001
--
-- Copyright (C) 2001-2005 Axel Simon
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
--
-- |
-- Maintainer : gtk2hs-users@lists.sourceforge.net
-- Stability : provisional
-- Portability : portable (depends on GHC)
--
-- A visible column in a 'TreeView' widget
--
module Graphics.UI.Gtk.ModelView.TreeViewColumn (
-- * Detail
--
-- | The 'TreeViewColumn' object represents a visible column in a 'TreeView'
-- widget. It allows to set properties of the column header, and functions as a
-- holding pen for the cell renderers which determine how the data in the
-- column is displayed.
--
-- * Class Hierarchy
-- |
-- @
-- | 'GObject'
-- | +----'Object'
-- | +----TreeViewColumn
-- @
-- * Types
TreeViewColumn,
TreeViewColumnClass,
castToTreeViewColumn, gTypeTreeViewColumn,
toTreeViewColumn,
-- * Constructors
treeViewColumnNew,
-- * Methods
treeViewColumnPackStart,
treeViewColumnPackEnd,
treeViewColumnClear,
#if GTK_MAJOR_VERSION < 3
treeViewColumnGetCellRenderers,
#endif
treeViewColumnSetSpacing,
treeViewColumnGetSpacing,
treeViewColumnSetVisible,
treeViewColumnGetVisible,
treeViewColumnSetResizable,
treeViewColumnGetResizable,
TreeViewColumnSizing(..),
treeViewColumnSetSizing,
treeViewColumnGetSizing,
treeViewColumnGetWidth,
treeViewColumnSetFixedWidth,
treeViewColumnGetFixedWidth,
treeViewColumnSetMinWidth,
treeViewColumnGetMinWidth,
treeViewColumnSetMaxWidth,
treeViewColumnGetMaxWidth,
treeViewColumnClicked,
treeViewColumnSetTitle,
treeViewColumnGetTitle,
treeViewColumnSetClickable,
treeViewColumnGetClickable,
treeViewColumnSetWidget,
treeViewColumnGetWidget,
treeViewColumnSetAlignment,
treeViewColumnGetAlignment,
treeViewColumnSetReorderable,
treeViewColumnGetReorderable,
treeViewColumnSetSortColumnId,
treeViewColumnGetSortColumnId,
treeViewColumnSetSortIndicator,
treeViewColumnGetSortIndicator,
treeViewColumnSetSortOrder,
treeViewColumnGetSortOrder,
SortType(..),
#if GTK_CHECK_VERSION(2,4,0)
treeViewColumnSetExpand,
treeViewColumnGetExpand,
#endif
treeViewColumnCellIsVisible,
#if GTK_CHECK_VERSION(2,2,0)
treeViewColumnFocusCell,
#if GTK_CHECK_VERSION(2,8,0)
treeViewColumnQueueResize,
#endif
#endif
-- * Attributes
treeViewColumnVisible,
treeViewColumnResizable,
treeViewColumnWidth,
treeViewColumnSpacing,
treeViewColumnSizing,
treeViewColumnFixedWidth,
treeViewColumnMinWidth,
treeViewColumnMaxWidth,
treeViewColumnTitle,
treeViewColumnExpand,
treeViewColumnClickable,
treeViewColumnWidget,
treeViewColumnAlignment,
treeViewColumnReorderable,
treeViewColumnSortIndicator,
treeViewColumnSortOrder,
treeViewColumnSortColumnId,
-- * Signals
onColClicked,
afterColClicked
) where
import Control.Monad (liftM)
import System.Glib.FFI
import System.Glib.UTFString
#if GTK_MAJOR_VERSION < 3
{#import System.Glib.GList#} (fromGList)
#endif
import System.Glib.Attributes
import System.Glib.Properties
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
{#import Graphics.UI.Gtk.Types#}
{#import Graphics.UI.Gtk.Signals#}
import Graphics.UI.Gtk.General.Enums (TreeViewColumnSizing(..),
SortType(..))
import Graphics.UI.Gtk.General.Structs (SortColumnId)
{#import Graphics.UI.Gtk.ModelView.TreeModel#} ()
{# context lib="gtk" prefix="gtk" #}
--------------------
-- Constructors
-- | Generate a new TreeViewColumn widget.
--
treeViewColumnNew :: IO TreeViewColumn
treeViewColumnNew = makeNewObject mkTreeViewColumn
{# call tree_view_column_new #}
--------------------
-- Methods
-- | Add a cell renderer at the beginning of a column.
--
-- * Excess space is divided equally among all renderers which have
-- @expand@ set to True.
--
treeViewColumnPackStart :: CellRendererClass cell => TreeViewColumn
-> cell
-> Bool
-> IO ()
treeViewColumnPackStart self cell expand =
{# call unsafe tree_view_column_pack_start #}
self
(toCellRenderer cell)
(fromBool expand)
-- | Add a cell renderer at the end of a column.
--
-- * Excess space is divided equally among all renderers which have
-- @expand@ set to True.
--
treeViewColumnPackEnd :: CellRendererClass cell => TreeViewColumn
-> cell
-> Bool
-> IO ()
treeViewColumnPackEnd self cell expand =
{# call unsafe tree_view_column_pack_end #}
self
(toCellRenderer cell)
(fromBool expand)
-- | Remove the associations of attributes to a store for all 'CellRenderer's.
--
treeViewColumnClear :: TreeViewColumn -> IO ()
treeViewColumnClear self =
{# call tree_view_column_clear #}
self
#if GTK_MAJOR_VERSION < 3
-- | Retrieve all 'CellRenderer's that are contained in this column.
--
-- Removed in Gtk3.
treeViewColumnGetCellRenderers :: TreeViewColumn -> IO [CellRenderer]
treeViewColumnGetCellRenderers self =
{# call unsafe tree_view_column_get_cell_renderers #}
self
>>= fromGList
>>= mapM (makeNewObject mkCellRenderer . return)
#endif
-- | Set the number of pixels between two cell renderers.
--
treeViewColumnSetSpacing :: TreeViewColumn -> Int -> IO ()
treeViewColumnSetSpacing self spacing =
{# call tree_view_column_set_spacing #}
self
(fromIntegral spacing)
-- | Get the number of pixels between two cell renderers.
--
treeViewColumnGetSpacing :: TreeViewColumn -> IO Int
treeViewColumnGetSpacing self =
liftM fromIntegral $
{# call unsafe tree_view_column_get_spacing #}
self
-- | Set the visibility of a given column.
--
treeViewColumnSetVisible :: TreeViewColumn -> Bool -> IO ()
treeViewColumnSetVisible self visible =
{# call tree_view_column_set_visible #}
self
(fromBool visible)
-- | Get the visibility of a given column.
--
treeViewColumnGetVisible :: TreeViewColumn -> IO Bool
treeViewColumnGetVisible self =
liftM toBool $
{# call unsafe tree_view_column_get_visible #}
self
-- | Set if a given column is resizable by the user.
--
treeViewColumnSetResizable :: TreeViewColumn -> Bool -> IO ()
treeViewColumnSetResizable self resizable =
{# call tree_view_column_set_resizable #}
self
(fromBool resizable)
-- | Get if a given column is resizable by the user.
--
treeViewColumnGetResizable :: TreeViewColumn -> IO Bool
treeViewColumnGetResizable self =
liftM toBool $
{# call unsafe tree_view_column_get_resizable #}
self
-- | Set wether the column can be resized.
--
treeViewColumnSetSizing :: TreeViewColumn
-> TreeViewColumnSizing
-> IO ()
treeViewColumnSetSizing self type_ =
{# call tree_view_column_set_sizing #}
self
((fromIntegral . fromEnum) type_)
-- | Return the resizing type of the column.
--
treeViewColumnGetSizing :: TreeViewColumn
-> IO TreeViewColumnSizing
treeViewColumnGetSizing self =
liftM (toEnum . fromIntegral) $
{# call unsafe tree_view_column_get_sizing #}
self
-- | Query the current width of the column.
--
treeViewColumnGetWidth :: TreeViewColumn -> IO Int
treeViewColumnGetWidth self =
liftM fromIntegral $
{# call unsafe tree_view_column_get_width #}
self
-- | Set the width of the column.
--
-- * This is meaningful only if the sizing type is 'TreeViewColumnFixed'.
--
treeViewColumnSetFixedWidth :: TreeViewColumn -> Int -> IO ()
treeViewColumnSetFixedWidth self fixedWidth =
{# call tree_view_column_set_fixed_width #}
self
(fromIntegral fixedWidth)
-- | Gets the fixed width of the column.
--
-- * This is meaningful only if the sizing type is 'TreeViewColumnFixed'.
--
-- * This value is only meaning may not be the actual width of the column on the
-- screen, just what is requested.
--
treeViewColumnGetFixedWidth :: TreeViewColumn -> IO Int
treeViewColumnGetFixedWidth self =
liftM fromIntegral $
{# call unsafe tree_view_column_get_fixed_width #}
self
-- | Set minimum width of the column.
--
treeViewColumnSetMinWidth :: TreeViewColumn -> Int -> IO ()
treeViewColumnSetMinWidth self minWidth =
{# call tree_view_column_set_min_width #}
self
(fromIntegral minWidth)
-- | Get the minimum width of a column. Returns -1 if this width was not set.
--
treeViewColumnGetMinWidth :: TreeViewColumn -> IO Int
treeViewColumnGetMinWidth self =
liftM fromIntegral $
{# call unsafe tree_view_column_get_min_width #}
self
-- | Set maximum width of the column.
--
treeViewColumnSetMaxWidth :: TreeViewColumn -> Int -> IO ()
treeViewColumnSetMaxWidth self maxWidth =
{# call tree_view_column_set_max_width #}
self
(fromIntegral maxWidth)
-- | Get the maximum width of a column. Returns -1 if this width was not set.
--
treeViewColumnGetMaxWidth :: TreeViewColumn -> IO Int
treeViewColumnGetMaxWidth self =
liftM fromIntegral $
{# call unsafe tree_view_column_get_max_width #}
self
-- | Emit the @clicked@ signal on the column.
--
treeViewColumnClicked :: TreeViewColumn -> IO ()
treeViewColumnClicked self =
{# call tree_view_column_clicked #}
self
-- | Set the widget's title if a custom widget has not been set.
--
treeViewColumnSetTitle :: GlibString string => TreeViewColumn -> string -> IO ()
treeViewColumnSetTitle self title =
withUTFString title $ \titlePtr ->
{# call tree_view_column_set_title #}
self
titlePtr
-- | Get the widget's title.
--
treeViewColumnGetTitle :: GlibString string => TreeViewColumn -> IO (Maybe string)
treeViewColumnGetTitle self =
{# call unsafe tree_view_column_get_title #}
self
>>= maybePeek peekUTFString
-- | Set if the column should be sensitive to mouse clicks.
--
treeViewColumnSetClickable :: TreeViewColumn -> Bool -> IO ()
treeViewColumnSetClickable self clickable =
{# call tree_view_column_set_clickable #}
self
(fromBool clickable)
-- | Returns True if the user can click on the header for the column.
--
treeViewColumnGetClickable :: TreeViewColumn -> IO Bool
treeViewColumnGetClickable self =
liftM toBool $
{# call tree_view_column_get_clickable #}
self
-- | Set the column's title to this widget.
--
treeViewColumnSetWidget :: WidgetClass widget => TreeViewColumn
-> Maybe widget
-> IO ()
treeViewColumnSetWidget self widget =
{# call tree_view_column_set_widget #}
self
(maybe (Widget nullForeignPtr) toWidget widget)
-- | Retrieve the widget responsible for
-- showing the column title. In case only a text title was set this will be a
-- 'Alignment' widget with a 'Label' inside.
--
treeViewColumnGetWidget :: TreeViewColumn
-> IO (Maybe Widget) -- ^ returns the 'Widget' in the column header, or 'Nothing'
treeViewColumnGetWidget self = do
widgetPtr <- {# call unsafe tree_view_column_get_widget #} self
if widgetPtr == nullPtr
then return Nothing
else liftM Just $ makeNewObject mkWidget (return widgetPtr)
-- | Sets the alignment of the title or custom widget inside the column
-- header. The alignment determines its location inside the button -- 0.0 for
-- left, 0.5 for center, 1.0 for right.
--
treeViewColumnSetAlignment :: TreeViewColumn
-> Float -- ^ @xalign@ - The alignment, which is between [0.0 and
-- 1.0] inclusive.
-> IO ()
treeViewColumnSetAlignment self xalign =
{# call tree_view_column_set_alignment #}
self
(realToFrac xalign)
-- | Returns the current x alignment of the tree column. This value can range
-- between 0.0 and 1.0.
--
treeViewColumnGetAlignment :: TreeViewColumn -> IO Float
treeViewColumnGetAlignment self =
liftM realToFrac $
{# call unsafe tree_view_column_get_alignment #}
self
-- | Set if the column can be reordered by the end user dragging the header.
--
treeViewColumnSetReorderable :: TreeViewColumn -> Bool -> IO ()
treeViewColumnSetReorderable self reorderable =
{# call tree_view_column_set_reorderable #}
self
(fromBool reorderable)
-- | Returns whether the column can be reordered by the user.
--
treeViewColumnGetReorderable :: TreeViewColumn -> IO Bool
treeViewColumnGetReorderable self =
liftM toBool $
{# call unsafe tree_view_column_get_reorderable #}
self
-- | Set the column by which to sort.
--
-- * Sets the logical @columnId@ that this column sorts on when
-- this column is selected for sorting. The selected column's header
-- will be clickable after this call. Logical refers to the
-- 'Graphics.UI.Gtk.ModelView.TreeSortable.SortColumnId' for which
-- a comparison function was set.
--
treeViewColumnSetSortColumnId :: TreeViewColumn -> SortColumnId -> IO ()
treeViewColumnSetSortColumnId self sortColumnId =
{# call tree_view_column_set_sort_column_id #}
self
(fromIntegral sortColumnId)
-- | Get the column by which to sort.
--
-- * Retrieves the logical @columnId@ that the model sorts on when this column
-- is selected for sorting.
--
-- * Returns
-- 'Graphics.UI.Gtk.ModelView.TreeSortable.treeSortableDefaultSortColumnId'
-- if this tree view column has no
-- 'Graphics.UI.Gtk.ModelView.TreeSortable.SortColumnId' associated with it.
--
treeViewColumnGetSortColumnId :: TreeViewColumn -> IO SortColumnId
treeViewColumnGetSortColumnId self =
liftM fromIntegral $
{# call unsafe tree_view_column_get_sort_column_id #}
self
-- | Set if a given column has sorting arrows in its heading.
--
treeViewColumnSetSortIndicator :: TreeViewColumn
-> Bool -> IO ()
treeViewColumnSetSortIndicator self setting =
{# call tree_view_column_set_sort_indicator #}
self
(fromBool setting)
-- | Query if a given column has sorting arrows in its heading.
--
treeViewColumnGetSortIndicator :: TreeViewColumn -> IO Bool
treeViewColumnGetSortIndicator self =
liftM toBool $
{# call unsafe tree_view_column_get_sort_indicator #}
self
-- | Set if a given column is sorted in ascending or descending order.
--
-- * In order for sorting to work, it is necessary to either use automatic
-- sorting via 'treeViewColumnSetSortColumnId' or to use a
-- user defined sorting on the elements in a 'TreeModel'.
--
treeViewColumnSetSortOrder :: TreeViewColumn
-> SortType -> IO ()
treeViewColumnSetSortOrder self order =
{# call tree_view_column_set_sort_order #}
self
((fromIntegral . fromEnum) order)
-- | Query if a given column is sorted in ascending or descending order.
--
treeViewColumnGetSortOrder :: TreeViewColumn -> IO SortType
treeViewColumnGetSortOrder self =
liftM (toEnum . fromIntegral) $
{# call unsafe tree_view_column_get_sort_order #}
self
#if GTK_CHECK_VERSION(2,4,0)
-- %hash c:7808 d:942b
-- | Sets the column to take available extra space. This space is shared
-- equally amongst all columns that have the expand set to @True@. If no column
-- has this option set, then the last column gets all extra space. By default,
-- every column is created with this @False@.
--
-- * Available since Gtk+ version 2.4
--
treeViewColumnSetExpand :: TreeViewColumn
-> Bool -- ^ @expand@ - @True@ if the column should take available extra
-- space, @False@ if not
-> IO ()
treeViewColumnSetExpand self expand =
{# call gtk_tree_view_column_set_expand #}
self
(fromBool expand)
-- %hash c:ee41 d:f16b
-- | Return @True@ if the column expands to take any available space.
--
-- * Available since Gtk+ version 2.4
--
treeViewColumnGetExpand :: TreeViewColumn
-> IO Bool -- ^ returns @True@, if the column expands
treeViewColumnGetExpand self =
liftM toBool $
{# call gtk_tree_view_column_get_expand #}
self
#endif
-- %hash c:77e0 d:e1c7
-- | Returns @True@ if any of the cells packed into the @treeColumn@ are
-- visible. For this to be meaningful, you must first initialize the cells with
-- 'treeViewColumnCellSetCellData'
--
treeViewColumnCellIsVisible :: TreeViewColumn
-> IO Bool -- ^ returns @True@, if any of the cells packed into the
-- @treeColumn@ are currently visible
treeViewColumnCellIsVisible self =
liftM toBool $
{# call gtk_tree_view_column_cell_is_visible #}
self
#if GTK_CHECK_VERSION(2,2,0)
-- %hash c:a202 d:1401
-- | Sets the current keyboard focus to be at @cell@, if the column contains 2
-- or more editable and activatable cells.
--
-- * Available since Gtk+ version 2.2
--
treeViewColumnFocusCell :: CellRendererClass cell => TreeViewColumn
-> cell -- ^ @cell@ - A 'CellRenderer'
-> IO ()
treeViewColumnFocusCell self cell =
{# call gtk_tree_view_column_focus_cell #}
self
(toCellRenderer cell)
#if GTK_CHECK_VERSION(2,8,0)
-- %hash c:4420 d:bfde
-- | Flags the column, and the cell renderers added to this column, to have
-- their sizes renegotiated.
--
-- * Available since Gtk+ version 2.8
--
treeViewColumnQueueResize :: TreeViewColumn -> IO ()
treeViewColumnQueueResize self =
{# call gtk_tree_view_column_queue_resize #}
self
#endif
#endif
--------------------
-- Attributes
-- | Whether to display the column.
--
-- Default value: @True@
--
treeViewColumnVisible :: Attr TreeViewColumn Bool
treeViewColumnVisible = newAttr
treeViewColumnGetVisible
treeViewColumnSetVisible
-- | Column is user-resizable.
--
-- Default value: @False@
--
treeViewColumnResizable :: Attr TreeViewColumn Bool
treeViewColumnResizable = newAttr
treeViewColumnGetResizable
treeViewColumnSetResizable
-- | Current width of the column.
--
-- Allowed values: >= 0
--
-- Default value: 0
--
treeViewColumnWidth :: ReadAttr TreeViewColumn Int
treeViewColumnWidth = readAttrFromIntProperty "width"
-- | Space which is inserted between cells.
--
-- Allowed values: >= 0
--
-- Default value: 0
--
treeViewColumnSpacing :: Attr TreeViewColumn Int
treeViewColumnSpacing = newAttr
treeViewColumnGetSpacing
treeViewColumnSetSpacing
-- | Resize mode of the column.
--
-- Default value: 'TreeViewColumnGrowOnly'
--
treeViewColumnSizing :: Attr TreeViewColumn TreeViewColumnSizing
treeViewColumnSizing = newAttr
treeViewColumnGetSizing
treeViewColumnSetSizing
-- | Current fixed width of the column.
--
-- Allowed values: >= 1
--
-- Default value: 1
--
treeViewColumnFixedWidth :: Attr TreeViewColumn Int
treeViewColumnFixedWidth = newAttr
treeViewColumnGetFixedWidth
treeViewColumnSetFixedWidth
-- | Minimum allowed width of the column.
--
-- Allowed values: >= -1
--
-- Default value: -1
--
treeViewColumnMinWidth :: Attr TreeViewColumn Int
treeViewColumnMinWidth = newAttr
treeViewColumnGetMinWidth
treeViewColumnSetMinWidth
-- | Maximum allowed width of the column.
--
-- Allowed values: >= -1
--
-- Default value: -1
--
treeViewColumnMaxWidth :: Attr TreeViewColumn Int
treeViewColumnMaxWidth = newAttr
treeViewColumnGetMaxWidth
treeViewColumnSetMaxWidth
-- | Title to appear in column header.
--
-- Default value: \"\"
--
treeViewColumnTitle :: GlibString string => ReadWriteAttr TreeViewColumn (Maybe string) string
treeViewColumnTitle = newAttr
treeViewColumnGetTitle
treeViewColumnSetTitle
-- %hash c:800 d:eb1a
-- | Column gets share of extra width allocated to the widget.
--
-- Default value: @False@
--
treeViewColumnExpand :: Attr TreeViewColumn Bool
treeViewColumnExpand = newAttrFromBoolProperty "expand"
-- | Whether the header can be clicked.
--
-- Default value: @False@
--
treeViewColumnClickable :: Attr TreeViewColumn Bool
treeViewColumnClickable = newAttr
treeViewColumnGetClickable
treeViewColumnSetClickable
-- | Widget to put in column header button instead of column title.
--
treeViewColumnWidget :: WidgetClass widget => ReadWriteAttr TreeViewColumn (Maybe Widget) (Maybe widget)
treeViewColumnWidget = newAttr
treeViewColumnGetWidget
treeViewColumnSetWidget
-- | X Alignment of the column header text or widget.
--
-- Allowed values: [0,1]
--
-- Default value: 0
--
treeViewColumnAlignment :: Attr TreeViewColumn Float
treeViewColumnAlignment = newAttr
treeViewColumnGetAlignment
treeViewColumnSetAlignment
-- | Whether the column can be reordered around the headers.
--
-- Default value: @False@
--
treeViewColumnReorderable :: Attr TreeViewColumn Bool
treeViewColumnReorderable = newAttr
treeViewColumnGetReorderable
treeViewColumnSetReorderable
-- | Whether to show a sort indicator.
--
-- Default value: @False@
--
treeViewColumnSortIndicator :: Attr TreeViewColumn Bool
treeViewColumnSortIndicator = newAttr
treeViewColumnGetSortIndicator
treeViewColumnSetSortIndicator
-- | Sort direction the sort indicator should indicate.
--
-- Default value: 'SortAscending'
--
treeViewColumnSortOrder :: Attr TreeViewColumn SortType
treeViewColumnSortOrder = newAttr
treeViewColumnGetSortOrder
treeViewColumnSetSortOrder
-- | \'sortColumnId\' property. See 'treeViewColumnGetSortColumnId' and
-- 'treeViewColumnSetSortColumnId'
--
treeViewColumnSortColumnId :: Attr TreeViewColumn SortColumnId
treeViewColumnSortColumnId = newAttr
treeViewColumnGetSortColumnId
treeViewColumnSetSortColumnId
--------------------
-- Signals
-- | Emitted when the header of this column has been clicked on.
--
onColClicked, afterColClicked :: TreeViewColumnClass self => self
-> IO ()
-> IO (ConnectId self)
onColClicked = connect_NONE__NONE "clicked" False
afterColClicked = connect_NONE__NONE "clicked" True
|