Class: Wx::HeaderColumnSimple

Inherits:
SettableHeaderColumn show all
Defined in:
lib/wx/doc/gen/header_ctrl.rb

Overview

Simple container for the information about the column.

This is a concrete class implementing all SettableHeaderColumn class methods in a trivial way, i.e. by just storing the information in the object itself. It is used by and with HeaderCtrlSimple, e.g.

header = Wx::HeaderCtrlSimple.new(...)
  col = Wx::HeaderColumnSimple.new('Title')
  col.set_width(100)
  col.set_sortable(100)
  header.append_column(col)

Category: Controls

Instance Method Summary collapse

Methods inherited from SettableHeaderColumn

#change_flag, #clear_flag, #set_flag, #set_hidden, #set_reorderable, #set_resizeable, #set_sortable, #toggle_flag, #toggle_sort_order, #unset_as_sort_key

Methods inherited from HeaderColumn

#has_flag, #is_hidden, #is_reorderable, #is_resizeable, #is_shown, #is_sortable

Constructor Details

#initialize(title, width = Wx::COL_WIDTH_DEFAULT, align = Wx::Alignment::ALIGN_NOT, flags = Wx::COL_DEFAULT_FLAGS) ⇒ Wx::HeaderColumnSimple #initialize(bitmap, width = Wx::COL_WIDTH_DEFAULT, align = Wx::Alignment::ALIGN_CENTER, flags = Wx::COL_DEFAULT_FLAGS) ⇒ Wx::HeaderColumnSimple

Returns a new instance of HeaderColumnSimple.

Overloads:

  • #initialize(title, width = Wx::COL_WIDTH_DEFAULT, align = Wx::Alignment::ALIGN_NOT, flags = Wx::COL_DEFAULT_FLAGS) ⇒ Wx::HeaderColumnSimple

    Constructor for a column header.

    The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

    Parameters:

    • title (String)
    • width (Integer) (defaults to: Wx::COL_WIDTH_DEFAULT)
    • align (Wx::Alignment) (defaults to: Wx::Alignment::ALIGN_NOT)
    • flags (Integer) (defaults to: Wx::COL_DEFAULT_FLAGS)
  • #initialize(bitmap, width = Wx::COL_WIDTH_DEFAULT, align = Wx::Alignment::ALIGN_CENTER, flags = Wx::COL_DEFAULT_FLAGS) ⇒ Wx::HeaderColumnSimple

    Constructor for a column header.

    The first constructor creates a header showing the given text title while the second one creates one showing the specified bitmap image.

    Parameters:



757
# File 'lib/wx/doc/gen/header_ctrl.rb', line 757

def initialize(*args) end

Instance Method Details

#get_alignmentWx::Alignment Also known as: alignment

Trivial implementations of the base class pure virtual functions.

Returns:



816
# File 'lib/wx/doc/gen/header_ctrl.rb', line 816

def get_alignment; end

#get_bitmapWx::Bitmap Also known as: bitmap

Trivial implementations of the base class pure virtual functions.

Returns:



778
# File 'lib/wx/doc/gen/header_ctrl.rb', line 778

def get_bitmap; end

#get_bitmap_bundleWx::BitmapBundle Also known as: bitmap_bundle

Trivial implementations of the base class pure virtual functions.

Returns:



783
# File 'lib/wx/doc/gen/header_ctrl.rb', line 783

def get_bitmap_bundle; end

#get_flagsInteger Also known as: flags

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Integer)


827
# File 'lib/wx/doc/gen/header_ctrl.rb', line 827

def get_flags; end

#get_min_widthInteger Also known as: min_width

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Integer)


805
# File 'lib/wx/doc/gen/header_ctrl.rb', line 805

def get_min_width; end

#get_titleString Also known as: title

Trivial implementations of the base class pure virtual functions.

Returns:

  • (String)


767
# File 'lib/wx/doc/gen/header_ctrl.rb', line 767

def get_title; end

#get_widthInteger Also known as: width

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Integer)


794
# File 'lib/wx/doc/gen/header_ctrl.rb', line 794

def get_width; end

#is_sort_keyBoolean Also known as: sort_key?

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Boolean)


832
# File 'lib/wx/doc/gen/header_ctrl.rb', line 832

def is_sort_key; end

#is_sort_order_ascendingBoolean Also known as: sort_order_ascending?

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Boolean)


843
# File 'lib/wx/doc/gen/header_ctrl.rb', line 843

def is_sort_order_ascending; end

#set_alignment(align) ⇒ void Also known as: alignment=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:



811
# File 'lib/wx/doc/gen/header_ctrl.rb', line 811

def set_alignment(align) end

#set_bitmap(bitmap) ⇒ void Also known as: bitmap=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:



773
# File 'lib/wx/doc/gen/header_ctrl.rb', line 773

def set_bitmap(bitmap) end

#set_flags(flags) ⇒ void Also known as: flags=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:

  • flags (Integer)


822
# File 'lib/wx/doc/gen/header_ctrl.rb', line 822

def set_flags(flags) end

#set_min_width(minWidth) ⇒ void Also known as: min_width=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:

  • minWidth (Integer)


800
# File 'lib/wx/doc/gen/header_ctrl.rb', line 800

def set_min_width(minWidth) end

#set_sort_order(ascending) ⇒ void Also known as: sort_order=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:

  • ascending (Boolean)


838
# File 'lib/wx/doc/gen/header_ctrl.rb', line 838

def set_sort_order(ascending) end

#set_title(title) ⇒ void Also known as: title=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:

  • title (String)


762
# File 'lib/wx/doc/gen/header_ctrl.rb', line 762

def set_title(title) end

#set_width(width) ⇒ void Also known as: width=

This method returns an undefined value.

Trivial implementations of the base class pure virtual functions.

Parameters:

  • width (Integer)


789
# File 'lib/wx/doc/gen/header_ctrl.rb', line 789

def set_width(width) end