22 #ifndef ULTIMA8_GUMPS_ITEMRELATIVEGUMP_H 23 #define ULTIMA8_GUMPS_ITEMRELATIVEGUMP_H 25 #include "ultima/ultima8/gumps/gump.h" 26 #include "ultima/ultima8/misc/classtype.h" 39 ENABLE_RUNTIME_CLASSTYPE()
42 ItemRelativeGump(int32 x, int32 y, int32 width, int32 height, uint16 owner, uint32 flags = 0, int32 layer = LAYER_NORMAL);
45 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
52 PointRoundDir r = ROUND_TOPLEFT)
override;
54 PointRoundDir r = ROUND_TOPLEFT)
override;
56 void Move(int32 x, int32 y)
override;
62 virtual void GetItemLocation(int32 lerp_factor);
void InitGump(Gump *newparent, bool take_focus=true) override
void Move(int32 x, int32 y) override
Move this gump.
void GumpToParent(int32 &gx, int32 &gy, PointRoundDir r=ROUND_TOPLEFT) override
Convert a gump point to parent relative point.
void Paint(RenderSurface *, int32 lerp_factor, bool scaled) override
Definition: render_surface.h:40
Definition: detection.h:27
void ParentToGump(int32 &px, int32 &py, PointRoundDir r=ROUND_TOPLEFT) override
Convert a parent relative point to a gump point.
Definition: item_relative_gump.h:34
void MoveOnScreen()
Move Gump so that it totally overlaps parent.