Class: Wx::AUI::AuiToolBarItem

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

Overview

AuiToolBarItem is part of the Wx::AUI class framework, representing a toolbar element.

See also AuiToolBar and wxAUI Overview. It has a unique id (except for the separators which always have id = -1), 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 (currently not implemented).

Category: Window Docking (wxAUI)

Requires:

  • USE_AUI

Instance Method Summary collapse

Constructor Details

#initializeWx::AUI::AuiToolBarItem #initialize(c) ⇒ Wx::AUI::AuiToolBarItem

Returns a new instance of AuiToolBarItem.

Overloads:



28
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 28

def initialize(*args) end

Instance Method Details

#assign(c) ⇒ void

This method returns an undefined value.

Assigns the properties of the Wx::AUI::AuiToolBarItem “c” to this.

Parameters:



33
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 33

def assign(c) end

#can_be_toggledBoolean Also known as: can_be_toggled?

Returns whether the toolbar item can be toggled.

Returns:

  • (Boolean)


224
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 224

def can_be_toggled; end

#get_alignmentInteger Also known as: alignment

Returns:

  • (Integer)


219
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 219

def get_alignment; end

#get_bitmapWx::Bitmap Also known as: bitmap

Returns:



107
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 107

def get_bitmap; end

#get_disabled_bitmapWx::Bitmap Also known as: disabled_bitmap

Returns:



116
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 116

def get_disabled_bitmap; end

#get_hover_bitmapWx::Bitmap Also known as: hover_bitmap

Returns:



125
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 125

def get_hover_bitmap; end

#get_idInteger Also known as: id

Returns the toolbar item identifier.

Returns:

  • (Integer)


54
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 54

def get_id; end

#get_kindInteger Also known as: kind

Returns the toolbar item kind.

one of ItemKind::ITEM_NORMAL, ItemKind::ITEM_CHECK or ItemKind::ITEM_RADIO, ItemKind::ITEM_SEPARATOR, ITEM_CONTROL, ITEM_SPACER, ITEM_LABEL,

Returns:

  • (Integer)


67
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 67

def get_kind; end

#get_labelWx::String Also known as: label

Returns:

  • (Wx::String)


98
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 98

def get_label; end

#get_long_helpWx::String Also known as: long_help

Returns:

  • (Wx::String)


143
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 143

def get_long_help; end

#get_min_sizeWx::Size Also known as: min_size

Returns:



152
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 152

def get_min_size; end

#get_proportionInteger Also known as: proportion

Returns:

  • (Integer)


170
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 170

def get_proportion; end

#get_short_helpWx::String Also known as: short_help

Returns:

  • (Wx::String)


134
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 134

def get_short_help; end

#get_sizer_itemWx::SizerItem Also known as: sizer_item

Returns:



89
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 89

def get_sizer_item; end

#get_spacer_pixelsInteger Also known as: spacer_pixels

Returns:

  • (Integer)


161
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 161

def get_spacer_pixels; end

#get_stateInteger Also known as: state

Gets the current state of the toolbar item.

an or’d combination of flags from Wx::AUI::AuiPaneButtonState representing the current state

Returns:

  • (Integer)


80
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 80

def get_state; end

#get_user_dataInteger Also known as: user_data

Returns:

  • (Integer)


210
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 210

def get_user_data; end

#get_windowWx::Window Also known as: window

Returns the Window* associated to the toolbar item.

Returns:



43
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 43

def get_window; end

#has_drop_downBoolean Also known as: has_drop_down?

Returns whether the toolbar item has an associated drop down button.

Returns:

  • (Boolean)


192
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 192

def has_drop_down; end

#is_activeBoolean Also known as: active?

Returns:

  • (Boolean)


179
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 179

def is_active; end

#is_stickyBoolean Also known as: sticky?

Returns:

  • (Boolean)


201
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 201

def is_sticky; end

#set_active(b) ⇒ void Also known as: active=

This method returns an undefined value.

Parameters:

  • b (Boolean)


175
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 175

def set_active(b) end

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

This method returns an undefined value.

Parameters:

  • l (Integer)


215
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 215

def set_alignment(l) end

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

This method returns an undefined value.



103
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 103

def set_bitmap(bmp) end

#set_disabled_bitmap(bmp) ⇒ void Also known as: disabled_bitmap=

This method returns an undefined value.



112
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 112

def set_disabled_bitmap(bmp) end

#set_has_drop_down(b) ⇒ void Also known as: has_drop_down=

This method returns an undefined value.

Set whether this tool has a drop down button.

This is only valid for ItemKind::ITEM_NORMAL tools.

Parameters:

  • b (Boolean)


187
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 187

def set_has_drop_down(b) end

#set_hover_bitmap(bmp) ⇒ void Also known as: hover_bitmap=

This method returns an undefined value.



121
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 121

def set_hover_bitmap(bmp) end

#set_id(new_id) ⇒ void Also known as: id=

This method returns an undefined value.

Sets the toolbar item identifier.

Parameters:

  • new_id (Integer)


49
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 49

def set_id(new_id) end

#set_kind(new_kind) ⇒ void Also known as: kind=

This method returns an undefined value.

Sets the Wx::AUI::AuiToolBarItem kind.

Parameters:

  • new_kind (Integer)


60
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 60

def set_kind(new_kind) end

#set_label(s) ⇒ void Also known as: label=

This method returns an undefined value.

Parameters:

  • s (String)


94
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 94

def set_label(s) end

#set_long_help(s) ⇒ void Also known as: long_help=

This method returns an undefined value.

Parameters:

  • s (String)


139
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 139

def set_long_help(s) end

#set_min_size(s) ⇒ void Also known as: min_size=

This method returns an undefined value.

Parameters:



148
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 148

def set_min_size(s) end

#set_proportion(p) ⇒ void Also known as: proportion=

This method returns an undefined value.

Parameters:

  • p (Integer)


166
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 166

def set_proportion(p) end

#set_short_help(s) ⇒ void Also known as: short_help=

This method returns an undefined value.

Parameters:

  • s (String)


130
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 130

def set_short_help(s) end

#set_sizer_item(s) ⇒ void Also known as: sizer_item=

This method returns an undefined value.

Parameters:



85
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 85

def set_sizer_item(s) end

#set_spacer_pixels(s) ⇒ void Also known as: spacer_pixels=

This method returns an undefined value.

Parameters:

  • s (Integer)


157
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 157

def set_spacer_pixels(s) end

#set_state(new_state) ⇒ void Also known as: state=

This method returns an undefined value.

Set the current state of the toolbar item.

Parameters:



73
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 73

def set_state(new_state) end

#set_sticky(b) ⇒ void Also known as: sticky=

This method returns an undefined value.

Parameters:

  • b (Boolean)


197
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 197

def set_sticky(b) end

#set_user_data(l) ⇒ void Also known as: user_data=

This method returns an undefined value.

Parameters:

  • l (Integer)


206
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 206

def set_user_data(l) end

#set_window(w) ⇒ void Also known as: window=

This method returns an undefined value.

Assigns a window to the toolbar item.

Parameters:



38
# File 'lib/wx/doc/gen/aui/aui_tool_bar_item.rb', line 38

def set_window(w) end