Parent

Methods

Files

Wx::ToolBar

A set of buttons and controls attached to one edge of a Wx::Frame

Constants

ADD_ITEM_PARAMS
Generic method to add items, supporting positional and named arguments

Public Instance Methods

add_item(*mixed_args) click to toggle source

(Not documented)

# File wx/classes/toolbar.rb, line 15
  def add_item(*mixed_args)
    args = Wx::args_as_list(ADD_ITEM_PARAMS, *mixed_args)
    if args[3] == Wx::NULL_BITMAP
      Kernel.raise ArgumentError, "Main button bitmap may not be NULL"
    end

    # Call add_tool to append if default position
    pos = args.shift
    if pos == -1
      add_tool(*args)
    else
      insert_tool(pos, *args)
    end
  end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.