|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static void | popup_create_overlay (popup_struct *popup) |
| static void | popup_free (popup_struct *popup) |
| popup_struct * | popup_create (int bitmap_id) |
| void | popup_destroy_visible () |
| int | popup_overlay_need_update (popup_struct *popup) |
| void | popup_draw () |
| int | popup_handle_event (SDL_Event *event) |
| popup_struct * | popup_get_visible () |
Variables | |
| static popup_struct * | popup_visible = NULL |
Popup API.
Popup is basically a specified bitmap that appears in the middle of the screen, graying out the background and disabling mouse clicks and keyboard actions on the background.
Graying out the background is managed by using an overlay image, which is an SDL surface created when the popup is created. The pixels from ScreenSurface are copied to this surface and grayed out, and the surface is then copied over the ScreenSurface before doing any actual popup drawing. When the screen size changes, the overlay is re-created.
Definition in file popup.c.
| popup_struct* popup_create | ( | int | bitmap_id | ) |
| static void popup_create_overlay | ( | popup_struct * | popup | ) | [static] |
| void popup_destroy_visible | ( | ) |
| static void popup_free | ( | popup_struct * | popup | ) | [static] |
| popup_struct* popup_get_visible | ( | ) |
| int popup_handle_event | ( | SDL_Event * | event | ) |
| int popup_overlay_need_update | ( | popup_struct * | popup | ) |
popup_struct* popup_visible = NULL [static] |
1.7.4