The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
help::help_text_area::item_at Class Reference

Function object to find an item at the specified coordinates. More...

Public Member Functions

 item_at (const int x, const int y)
 
bool operator() (const item &) const
 

Private Attributes

const int x_
 
const int y_
 

Detailed Description

Function object to find an item at the specified coordinates.

Definition at line 89 of file help_text_area.hpp.

Constructor & Destructor Documentation

◆ item_at()

help::help_text_area::item_at::item_at ( const int  x,
const int  y 
)
inline

Definition at line 91 of file help_text_area.hpp.

Member Function Documentation

◆ operator()()

bool help::help_text_area::item_at::operator() ( const item item) const

Definition at line 575 of file help_text_area.cpp.

References rect::contains(), and help::help_text_area::item::rect_.

Member Data Documentation

◆ x_

const int help::help_text_area::item_at::x_
private

Definition at line 94 of file help_text_area.hpp.

◆ y_

const int help::help_text_area::item_at::y_
private

Definition at line 94 of file help_text_area.hpp.


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