The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 87 of file help_text_area.hpp.

Constructor & Destructor Documentation

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

Definition at line 89 of file help_text_area.hpp.

Member Function Documentation

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

Definition at line 553 of file help_text_area.cpp.

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

Member Data Documentation

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

Definition at line 92 of file help_text_area.hpp.

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

Definition at line 92 of file help_text_area.hpp.


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