Lumiera  0.pre.03
»edit your freedom«
MiniWrapper< T > Class Template Reference

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

Description

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

A wrapper for ToolButton-like Button widgets.

Definition at line 36 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 49 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 65 of file mini-button.hpp.

Member Data Documentation

◆ image_

Gtk::Image image_
private

image widget for the button.

Definition at line 40 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: