#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_gui.h"
Go to the source code of this file.
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ PANEL_W
◆ PANEL_X
◆ SPLIT_H
◆ SPLIT_W
◆ SPLIT_X
◆ SPLIT_Y
◆ TT_H
◆ TT_W
◆ bubble_width()
| int bubble_width |
( |
ALLEGRO_BITMAP * | a, |
|
|
ALLEGRO_BITMAP * | b ) |
|
static |
◆ expect_true()
| void expect_true |
( |
const char * | label, |
|
|
int | cond ) |
|
static |
◆ hover_tooltip_at()
| int hover_tooltip_at |
( |
N_GUI_CTX * | gui, |
|
|
int | x, |
|
|
int | y ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 163 of file ex_gui_tooltip.c.
References bubble_width(), expect_true(), failures, font, gui, hover_tooltip_at(), LOG_ERR, LOG_INFO, LOG_NOTICE, n_gui_add_button(), n_gui_add_splitpane(), n_gui_add_window(), n_gui_close_window(), n_gui_destroy_ctx(), n_gui_new_ctx(), n_gui_process_event(), n_gui_set_display_size(), n_gui_set_widget_tooltip(), N_GUI_SHAPE_RECT, N_GUI_SPLIT_VERTICAL, n_gui_tooltip_pending(), N_GUI_WIN_FRAMELESS, n_gui_window_set_flags(), n_gui_window_set_rect(), n_gui_window_set_zorder(), N_GUI_ZORDER_POPUP, n_log, PANEL_W, PANEL_X, process_args(), render(), SPLIT_H, SPLIT_W, SPLIT_X, SPLIT_Y, TT_H, and TT_W.
◆ process_args()
| void process_args |
( |
int | argc, |
|
|
char ** | argv ) |
|
static |
◆ render()
| void render |
( |
N_GUI_CTX * | gui, |
|
|
ALLEGRO_BITMAP * | target, |
|
|
int | armed, |
|
|
int | widget_id ) |
|
static |
◆ usage()
◆ failures