AllegroFlare/Prototypes/FixedRoom2D/Cursor
view source (cpp, hpp, quintessence) • view tests (test file)
Properties
font_bin |
AllegroFlare::FontBin* |
x |
float |
y |
float |
icon_offset_placement |
AllegroFlare::Placement2D |
info_text_offset_placement |
AllegroFlare::Placement2D |
info_text |
std::string |
info_text_flags |
int |
icon_character_num |
uint32_t |
cursor_last_set_at |
float |
Methods
draw() |
update() |
move(float distance_x=0.0f, float distance_y=0.0f) |
clamp(float min_x=0.0f, float min_y=0.0f, float max_x=1920.0f, float max_y=1080.0f) |
move_to(float x=0.0f, float y=0.0f) |
clear_info_text() |
set_cursor_to_pointer() |
set_cursor_to_grab() |
draw_unicode_character(ALLEGRO_FONT* font=nullptr, ALLEGRO_COLOR color=ALLEGRO_COLOR{1, 1, 1, 1}, uint32_t icon=61444, int flags=0) |
obtain_cursor_font() |
obtain_info_text_font() |
draw_cursor() |
draw_info_text() |
Dependencies
{"symbol"=>"AllegroFlare::FontBin", "headers"=>["AllegroFlare/FontBin.hpp"]} |
{"symbol"=>"ALLEGRO_COLOR", "headers"=>["allegro5/allegro.h"]} |
{"symbol"=>"ALLEGRO_FONT*", "headers"=>["allegro5/allegro.h"]} |
{"symbol"=>"AllegroFlare::FontBin*", "headers"=>["AllegroFlare/FontBin.hpp"]} |
{"symbol"=>"AllegroFlare::Placement2D", "headers"=>["AllegroFlare/Placement2D.hpp"]} |
{"symbol"=>"ALLEGRO_FONT", "headers"=>["allegro5/allegro.h"]} |
Sponsor
Visit CLUBCATT for cat shirts, cat mugs, cat puzzles, and more.