FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::TooltipModifierBehavior Struct Reference

#include <tooltip.hpp>

Public Attributes

bool enabled = false
std::function< std::string(int widgetId)> modifiedContent
int modifier = 0x100

Detailed Description

Tooltip modifier behavior (for an ALT-key extended view).

Definition at line 38 of file tooltip.hpp.

Member Data Documentation

◆ enabled

bool fcn::TooltipModifierBehavior::enabled = false

True if modifier-based extended content is enabled.

Definition at line 43 of file tooltip.hpp.

◆ modifiedContent

std::function<std::string(int widgetId)> fcn::TooltipModifierBehavior::modifiedContent

Function that returns modified content when the modifier is active.

The argument is the widget id for which to generate content.

Definition at line 54 of file tooltip.hpp.

◆ modifier

int fcn::TooltipModifierBehavior::modifier = 0x100

Modifier key mask used to trigger extended content (SDL mask value).

Definition at line 48 of file tooltip.hpp.


The documentation for this struct was generated from the following file: