Class: Wx::SettableHeaderColumn
- Inherits:
-
HeaderColumn
- Object
- HeaderColumn
- Wx::SettableHeaderColumn
- Defined in:
- lib/wx/doc/gen/header_ctrl.rb
Overview
Adds methods to set the column attributes to HeaderColumn.
This class adds setters for the column attributes defined by HeaderColumn. It is still an abstract base class and needs to be implemented before using it with HeaderCtrl.
Category: Controls
Direct Known Subclasses
Instance Method Summary collapse
-
#change_flag(flag, set) ⇒ void
Set or clear the given flag.
-
#clear_flag(flag) ⇒ void
Clear the specified flag for the column.
-
#set_alignment(align) ⇒ void
(also: #alignment=)
Set the alignment of the column header.
-
#set_bitmap(bitmap) ⇒ void
(also: #bitmap=)
Set the bitmap to be displayed in the column header.
-
#set_flag(flag) ⇒ void
(also: #flag=)
Set the specified flag for the column.
-
#set_flags(flags) ⇒ void
(also: #flags=)
Set the column flags.
-
#set_hidden(hidden) ⇒ void
(also: #hidden=)
Hide or show the column.
-
#set_min_width(minWidth) ⇒ void
(also: #min_width=)
Set the minimal column width.
-
#set_reorderable(reorderable) ⇒ void
(also: #reorderable=)
Allow changing the column order by dragging it.
-
#set_resizeable(resizable) ⇒ void
(also: #resizeable=)
Call this to enable or disable interactive resizing of the column by the user.
-
#set_sort_order(ascending) ⇒ void
(also: #sort_order=)
Sets this column as the sort key for the associated control.
-
#set_sortable(sortable) ⇒ void
(also: #sortable=)
Allow clicking the column to sort the control contents by the field in this column.
-
#set_title(title) ⇒ void
(also: #title=)
Set the text to display in the column header.
-
#set_width(width) ⇒ void
(also: #width=)
Set the column width.
-
#toggle_flag(flag) ⇒ void
Toggle the specified flag for the column.
-
#toggle_sort_order ⇒ void
Inverses the sort order.
-
#unset_as_sort_key ⇒ void
Don’t use this column for sorting.
Methods inherited from HeaderColumn
#get_alignment, #get_bitmap, #get_bitmap_bundle, #get_flags, #get_min_width, #get_title, #get_width, #has_flag, #is_hidden, #is_reorderable, #is_resizeable, #is_shown, #is_sort_key, #is_sort_order_ascending, #is_sortable
Instance Method Details
#change_flag(flag, set) ⇒ void
This method returns an undefined value.
Set or clear the given flag.
637 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 637 def change_flag(flag, set) end |
#clear_flag(flag) ⇒ void
This method returns an undefined value.
Clear the specified flag for the column.
654 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 654 def clear_flag(flag) end |
#set_alignment(align) ⇒ void Also known as: alignment=
This method returns an undefined value.
Set the alignment of the column header.
619 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 619 def set_alignment(align) end |
#set_bitmap(bitmap) ⇒ void Also known as: bitmap=
This method returns an undefined value.
Set the bitmap to be displayed in the column header.
Notice that the bitmaps displayed in different columns of the same control must all be of the same size.
599 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 599 def set_bitmap(bitmap) end |
#set_flag(flag) ⇒ void Also known as: flag=
This method returns an undefined value.
Set the specified flag for the column.
645 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 645 def set_flag(flag) end |
#set_flags(flags) ⇒ void Also known as: flags=
This method returns an undefined value.
Set the column flags.
This method allows setting all flags at once, see also generic #change_flag, #set_flag, #clear_flag and #toggle_flag methods below as well as specific #set_resizeable, #set_sortable, #set_reorderable and #set_hidden ones.
627 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 627 def set_flags(flags) end |
#set_hidden(hidden) ⇒ void Also known as:
This method returns an undefined value.
Hide or show the column.
By default all columns are shown but some of them can be completely hidden from view by calling this function. Equivalent to ChangeFlag(COL_HIDDEN, hidden).
696 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 696 def set_hidden(hidden) end |
#set_min_width(minWidth) ⇒ void Also known as: min_width=
This method returns an undefined value.
Set the minimal column width.
This method can be used with resizable columns (i.e. those for which COL_RESIZABLE flag is set in HeaderColumn#get_flags or, alternatively, HeaderColumn#is_resizeable returns true) to prevent the user from making them narrower than the given width.
613 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 613 def set_min_width(minWidth) end |
#set_reorderable(reorderable) ⇒ void Also known as: reorderable=
This method returns an undefined value.
Allow changing the column order by dragging it.
Equivalent to ChangeFlag(COL_REORDERABLE, reorderable).
687 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 687 def set_reorderable(reorderable) end |
#set_resizeable(resizable) ⇒ void Also known as: resizeable=
This method returns an undefined value.
Call this to enable or disable interactive resizing of the column by the user.
By default, the columns are resizable. Equivalent to ChangeFlag(COL_RESIZABLE, resizable).
670 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 670 def set_resizeable(resizable) end |
#set_sort_order(ascending) ⇒ void Also known as: sort_order=
This method returns an undefined value.
Sets this column as the sort key for the associated control.
This function indicates that this column is currently used for sorting the control and also sets the sorting direction. Notice that actual sorting is only done in the control associated with the header, this function doesn’t do any sorting on its own. Don’t confuse this function with #set_sortable which should be used to indicate that the column may be used for sorting while this one is used to indicate that it currently is used for sorting. Of course, #set_sort_order can be only called for sortable columns.
711 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 711 def set_sort_order(ascending) end |
#set_sortable(sortable) ⇒ void Also known as: sortable=
This method returns an undefined value.
Allow clicking the column to sort the control contents by the field in this column.
By default, the columns are not sortable so you need to explicitly call this function to allow sorting by the field corresponding to this column. Equivalent to ChangeFlag(COL_SORTABLE, sortable).
679 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 679 def set_sortable(sortable) end |
#set_title(title) ⇒ void Also known as: title=
This method returns an undefined value.
Set the text to display in the column header.
591 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 591 def set_title(title) end |
#set_width(width) ⇒ void Also known as: width=
This method returns an undefined value.
Set the column width.
605 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 605 def set_width(width) end |
#toggle_flag(flag) ⇒ void
This method returns an undefined value.
Toggle the specified flag for the column.
If the flag is currently set, equivalent to #clear_flag, otherwise to #set_flag.
662 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 662 def toggle_flag(flag) end |
#toggle_sort_order ⇒ void
This method returns an undefined value.
Inverses the sort order.
This function is typically called when the user clicks on a column used for sorting to change sort order from ascending to descending or vice versa.
720 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 720 def toggle_sort_order; end |
#unset_as_sort_key ⇒ void
This method returns an undefined value.
Don’t use this column for sorting.
This is the reverse of #set_sort_order and is called to indicate that this column is not used for sorting any longer.
703 |
# File 'lib/wx/doc/gen/header_ctrl.rb', line 703 def unset_as_sort_key; end |