Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

zoomable Struct Reference

#include <fack.hpp>

Inheritance diagram for zoomable:

popup obj_or_concept List of all members.

Public Member Functions

pt< container_pick_resultitem_at_screen_pos (int_pair pos, pt< popup > me_as_a_smart_ptr) const
 zoomable (list< pt< zoomable_zone > > sorted_zones, string readable_name, variant< SDL_Rect, cannot_be_closed > closing_area, SDL_Surface *picture, int_pair position_in_screen, pt< can_appear_closed_in_inv > pick_up_info)
SDL_Surface * get_inv_surf () const
void render (SDL_Surface *screen, const pt< game_state_t > game_state) const
bool can_be_moved_across_containers () const

Public Attributes

list< pt< zoomable_zone > > sorted_zones

Constructor & Destructor Documentation

zoomable::zoomable list< pt< zoomable_zone > >  sorted_zones,
string  readable_name,
variant< SDL_Rect, cannot_be_closed closing_area,
SDL_Surface *  picture,
int_pair  position_in_screen,
pt< can_appear_closed_in_inv pick_up_info
[inline]
 

Definition at line 983 of file fack.hpp.

References sorted_zones.


Member Function Documentation

bool zoomable::can_be_moved_across_containers  )  const [inline, virtual]
 

Implements obj_or_concept.

Definition at line 1013 of file fack.hpp.

SDL_Surface* zoomable::get_inv_surf  )  const [inline, virtual]
 

Implements obj_or_concept.

Definition at line 1001 of file fack.hpp.

pt< container_pick_result > zoomable::item_at_screen_pos int_pair  screen_pos,
pt< popup myself_as_a_smart_ptr
const [virtual]
 

Todo:
myself_as_a_smart_ptr is not very elegant.

Implements popup.

Definition at line 770 of file fack.cc.

References create_rect(), NEW, point_in_rect(), sorted_zones, var_cast(), int_pair::x, and int_pair::y.

void zoomable::render SDL_Surface *  screen,
const pt< game_state_t game_state
const [virtual]
 

Implements popup.

Definition at line 3183 of file fack.cc.

References int_pair::x, and int_pair::y.


Member Data Documentation

list<pt<zoomable_zone> > zoomable::sorted_zones
 

Definition at line 975 of file fack.hpp.

Referenced by item_at_screen_pos(), and zoomable().


The documentation for this struct was generated from the following files:
Generated on Wed May 25 15:36:14 2005 for FACK by  doxygen 1.4.0