ui::TexturePreviewCombo Class Reference

#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

Detailed Description

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.


Constructor & Destructor Documentation

ui::TexturePreviewCombo::TexturePreviewCombo (  ) 

Constructor creates GTK widgets.


Member Function Documentation

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.

Parameters:
tex String name of the texture to preview (e.g. "textures/common/caulk")

Field Documentation

Definition at line 22 of file TexturePreviewCombo.h.

Definition at line 28 of file TexturePreviewCombo.h.

Definition at line 25 of file TexturePreviewCombo.h.

Definition at line 19 of file TexturePreviewCombo.h.

Referenced by operator GtkWidget *().


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

Generated by  doxygen 1.6.2