C4 Engine
C4 Engine API Documentation

class ImageWidget

Defined in:  C4Widgets.h
The ImageWidget class represents an interface widget that displays a texture image.
Definition

class ImageWidget : public QuadWidget

Constructor

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

ImageWidget(const Vector2D& size, const TextureHeader *header, const void *image = nullptr);

Parameters
size The size of the quad in which the image is rendered, in pixels.
name The name of the texture resource.
header A pointer to a texture header describing the texture image.
image A pointer to the texture image data. If this is nullptr, then the texture header must be part of a larger block of data containing the texture image.
Description
The ImageWidget class displays a plain texture image.
Base Classes
QuadWidget An image widget is a specific type of QuadWidget.
See Also

ImageButtonWidget

Wiki Articles

Image Widget