The Battle for Wesnoth  1.17.17+dev
Public Member Functions | Public Attributes | List of all members
help::help_menu::visible_item Struct Reference

Information about an item that is visible in the menu. More...

Public Member Functions

 visible_item (const section *_sec, const std::string &visible_string, int level)
 
 visible_item (const topic *_t, const std::string &visible_string, int level)
 
bool operator== (const visible_item &vis_item) const
 
bool operator== (const section &sec) const
 
bool operator== (const topic &t) const
 

Public Attributes

const topict
 
const sectionsec
 
std::string visible_string
 
int level
 

Detailed Description

Information about an item that is visible in the menu.

Definition at line 53 of file help_menu.hpp.

Constructor & Destructor Documentation

◆ visible_item() [1/2]

help::help_menu::visible_item::visible_item ( const section _sec,
const std::string &  visible_string,
int  level 
)

Definition at line 216 of file help_menu.cpp.

◆ visible_item() [2/2]

help::help_menu::visible_item::visible_item ( const topic _t,
const std::string &  visible_string,
int  level 
)

Definition at line 219 of file help_menu.cpp.

Member Function Documentation

◆ operator==() [1/3]

bool help::help_menu::visible_item::operator== ( const section sec) const

Definition at line 222 of file help_menu.cpp.

◆ operator==() [2/3]

bool help::help_menu::visible_item::operator== ( const topic t) const

Definition at line 227 of file help_menu.cpp.

References t.

◆ operator==() [3/3]

bool help::help_menu::visible_item::operator== ( const visible_item vis_item) const

Definition at line 232 of file help_menu.cpp.

References sec, t, and t.

Member Data Documentation

◆ level

int help::help_menu::visible_item::level

Definition at line 61 of file help_menu.hpp.

Referenced by help::help_menu::process().

◆ sec

const section* help::help_menu::visible_item::sec

Definition at line 59 of file help_menu.hpp.

Referenced by operator==(), and help::help_menu::process().

◆ t

const topic* help::help_menu::visible_item::t

Definition at line 58 of file help_menu.hpp.

Referenced by operator==(), and help::help_menu::process().

◆ visible_string

std::string help::help_menu::visible_item::visible_string

Definition at line 60 of file help_menu.hpp.


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