The Battle for Wesnoth  1.15.2+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)
 
 visible_item (const topic *_t, const std::string &visible_string)
 
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
 

Detailed Description

Information about an item that is visible in the menu.

Definition at line 49 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 
)

Definition at line 215 of file help_menu.cpp.

◆ visible_item() [2/2]

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

Definition at line 218 of file help_menu.cpp.

Member Function Documentation

◆ operator==() [1/3]

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

Definition at line 231 of file help_menu.cpp.

References sec, and t.

◆ operator==() [2/3]

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

Definition at line 221 of file help_menu.cpp.

References sec.

◆ operator==() [3/3]

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

Definition at line 226 of file help_menu.cpp.

References t.

Member Data Documentation

◆ sec

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

Definition at line 55 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 54 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 56 of file help_menu.hpp.


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