gpforge
An advanced bitmap font editor
Loading...
Searching...
No Matches
dialog_range.h File Reference

The codepoint range dialog. More...

#include <stdint.h>

Go to the source code of this file.

Functions

int gpf_dialog_range (const char *title, uint32_t *min, uint32_t *max)
 Asks for a codepoint range.

Detailed Description

The codepoint range dialog.

The codepoint range dialog, used to delete a part of a block rather than all of it. Both fields start at the block being browsed, so the common case — "this block, from here to there" — is two edits.

Definition in file dialog_range.h.

Function Documentation

◆ gpf_dialog_range()

int gpf_dialog_range ( const char * title,
uint32_t * min,
uint32_t * max )

Asks for a codepoint range.

Parameters
titleThe dialog title.
minThe first codepoint, the prefilled value in and the answer out.
maxThe last codepoint, the prefilled value in and the answer out.
Returns
Zero when the user accepted a valid range, min not above max, non-zero otherwise; min and max are left alone then.

Definition at line 103 of file dialog_range.c.