text stringlengths 0 234 |
|---|
Graphics.Set(Buffer'access, Clr); |
end Clear; |
-- Draw a point with size "Size" at poiny X,Y. |
procedure Dot(P: Point; Size: Positive:=1; Clr: Color:=White) is |
begin |
Graphics.Dot(Buffer'access, P, Size, Clr); |
end Dot; |
procedure Line |
(P,Q: Point; Size: Positive:= 1; Clr:Color:= White) is |
begin |
Graphics.Line(Buffer'access, P, Q, Size, Clr); |
end Line; |
procedure Rectangle |
(P, Q: Point; Size: Positive:= 1; Clr: Color:= White) is |
begin |
Graphics.Rectangle(Buffer'access, P, Q, Size, Clr); |
end Rectangle; |
procedure Fill_Rectangle |
(P, Q: Point; Clr: Color := White) is |
begin |
Graphics.Fill_Rectangle(Buffer'access, P, Q, Clr); |
end Fill_Rectangle; |
procedure Circle |
(Center: Point; R:Natural; Size: Positive := 1; Clr: Color:= White) is |
begin |
Graphics.Circle(Buffer'access, Center, R, Size, Clr); |
end Circle; |
procedure Fill_Circle |
(Center: Point; R: Natural; Clr: Color:= White) is |
begin |
Graphics.Fill_Circle(Buffer'access, Center, R, Clr); |
end Fill_Circle; |
procedure Put |
(P : Point; |
Ch : Character; |
Size : Positive:= 12; |
Fgnd : Color := White; |
Bgnd : Color := Black) is |
begin |
Graphics.Put(Buffer'access, P, Ch, Size, Fgnd, Bgnd); |
end Put; |
procedure Put |
(P : Point; |
Text : String; |
Size : Positive:= 12; |
Fgnd : Color := White; |
Bgnd : Color := Black) is |
begin |
Graphics.Put(Buffer'access, P, Text, Size, Fgnd, Bgnd); |
end Put; |
-- Draw a number to the display |
procedure Put |
(P : Point; -- Position |
Num : Natural; -- The number to draw |
Size : Positive := 12; -- Font size |
Fgnd : Color := White; -- Foreground color |
Bgnd : Color := Black) is -- Background color |
begin |
Graphics.Put(Buffer'access, P, Num, Size, Fgnd, Bgnd); |
end Put; |
procedure Bitmap |
(P: Point; Bytes : Byte_Array_Access; S: Size) is |
begin |
Graphics.Bitmap(Buffer'access, P, Bytes, S); |
end Bitmap; |
procedure Bitmap |
(P: Point; Icon: Bitmap_Icon) is |
begin |
Graphics.Bitmap(Buffer'access, P, Icon); |
Function Definition: procedure Tests is |
Function Body: Failures : Natural := 0; |
begin |
for Kind in Testsuite.Encode.Encoder_Kind |
loop |
declare |
Suite : aliased AUnit.Test_Suites.Test_Suite; |
function Get_Suite return AUnit.Test_Suites.Access_Test_Suite |
is (Suite'Unchecked_Access); |
function Runner is new AUnit.Run.Test_Runner_With_Status (Get_Suite); |
Reporter : AUnit.Reporter.Text.Text_Reporter; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.