#include <allegro5/allegro5.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_image.h>
#include "../include/imagescale.h"
Go to the source code of this file.
Defines | |
#define | _BUTTONS_ |
Functions | |
BUTTONPTR | get_first_element_from_button_list (void) |
BIMAGESPTR | get_first_element_from_button_image_list (void) |
BUTTONPTR | set_first_element_in_button_list (BUTTONPTR *newfirst) |
BUTTON_CALLBACK | get_button_callback (void) |
BUTTON_CALLBACK | set_button_callback (BUTTON_CALLBACK bcallb_func) |
void | buttoncheck (BUTTON_CALLBACK bcallb_func, void *data) |
void | render_buttons (void) |
void | draw_button (BUTTONPTR currentptr) |
void | check_for_button_events (BUTTONPTR currentptr) |
BUTTONPTR | search_button_list_for_element (BUTTONPTR *firstptr, char *label) |
BUTTONPTR | create_new_button (char *label, char *bimage_label, char *text, ALLEGRO_FONT *font, ALLEGRO_COLOR text_color, ALLEGRO_COLOR button_color, float x, float y, float limit, CBANIMATIONS aflags, BPROPERTIES bflags, _Bool add_to_list) |
BUTTONPTR | add_element_to_button_list (BUTTONPTR *button) |
BUTTONPTR | remove_element_from_button_list (BUTTONPTR *currentptr) |
_Bool | empty_button_list (BUTTONPTR firstptr) |
_Bool | empty_button_image_list (BIMAGESPTR firstptr) |
BUTTONPTR | set_bflags_on_button (BUTTONPTR button, BPROPERTIES bflags) |
BUTTONPTR | remove_bflags_on_button (BUTTONPTR button, BPROPERTIES bflags) |
BUTTONPTR | standard_button_animations (BUTTONPTR button) |
BUTTONPTR | custom_button_animations (BUTTONPTR button, CBANIMATIONS cb, float limit, BUTTON_CALLBACK bcall, void *data) |
SBANIMATIONS | set_standard_button_animation (SBANIMATIONS sb_new) |
SBANIMATIONS | get_standard_button_animation (void) |
_Bool | is_mouse_over_button (ALLEGRO_MOUSE_STATE *mouse, BUTTONPTR currentptr) |
_Bool | is_point_over_button (int x, int y, BUTTONPTR currentptr) |
BIMAGESPTR | create_new_button_image_list (char *labels[], char *images[], int num_elements) |
BIMAGESPTR | add_element_to_button_image_list (BIMAGESPTR *firstptr, BIMAGESPTR *newptr) |
BIMAGESPTR | search_button_image_list_for_element (BIMAGESPTR firstptr, char *label) |
Routines to create and manage the buttons linked list. Handles all mouse events related to buttons.
Definition in file buttons.c.