Class: Wx::ToolBarToolBase

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/tool_bar.rb

Overview

A toolbar tool represents one item on the toolbar.

It has a unique id (except for the separators), the style (telling whether it is a normal button, separator or a control), the state (toggled or not, enabled or not) and short and long help strings. The default implementations use the short help string for the tooltip text which is popped up when the mouse pointer enters the tool and the long help string for the applications status bar. Notice that the toolbar can not be modified by changing its tools via the (intentionally undocumented here) setter methods of this class, all the modifications must be done using the methods of ToolBar itself.

Requires:

  • USE_TOOLBAR

Instance Method Summary collapse

Methods inherited from Object

#clone, #dup, #is_same_as, #un_share

Constructor Details

#initialize(tbar = nil, toolid = Wx::StandardID::ID_SEPARATOR, label = (''), bmpNormal = Wx::NULL_BITMAP, bmpDisabled = Wx::NULL_BITMAP, kind = Wx::ItemKind::ITEM_NORMAL, clientData = nil, shortHelpString = (''), longHelpString = ('')) ⇒ Wx::ToolBarToolBase #initialize(tbar, control, label) ⇒ Wx::ToolBarToolBase

Returns a new instance of ToolBarToolBase.

Overloads:

  • #initialize(tbar = nil, toolid = Wx::StandardID::ID_SEPARATOR, label = (''), bmpNormal = Wx::NULL_BITMAP, bmpDisabled = Wx::NULL_BITMAP, kind = Wx::ItemKind::ITEM_NORMAL, clientData = nil, shortHelpString = (''), longHelpString = ('')) ⇒ Wx::ToolBarToolBase

    Parameters:

  • #initialize(tbar, control, label) ⇒ Wx::ToolBarToolBase

    Parameters:



763
# File 'lib/wx/doc/gen/tool_bar.rb', line 763

def initialize(*args) end

Instance Method Details

#can_be_toggledBoolean Also known as: can_be_toggled?

Returns:

  • (Boolean)


817
# File 'lib/wx/doc/gen/tool_bar.rb', line 817

def can_be_toggled; end

#get_bitmapWx::Bitmap Also known as: bitmap

Returns:



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

def get_bitmap; end

#get_client_dataWx::Object Also known as: client_data

Returns:



859
# File 'lib/wx/doc/gen/tool_bar.rb', line 859

def get_client_data; end

#get_controlWx::Control Also known as: control

Returns:



770
# File 'lib/wx/doc/gen/tool_bar.rb', line 770

def get_control; end

#get_disabled_bitmapWx::Bitmap Also known as: disabled_bitmap

Returns:



839
# File 'lib/wx/doc/gen/tool_bar.rb', line 839

def get_disabled_bitmap; end

#get_disabled_bitmap_bundleWx::BitmapBundle Also known as: disabled_bitmap_bundle

Return the bundle containing disabled tool bitmaps.

This bundle may be invalid if the tool doesn’t show a bitmap or doesn’t have a specific disabled bitmap creates one automatically from the normal bitmap.

Returns:



831
# File 'lib/wx/doc/gen/tool_bar.rb', line 831

def get_disabled_bitmap_bundle; end

#get_dropdown_menuWx::Menu Also known as: dropdown_menu

Returns:



868
# File 'lib/wx/doc/gen/tool_bar.rb', line 868

def get_dropdown_menu; end

#get_idInteger Also known as: id

Returns:

  • (Integer)


766
# File 'lib/wx/doc/gen/tool_bar.rb', line 766

def get_id; end

#get_kindWx::ItemKind Also known as: kind

Returns:



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

def get_kind; end

#get_labelWx::String Also known as: label

Returns:

  • (Wx::String)


847
# File 'lib/wx/doc/gen/tool_bar.rb', line 847

def get_label; end

#get_long_helpWx::String Also known as: long_help

Returns:

  • (Wx::String)


855
# File 'lib/wx/doc/gen/tool_bar.rb', line 855

def get_long_help; end

#get_normal_bitmapWx::Bitmap Also known as: normal_bitmap

Returns:



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

def get_normal_bitmap; end

#get_normal_bitmap_bundleWx::BitmapBundle Also known as: normal_bitmap_bundle

Return the bundle containing normal tool bitmaps.

This bundle may be invalid if the tool doesn’t show a bitmap.

Returns:



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

def get_normal_bitmap_bundle; end

#get_short_helpWx::String Also known as: short_help

Returns:

  • (Wx::String)


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

def get_short_help; end

#get_styleInteger Also known as: style

Returns:

  • (Integer)


798
# File 'lib/wx/doc/gen/tool_bar.rb', line 798

def get_style; end

#get_tool_barWx::ToolBar Also known as: tool_bar

Returns:



774
# File 'lib/wx/doc/gen/tool_bar.rb', line 774

def get_tool_bar; end

#is_buttonBoolean Also known as: button?

Returns:

  • (Boolean)


782
# File 'lib/wx/doc/gen/tool_bar.rb', line 782

def is_button; end

#is_controlBoolean Also known as: control?

Returns:

  • (Boolean)


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

def is_control; end

#is_enabledBoolean Also known as: enabled?

Returns:

  • (Boolean)


809
# File 'lib/wx/doc/gen/tool_bar.rb', line 809

def is_enabled; end

#is_separatorBoolean Also known as: separator?

Returns:

  • (Boolean)


790
# File 'lib/wx/doc/gen/tool_bar.rb', line 790

def is_separator; end

#is_stretchableBoolean Also known as: stretchable?

Returns:

  • (Boolean)


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

def is_stretchable; end

#is_stretchable_spaceBoolean Also known as: stretchable_space?

Returns:

  • (Boolean)


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

def is_stretchable_space; end

#is_toggledBoolean Also known as: toggled?

Returns:

  • (Boolean)


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

def is_toggled; end

#make_stretchablevoid

This method returns an undefined value.



806
# File 'lib/wx/doc/gen/tool_bar.rb', line 806

def make_stretchable; end

#set_dropdown_menu(menu) ⇒ void Also known as: dropdown_menu=

This method returns an undefined value.

Parameters:



864
# File 'lib/wx/doc/gen/tool_bar.rb', line 864

def set_dropdown_menu(menu) end