Package Graphics.Graphic_Component

This package holds the graphic components.

Class Graphic_Component

This is the Graphic Component interface. All Graphic Components implement this interface. This allows us to speak to this interface in most parts of the code and let other parts decide, which implementation we really use.

Operations

public Draw_Pixmap ( Graphics.Pixmaps.Pixmap Pixmap , Graphics.Points.Point Pos );

Draws a pixmap. The position is in the middle of the pixmap.

public Draw_Line ( Graphics.Points.Point Start_Pos , Graphics.Points.Point End_Pos , Ada.Strings.Unbounded.Unbounded_String Color );

Draws a line between the given positions.

public Draw_Text ( String Text , Graphics.Points.Point Pos , Ada.Strings.Unbounded.Unbounded_String Color );

Draws a text.

public Draw_Rectangle ( Graphics.Points.Point Pos1 , Graphics.Points.Point Pos2 , Boolean Filled := False , Ada.Strings.Unbounded.Unbounded_String Color );

Draws a rectangle. Note: Pos1 is not required to be the upper left corner, it can also be the lower right corner.