#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nilorea/n_common.h"
#include "nilorea/n_gui.h"
#include "nilorea/n_log.h"
Go to the source code of this file.
|
| static void | expect_true (const char *label, int cond) |
| | Assert a condition, logging which check failed.
|
| static void | fill_rows (N_GUI_CTX *gui, int grid) |
| | Fill the grid with three rows in a deliberately unsorted order.
|
| int | main (void) |
|
| static int | failures = 0 |
| | Count of failed assertions.
|
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ expect_true()
| void expect_true |
( |
const char * | label, |
|
|
int | cond ) |
|
static |
◆ fill_rows()
◆ main()
Definition at line 81 of file ex_gui_datagrid_sort.c.
References expect_true(), failures, fill_rows(), font, gui, LOG_ERR, LOG_NOTICE, n_gui_add_datagrid(), n_gui_add_label(), n_gui_add_window(), N_GUI_ALIGN_LEFT, n_gui_datagrid_add_column(), n_gui_datagrid_clear_rows(), n_gui_datagrid_get_cell(), n_gui_datagrid_get_sort(), n_gui_datagrid_sort(), n_gui_destroy_ctx(), n_gui_new_ctx(), n_gui_open_window(), n_gui_set_display_size(), N_GUI_WIN_FRAMELESS, n_gui_window_set_flags(), n_log, and set_log_level().
◆ failures