ScummVM API documentation
Crab::Rect Struct Reference
Inheritance diagram for Crab::Rect:
Crab::pyrodactyl::ui::Element Crab::pyrodactyl::ui::Button Crab::pyrodactyl::ui::ImageData Crab::pyrodactyl::ui::TextData Crab::pyrodactyl::ui::ClipButton Crab::pyrodactyl::ui::MapButton Crab::pyrodactyl::ui::ReplyButton Crab::pyrodactyl::ui::StateButton Crab::pyrodactyl::ui::ToggleButton Crab::pyrodactyl::ui::Caption Crab::pyrodactyl::ui::HoverInfo Crab::pyrodactyl::ui::ParagraphData Crab::pyrodactyl::ui::SectionHeader Crab::pyrodactyl::ui::TextArea

Public Member Functions

 Rect (int X=0, int Y=0, int W=0, int H=0)
 
bool load (rapidxml::xml_node< char > *node, const bool &echo=true, const Common::String &x_name="x", const Common::String &y_name="y", const Common::String &w_name="w", const Common::String &h_name="h")
 
bool collide (Rect box) const
 
void extend (Rect box)
 
Direction resolveX (Rect collider)
 
Direction resolveY (Rect collider)
 
bool contains (int x1, int y1)
 
bool contains (Vector2i v)
 
bool contains (Rect box)
 
void flip (const TextureFlipType &flip, const Vector2i &axis)
 
void draw (const int &xOffset=0, const int &yOffset=0, const uint8 &r=0, const uint8 &g=0, const uint8 &b=0, const uint8 &a=255)
 
bool operator== (const Rect &r)
 
void saveState (rapidxml::xml_document<> &doc, rapidxml::xml_node< char > *root, const char *name)
 

Public Attributes

int x
 
int y
 
int w
 
int h
 

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