#include <TexturePreviewCombo.h>
Public Member Functions | |
TexturePreviewCombo () | |
void | setTexture (const std::string &tex) |
operator GtkWidget * () | |
Private Member Functions | |
void | refreshInfoTable () |
Static Private Member Functions | |
static void | _onExpose (GtkWidget *, GdkEventExpose *, TexturePreviewCombo *) |
Private Attributes | |
GtkWidget * | _widget |
GtkWidget * | _glWidget |
std::string | _texName |
GtkListStore * | _infoStore |
An HBox containing an OpenGL preview widget displaying a texture, and a List View showing information about that texture.
Definition at line 16 of file TexturePreviewCombo.h.
ui::TexturePreviewCombo::TexturePreviewCombo | ( | ) |
Constructor creates GTK widgets.
static void ui::TexturePreviewCombo::_onExpose | ( | GtkWidget * | , | |
GdkEventExpose * | , | |||
TexturePreviewCombo * | ||||
) | [static, private] |
ui::TexturePreviewCombo::operator GtkWidget * | ( | ) | [inline] |
Operator cast to GtkWidget* for packing into parent container.
Definition at line 54 of file TexturePreviewCombo.h.
References _widget.
void ui::TexturePreviewCombo::refreshInfoTable | ( | ) | [private] |
void ui::TexturePreviewCombo::setTexture | ( | const std::string & | tex | ) |
Set the texture to preview.
tex | String name of the texture to preview (e.g. "textures/common/caulk") |
GtkWidget* ui::TexturePreviewCombo::_glWidget [private] |
Definition at line 22 of file TexturePreviewCombo.h.
GtkListStore* ui::TexturePreviewCombo::_infoStore [private] |
Definition at line 28 of file TexturePreviewCombo.h.
std::string ui::TexturePreviewCombo::_texName [private] |
Definition at line 25 of file TexturePreviewCombo.h.
GtkWidget* ui::TexturePreviewCombo::_widget [private] |
Definition at line 19 of file TexturePreviewCombo.h.
Referenced by operator GtkWidget *().