SDL Wiki
(This function is part of SDL_rtf, a separate library from SDL.)

RTF_GetHeight

Get the height of an RTF render area given a certain width.

Syntax

int RTF_GetHeight(RTF_Context *ctx, int width);

Function Parameters

ctx

the RTF context to query.

width

the width, in pixels, to use for text flow.

Return Value

Returns the height, in pixels, of an RTF render area.

Remarks

The text is automatically reflowed to this new width, and should match the width of the clipping rectangle used for rendering later.

Version

This function is available since SDL_rtf 2.0.0.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.