The Battle for Wesnoth  1.15.2+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 85 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 87 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 573 of file help_text_area.cpp.

References sdl::point_in_rect(), and help::help_text_area::item::rect.

Member Data Documentation

◆ x_

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

Definition at line 90 of file help_text_area.hpp.

◆ y_

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

Definition at line 90 of file help_text_area.hpp.


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