gltk 0.3
a C++ widget library built on GLUT
Public Types | Public Member Functions
gltk::Shape Class Reference

Widget of simple Shape. More...

#include <shape.hh>

Inheritance diagram for gltk::Shape:
gltk::Widget

List of all members.

Public Types

enum  Predefined { UP_TRIANGLE, DOWN_TRIANGLE, LEFT_TRIANGLE, RIGHT_TRIANGLE }
 available predefined shapes More...

Public Member Functions

 Shape (Predefined shape, int width, int height)
 initialize with a shape and sizes

Detailed Description

Widget of simple Shape.

These are simple scalable geometric shapes that can be used as icons.


Member Enumeration Documentation

available predefined shapes

Enumerator:
UP_TRIANGLE 

upward triangle

DOWN_TRIANGLE 

downward triangle

LEFT_TRIANGLE 

leftward triangle

RIGHT_TRIANGLE 

rightward triangle


Constructor & Destructor Documentation

Shape::Shape ( Predefined  shape,
int  width,
int  height 
)

initialize with a shape and sizes

Parameters:
shapeselect a predefined shape
widthdefault width
heightdefault height
 All Classes Namespaces Files Functions Variables Enumerations Enumerator