coastline 0.0.4
Loading...
Searching...
No Matches
menufont.h File Reference
#include <cstdlib>
#include <cstring>
#include <windows.h>
#include "common/fontdata.h"
Include dependency graph for menufont.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MenuFont
 Menu text with a 1024-byte internal buffer, glyph metrics, drawing style, and text-entry state. More...

Functions

static int ConvertMenuCoordinate (float value)
 Truncate a floating-point coordinate using the native signed 64-bit conversion range.

Function Documentation

◆ ConvertMenuCoordinate()

int ConvertMenuCoordinate ( float value)
inlinestatic

Truncate a floating-point coordinate using the native signed 64-bit conversion range.

Parameters
valueThe coordinate in menu pixels.
Returns
The converted integer's low 32 bits, or zero for NaN or an out-of-range 64-bit conversion.