Skip to content

GetFlags

otvv edited this page Aug 18, 2020 · 1 revision

CWidgets::GetFlags

What it does:

This function returns true or false, if the widget has a specific set of flags.

Parameters:

This function takes a FGUI::WIDGET_FLAG as an argument.

What it returns:

This function returns a bool. (true or false)

Widgets:

List of widgets that are using this function:

  • Container

List of widgets that can use this function:

  • All of them.

Example:

Let's say I want to check if a Container can be drawned.

if (Container->GetFlags(FGUI::WIDGET_FLAG::DRAWABLE)) 
{
  // do stuff
}

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


What's next?

Next you will learn about the GetMedium function.