Class: Gtk::ToolButton
- Inherits:
-
Object
- Object
- Gtk::ToolButton
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#icon_name ⇒ String
The name of the themed icon displayed on the item.
-
#icon_name=(icon_name) ⇒ String
The name of the themed icon displayed on the item.
-
#icon_widget ⇒ Gtk::Widget
Icon-widget.
- #icon_widget=(icon_widget) ⇒ Gtk::Widget
-
#label ⇒ String
Label.
- #label=(label) ⇒ String
-
#label_widget ⇒ Gtk::Widget
Label-widget.
- #label_widget=(label_widget) ⇒ Gtk::Widget
-
#new(icon_widget, label) ⇒ Gtk::ToolItem
Creates a new Gtk::ToolButton using icon_widget as contents and label as label.
-
#new_from_stock(stock_id) ⇒ Gtk::ToolItem
Creates a new Gtk::ToolButton containing the image and text from a stock item.
-
#stock_id ⇒ String
Stock-id.
- #stock_id=(stock_id) ⇒ String
-
#use_underline ⇒ TrueClass
Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu.
- #use_underline=(use_underline) ⇒ TrueClass
-
#use_underline? ⇒ TrueClass
Use-underline.
Instance Method Details
#icon_name ⇒ String
The name of the themed icon displayed on the item. This property only has an effect if not overridden by Gtk::ToolButton:label-widget, #GtkToolButton:icon-widget or Gtk::ToolButton:stock-id properties.
#icon_name=(icon_name) ⇒ String
The name of the themed icon displayed on the item. This property only has an effect if not overridden by Gtk::ToolButton:label-widget, #GtkToolButton:icon-widget or Gtk::ToolButton:stock-id properties.
#icon_widget ⇒ Gtk::Widget
Returns icon-widget.
#icon_widget=(icon_widget) ⇒ Gtk::Widget
#label ⇒ String
Returns label.
#label=(label) ⇒ String
#label_widget ⇒ Gtk::Widget
Returns label-widget.
#label_widget=(label_widget) ⇒ Gtk::Widget
#new(icon_widget, label) ⇒ Gtk::ToolItem
Creates a new Gtk::ToolButton using icon_widget as contents and label as label.
#new_from_stock(stock_id) ⇒ Gtk::ToolItem
Creates a new Gtk::ToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.
It is an error if stock_id is not a name of a stock item.
#stock_id ⇒ String
Returns stock-id.
#stock_id=(stock_id) ⇒ String
#use_underline ⇒ TrueClass
Returns whether underscores in the label property are used as mnemonics on menu items on the overflow menu. See gtk_tool_button_set_use_underline(). mnemonics on menu items on the overflow menu.
#use_underline=(use_underline) ⇒ TrueClass
#use_underline? ⇒ TrueClass
Returns use-underline.