C4 Engine
C4 Engine API Documentation

class ImageButtonWidget

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

class ImageButtonWidget final : public ImageWidget

Constructor

ImageButtonWidget(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 ImageButtonWidget 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 image 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.
Wiki Articles

Image Button Widget