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:



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

def initialize(*args) end

Instance Method Details

#get_alignmentWx::Alignment Also known as: alignment

Trivial implementations of the base class pure virtual functions.

Returns:



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

def get_alignment; end

#get_bitmapWx::Bitmap Also known as: bitmap

Trivial implementations of the base class pure virtual functions.

Returns:



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

def get_bitmap; end

#get_bitmap_bundleWx::BitmapBundle Also known as: bitmap_bundle

Trivial implementations of the base class pure virtual functions.

Returns:



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

def get_bitmap_bundle; end

#get_flagsInteger Also known as: flags

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Integer)


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

def get_flags; end

#get_min_widthInteger Also known as: min_width

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Integer)


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

def get_min_width; end

#get_titleString Also known as: title

Trivial implementations of the base class pure virtual functions.

Returns:

  • (String)


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

def get_title; end

#get_widthInteger Also known as: width

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Integer)


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

def get_width; end

#is_sort_keyBoolean Also known as: sort_key?

Trivial implementations of the base class pure virtual functions.

Returns:

  • (Boolean)


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

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)


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

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:



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

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:



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

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)


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

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)


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

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)


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

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)


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

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)


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

def set_width(width) end