Gtk tool button set label




















The ::destroy-event signal is emitted when a GdkWindow is destroyed. You rarely get this signal, because most widgets disconnect themselves from their window before they destroy it, so no widget owns the window at destroy time. The ::drag-begin signal is emitted on the drag source when a drag is started. A typical reason to connect to this signal is to set up a custom drag icon with e. The signal handler is responsible for deleting the data that has been dropped.

The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill data with the data in the format which is indicated by info. The ::drag-data-received signal is emitted on the drop site when the dragged data has been received. The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget.

The signal handler must determine whether the cursor position is in a drop zone or not. Otherwise, the handler returns TRUE. The ::drag-end signal is emitted on the drag source when a drag is finished. A typical reason to connect to this signal is to undo things done in GtkWidget::drag-begin. The ::drag-failed signal is emitted on the drag source when a drag has failed.

The ::drag-leave signal is emitted on the drop site when the cursor leaves the widget. A typical reason to connect to this signal is to undo things done in GtkWidget::drag-motion , e. The ::drag-motion signal is emitted on the drop site when the user moves the cursor over the widget during a drag. This signal is emitted when a widget is supposed to render itself. GtkWidget::key-press-event and finally a generic GtkWidget::event-after signal. After the emission of the GtkWidget::event signal and optionally the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values.

Emitted when a pointer or keyboard grab on a window belonging to widget gets broken. The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa. The ::key-press-event signal is emitted when a key is pressed. The signal emission will reoccur at the key-repeat rate when the key is kept pressed.

Gets emitted if keyboard navigation fails. Once the map has occurred, GtkWidget::map-event will be emitted. A window is mapped when it becomes visible on the screen. This signal gets emitted whenever a widget should pop up a context menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu.

For example, the GtkEntry widget creates a menu with clipboard commands. See the [Popup Menu Migration Checklist][checklist-popup-menu] for an example of how to use this signal. The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned. The ::state-changed signal is emitted when the widget state changes. The ::style-set signal is emitted when a new style has been set on a widget.

The ::unmap signal is emitted when widget is going to be unmapped, which means that either it or any of its parents up to the toplevel widget have been set as hidden. A window is unmapped when it becomes invisible on the screen. The ::window-state-event will be emitted when the state of the toplevel window associated to the widget changes.

Gtk API Version: 3. Type Button. Extra outside space is always drawn outside the button border. The ::activate signal on GtkButton is an action signal and emitting it causes the button to animate press then release.

GtkButton::enter has been deprecated since version 2. GtkButton::leave has been deprecated since version 2. GtkButton::pressed has been deprecated since version 2.

GtkButton::released has been deprecated since version 2. Go to page content Go to main menu Go to the search field. About Users Administrators Developers. GtkButton GtkButton.

Types and Values struct GtkButton. Parameters label The text of the button, with an underscore in front of the mnemonic character returns a new GtkButton. Returns a new GtkButton. Parameters button a GtkButton. Returns The text of the label widget. This will also clear any previously set labels.

Adds a child to buildable. Sets the property name name to value on the buildable object. The name of the themed icon displayed on the item. Whether to expand in both directions. Setting this sets both GtkWidget:hexpand and GtkWidget:vexpand. Enables or disables the emission of GtkWidget::query-tooltip on widget. A value of TRUE indicates that widget can have a tooltip, in this case the widget will be queried using GtkWidget::query-tooltip to determine whether it will provide a tooltip or not.

Whether to use the GtkWidget:hexpand property. Margin on end of widget, horizontally. This property supports left-to-right and right-to-left text directions. Margin on start of widget, horizontally. The requested opacity of the widget. The scale factor of the widget. Sets the text of tooltip to be the given string, which is marked up with the [Pango text markup language][PangoMarkupFormat].

Whether to use the GtkWidget:vexpand property. The action that this activatable will activate and receive updates from for various states and possibly appearance. Whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance.

This signal is emitted when the tool button is clicked with the mouse or activated with the keyboard. In response the tool item should either. This signal is emitted when some property of the toolbar that the item is a child of changes. The ::button-press-event signal will be emitted when a button typically from a mouse is pressed. The ::button-release-event signal will be emitted when a button typically from a mouse is released.

This signal is present to allow applications and derived widgets to override the default GtkWidget handling for determining whether an accelerator can be activated. The ::child-notify signal is emitted for each [child property][child-properties] that has changed on an object. The ::composited-changed signal is emitted when the composited status of widgets screen changes. Emitted when a redirected window belonging to widget gets drawn into.

The ::delete-event signal is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window. Signals that all holders of a reference to the widget should release the reference that they hold. May result in finalization of the widget if all references are released. The ::destroy-event signal is emitted when a GdkWindow is destroyed. You rarely get this signal, because most widgets disconnect themselves from their window before they destroy it, so no widget owns the window at destroy time.

The ::drag-begin signal is emitted on the drag source when a drag is started. A typical reason to connect to this signal is to set up a custom drag icon with e. The signal handler is responsible for deleting the data that has been dropped. Signals void clicked Action. Types and Values struct GtkToolButton. Parameters label a string that will be used as label, or NULL. Returns A new GtkToolButton. Parameters button a GtkToolButton. Returns TRUE if underscores in the label property are used as mnemonics on menu items on the overflow menu.

Returns the name of the stock item for button.



0コメント

  • 1000 / 1000