C4 Engine Terathon Software C4 Engine API Documentation

• Interface Manager

API Links
Developer Links

class IconButtonWidget

Defined in:  C4Widgets.h
The IconButtonWidget class represents an interface widget that displays a push button containing an image.
Definition

class IconButtonWidget : public ImageWidget

Constructor

IconButtonWidget(const Vector2D& size, const char *name);

Parameters
size The size of the quad in which the image is rendered, in pixels.
name The name of the texture resource.
Description
The IconButtonWidget class displays a button with a texture image.

The default widget color controls the color modulating the image through the QuadWidget (indirect) base class. The kWidgetColorButton color type is also supported by the icon button widget, and it controls the color of the button.
Base Classes
ImageWidget The image displayed in the push button is based on the ImageWidget class.