Skip to content

GetFont

Otavio edited this page Jul 21, 2021 · 4 revisions

CWidgets::GetFont

What it does:

This functions returns the current font being used by a widget.

What it returns:

This function returns an instance of FGUI::FONT. It can be either a void* in case you're using DirectX or a 'unsigned int' If you are using Valve's wrapper.

Usage:

This function is mostly used internally to re-use the widget font on other elements inside that same widget.

NOTE: This function is not meant to be used outside the library, unless you know what you're doing.

Widgets:

List of widgets that are using this function:

  • All of them.

Widgets that can use this function:

  • All of them.

What's next?

Next you will learn about the GetKey function.