Lumiera  0.pre.03
»edityourfreedom«
MiniWrapper< T > Class Template Reference

#include "gui/widget/mini-button.hpp"

Description

template<class T>
class gui::widget::MiniWrapper< T >

A wrapper for ToolButton-like Button widgets.

Definition at line 43 of file mini-button.hpp.

Public Member Functions

 MiniWrapper (Gtk::StockID const &stock_id, const Gtk::IconSize icon_size=Gtk::ICON_SIZE_LARGE_TOOLBAR)
 Creates a new Button containing the image and text from a stock item. More...
 
void setStockID (Gtk::StockID const &stock_id, const Gtk::IconSize icon_size=Gtk::ICON_SIZE_LARGE_TOOLBAR)
 Sets a new image from a stock-id for this button. More...
 

Private Attributes

Gtk::Image image_
 image widget for the button. More...
 

Constructor & Destructor Documentation

◆ MiniWrapper()

MiniWrapper ( Gtk::StockID const &  stock_id,
const Gtk::IconSize  icon_size = Gtk::ICON_SIZE_LARGE_TOOLBAR 
)
inline

Creates a new Button containing the image and text from a stock item.

Parameters
stock_idThe stock_id of the image.
icon_sizeThe size of the image to show.
Remarks
Stock IDs have identifiers like Gtk::Stock::OK and Gtk::Stock::APPLY.

Definition at line 56 of file mini-button.hpp.

Member Function Documentation

◆ setStockID()

void setStockID ( Gtk::StockID const &  stock_id,
const Gtk::IconSize  icon_size = Gtk::ICON_SIZE_LARGE_TOOLBAR 
)
inline

Sets a new image from a stock-id for this button.

Parameters
stock_idThe stock_id of the image.
icon_sizeThe size of the image to show.

Definition at line 72 of file mini-button.hpp.

Referenced by Track::updateEnableButton(), Track::updateLockButton(), and TimelinePanelObsolete::updatePlaybackButtons().

+ Here is the caller graph for this function:

Member Data Documentation

◆ image_

Gtk::Image image_
private

image widget for the button.

Definition at line 47 of file mini-button.hpp.

+ Inheritance diagram for MiniWrapper< T >:
+ Collaboration diagram for MiniWrapper< T >:

The documentation for this class was generated from the following file: