xhads/source/ui.ads

53 lines
2.6 KiB
Ada
Raw Normal View History

2024-02-15 21:03:09 -05:00
with core;
package ui is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type style is (
2024-02-17 18:13:17 -05:00
default, steam, yd
2024-02-15 21:03:09 -05:00
);
type codex is (
none,
main_background,
corner_upper_left, corner_upper_right, corner_lower_left, corner_lower_right,
tiny_corner_upper_left, tiny_corner_upper_right, tiny_corner_lower_left, tiny_corner_lower_right,
border_upper, border_lower, border_left, border_right,
tiny_border_upper, tiny_border_lower, tiny_border_left, tiny_border_right,
frame_upper_left, frame_upper, frame_upper_right,
frame_left, frame_middle, frame_right,
2024-02-16 14:58:54 -05:00
frame_lower_left, frame_lower, frame_lower_right,
2024-03-10 16:41:31 -04:00
cursor, icon,
2024-02-17 18:13:17 -05:00
fill_bar_left, fill_bar_horizontal, fill_bar_right, fill_horizontal,
2024-02-16 14:58:54 -05:00
scroll_bar_lower, scroll_bar_middle, scroll_bar_upper,
title_bar_left, title_bar_middle, title_bar_right
2024-02-15 21:03:09 -05:00
);
------------------------------------------------------------------------------------------
2024-02-19 21:52:43 -05:00
type sprite_array is array (style, codex) of core.sprite;
------------------------------------------------------------------------------------------
sprite : sprite_array;
2024-02-15 21:03:09 -05:00
active : style;
------------------------------------------------------------------------------------------
procedure configure;
2024-03-10 16:41:31 -04:00
procedure draw_icon (data : in core.sprite; x, y : in integer);
2024-02-15 21:03:09 -05:00
procedure draw_frame (x, y, width, height : in integer);
2024-02-19 21:52:43 -05:00
procedure draw_title_bar (x, y, width : in integer; title : in string);
procedure draw_scroll_bar (x, y, height : in integer; offset : in integer);
2024-02-16 14:58:54 -05:00
2024-02-15 21:03:09 -05:00
procedure draw_menu (x, y, width, height : in integer; background : in boolean);
procedure draw_tiny_menu (x, y, width, height : in integer; background : in boolean);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end ui;