-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4b8873
commit 73f6e2d
Showing
96 changed files
with
847 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
###### (This function is part of SDL_ttf, a separate library from SDL.) | ||
# SDL_TTF_COMPILEDVERSION | ||
|
||
This is the version number macro for the current SDL_ttf version. | ||
|
||
## Header File | ||
|
||
Defined in SDL_ttf.h | ||
|
||
## Syntax | ||
|
||
```c | ||
#define SDL_TTF_COMPILEDVERSION \ | ||
SDL_VERSIONNUM(SDL_TTF_MAJOR_VERSION, SDL_TTF_MINOR_VERSION, SDL_TTF_PATCHLEVEL) | ||
``` | ||
## Remarks | ||
In versions higher than 2.9.0, the minor version overflows into the | ||
thousands digit: for example, 2.23.0 is encoded as 4300. This macro will | ||
not be available in SDL 3.x or SDL_ttf 3.x. | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIMacro](CategoryAPIMacro) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
###### (This function is part of SDL_ttf, a separate library from SDL.) | ||
# SDL_TTF_MAJOR_VERSION | ||
|
||
Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL | ||
|
||
## Header File | ||
|
||
Defined in SDL_ttf.h | ||
|
||
## Syntax | ||
|
||
```c | ||
#define SDL_TTF_MAJOR_VERSION 2 | ||
``` | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIMacro](CategoryAPIMacro) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
###### (This function is part of SDL_ttf, a separate library from SDL.) | ||
# SDL_TTF_VERSION | ||
|
||
This macro can be used to fill a version structure with the compile-time version of the SDL_ttf library. | ||
|
||
## Header File | ||
|
||
Defined in SDL_ttf.h | ||
|
||
## Syntax | ||
|
||
```c | ||
#define SDL_TTF_VERSION(X) \ | ||
{ \ | ||
(X)->major = SDL_TTF_MAJOR_VERSION; \ | ||
(X)->minor = SDL_TTF_MINOR_VERSION; \ | ||
(X)->patch = SDL_TTF_PATCHLEVEL; \ | ||
} | ||
``` | ||
|
||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIMacro](CategoryAPIMacro) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
###### (This function is part of SDL_ttf, a separate library from SDL.) | ||
# SDL_TTF_VERSION_ATLEAST | ||
|
||
This macro will evaluate to true if compiled with SDL_ttf at least X.Y.Z. | ||
|
||
## Header File | ||
|
||
Defined in SDL_ttf.h | ||
|
||
## Syntax | ||
|
||
```c | ||
#define SDL_TTF_VERSION_ATLEAST(X, Y, Z) \ | ||
((SDL_TTF_MAJOR_VERSION >= X) && \ | ||
(SDL_TTF_MAJOR_VERSION > X || SDL_TTF_MINOR_VERSION >= Y) && \ | ||
(SDL_TTF_MAJOR_VERSION > X || SDL_TTF_MINOR_VERSION > Y || SDL_TTF_PATCHLEVEL >= Z)) | ||
``` | ||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIMacro](CategoryAPIMacro) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
###### (This function is part of SDL_ttf, a separate library from SDL.) | ||
# TTF_Direction | ||
|
||
Direction flags | ||
|
||
## Header File | ||
|
||
Defined in SDL_ttf.h | ||
|
||
## Syntax | ||
|
||
```c | ||
typedef enum TTF_Direction | ||
{ | ||
TTF_DIRECTION_LTR = 0, /* Left to Right */ | ||
TTF_DIRECTION_RTL, /* Right to Left */ | ||
TTF_DIRECTION_TTB, /* Top to Bottom */ | ||
TTF_DIRECTION_BTT /* Bottom to Top */ | ||
} TTF_Direction; | ||
``` | ||
|
||
## See Also | ||
|
||
- [TTF_SetFontDirection](TTF_SetFontDirection) | ||
|
||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIEnum](CategoryAPIEnum) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
###### (This function is part of SDL_ttf, a separate library from SDL.) | ||
# TTF_GetError | ||
|
||
Get last SDL_ttf error | ||
|
||
## Header File | ||
|
||
Defined in SDL_ttf.h | ||
|
||
## Syntax | ||
|
||
```c | ||
#define TTF_GetError SDL_GetError | ||
``` | ||
|
||
## See Also | ||
|
||
- [TTF_SetError](TTF_SetError) | ||
|
||
---- | ||
[CategoryAPI](CategoryAPI), [CategoryAPIMacro](CategoryAPIMacro) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.