Gump Class Reference

#include <Gump.h>

Inheritance diagram for Gump:

Object ButtonWidget ConsoleGump ControlEntryGump ControlsGump DesktopGump EditWidget FastAreaVisGump GameMapGump GameWidget ItemRelativeGump MiniMapGump MiniStatsGump ModalGump OptionsGump ResizableGump SlidingWidget TextWidget U8SaveGump List of all members.

Public Types

 CENTER = 1
 TOP_LEFT = 2
 TOP_RIGHT = 3
 BOTTOM_LEFT = 4
 BOTTOM_RIGHT = 5
 TOP_CENTER = 6
 BOTTOM_CENTER = 7
 ROUND_TOPLEFT = 0
 ROUND_BOTTOMRIGHT = 1
 ROUND_INSIDE
 ROUND_OUTSIDE
 FLAG_DRAGGABLE = 0x01
 FLAG_HIDDEN = 0x02
 FLAG_CLOSING = 0x04
 FLAG_CLOSE_AND_DEL = 0x08
 FLAG_ITEM_DEPENDENT = 0x10
 FLAG_DONT_SAVE = 0x20
 FLAG_CORE_GUMP = 0x40
 FLAG_KEEP_VISIBLE = 0x80
 LAYER_DESKTOP = -16
 LAYER_GAMEMAP = -8
 LAYER_NORMAL = 0
 LAYER_ABOVE_NORMAL = 8
 LAYER_MODAL = 12
 LAYER_CONSOLE = 16
enum  Position {
  CENTER = 1, TOP_LEFT = 2, TOP_RIGHT = 3, BOTTOM_LEFT = 4,
  BOTTOM_RIGHT = 5, TOP_CENTER = 6, BOTTOM_CENTER = 7
}
enum  PointRoundDir { ROUND_TOPLEFT = 0, ROUND_BOTTOMRIGHT = 1 }
enum  RectRoundDir { ROUND_INSIDE, ROUND_OUTSIDE }
enum  GumpFlags {
  FLAG_DRAGGABLE = 0x01, FLAG_HIDDEN = 0x02, FLAG_CLOSING = 0x04, FLAG_CLOSE_AND_DEL = 0x08,
  FLAG_ITEM_DEPENDENT = 0x10, FLAG_DONT_SAVE = 0x20, FLAG_CORE_GUMP = 0x40, FLAG_KEEP_VISIBLE = 0x80
}
enum  GumpLayers {
  LAYER_DESKTOP = -16, LAYER_GAMEMAP = -8, LAYER_NORMAL = 0, LAYER_ABOVE_NORMAL = 8,
  LAYER_MODAL = 12, LAYER_CONSOLE = 16
}

Public Member Functions

 ENABLE_RUNTIME_CLASSTYPE ()
 Gump ()
 Gump (int x, int y, int width, int height, uint16 owner=0, uint32 _Flags=0, sint32 layer=LAYER_NORMAL)
virtual ~Gump ()
virtual void CreateNotifier ()
void SetNotifyProcess (GumpNotifyProcess *proc)
GumpNotifyProcessGetNotifyProcess ()
uint32 GetResult ()
void SetShape (Shape *_shape, uint32 _framenum)
void SetShape (FrameID frame, bool adjustsize=false)
void SetFramenum (uint32 _framenum)
virtual void InitGump (Gump *newparent, bool take_focus=true)
virtual GumpFindGump (const RunTimeClassType &t, bool recursive=true, bool no_inheritance=false)
template<class T>
GumpFindGump (bool recursive=true, bool no_inheritance=false)
virtual GumpFindGump (int mx, int my)
virtual bool GetMouseCursor (int mx, int my, Shape &shape, sint32 &frame)
virtual void RenderSurfaceChanged ()
virtual bool Run (const uint32 framenum)
virtual void CloseItemDependents (void)
virtual void Paint (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual void PaintCompositing (RenderSurface *surf, sint32 lerp_factor, sint32 scalex, sint32 scaley)
virtual void Close (bool no_del=false)
bool IsClosing ()
virtual void Move (int x_, int y_)
virtual void MoveRelative (int x_, int y_)
virtual void setRelativePosition (Position pos, int xoffset=0, int yoffset=0)
virtual void GetDims (Pentagram::Rect &d)
virtual bool PointOnGump (int mx, int my)
virtual void ScreenSpaceToGump (int &sx, int &sy, PointRoundDir r=ROUND_TOPLEFT)
virtual void GumpToScreenSpace (int &gx, int &gy, PointRoundDir r=ROUND_TOPLEFT)
virtual void ParentToGump (int &px, int &py, PointRoundDir r=ROUND_TOPLEFT)
virtual void GumpToParent (int &gx, int &gy, PointRoundDir r=ROUND_TOPLEFT)
virtual void GumpRectToScreenSpace (int &gx, int &gy, int &gw, int &gh, RectRoundDir r=ROUND_OUTSIDE)
virtual void ScreenSpaceToGumpRect (int &sx, int &sy, int &sw, int &sh, RectRoundDir r=ROUND_OUTSIDE)
virtual uint16 TraceObjId (int mx, int my)
virtual bool GetLocationOfItem (uint16 itemid, int &gx, int &gy, sint32 lerp_factor=256)
virtual GumpOnMouseDown (int button, int mx, int my)
virtual void OnMouseUp (int button, int mx, int my)
virtual void OnMouseClick (int button, int mx, int my)
virtual void OnMouseDouble (int button, int mx, int my)
virtual GumpOnMouseMotion (int mx, int my)
virtual void OnMouseOver ()
virtual void OnMouseLeft ()
virtual bool OnKeyDown (int key, int mod)
virtual bool OnKeyUp (int key)
virtual bool OnTextInput (int unicode)
virtual void OnFocus (bool)
virtual void MakeFocus ()
bool IsFocus ()
GumpGetFocusChild ()
void FindNewFocusChild ()
virtual void AddChild (Gump *, bool take_focus=true)
virtual void RemoveChild (Gump *)
virtual void MoveChildToFront (Gump *)
GumpGetParent ()
GumpGetRootGump ()
virtual void ChildNotify (Gump *child, uint32 message)
void SetIndex (sint32 i)
sint32 GetIndex ()
virtual bool StartDraggingChild (Gump *gump, int mx, int my)
virtual void DraggingChild (Gump *gump, int mx, int my)
virtual void StopDraggingChild (Gump *gump)
virtual bool StartDraggingItem (Item *item, int mx, int my)
virtual bool DraggingItem (Item *item, int mx, int my)
virtual void DraggingItemLeftGump (Item *item)
virtual void StopDraggingItem (Item *item, bool moved)
virtual void DropItem (Item *item, int mx, int my)
bool IsHidden ()
bool IsDraggable ()
virtual void HideGump ()
virtual void UnhideGump ()
bool mustSave (bool toplevel)
bool loadData (IDataSource *ids, uint32 version)

Protected Member Functions

virtual void PaintThis (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual void PaintChildren (RenderSurface *surf, sint32 lerp_factor, bool scaled)
virtual void PaintComposited (RenderSurface *surf, sint32 lerp_factor, sint32 scalex, sint32 scaley)
virtual void saveData (ODataSource *ods)

Static Protected Member Functions

static sint32 ScaleCoord (sint32 c, sint32 factor)
static sint32 UnscaleCoord (sint32 c, sint32 factor)

Protected Attributes

uint16 owner
Gumpparent
sint32 x
sint32 y
Pentagram::Rect dims
uint32 flags
sint32 layer
sint32 index
Shapeshape
uint32 framenum
std::list< Gump * > children
Gumpfocus_child
uint16 notifier
uint32 process_result

Friends

class GumpList

Detailed Description

Definition at line 38 of file Gump.h.


Member Enumeration Documentation

enum Gump::GumpFlags

Enumerator:
FLAG_DRAGGABLE 
FLAG_HIDDEN 
FLAG_CLOSING 
FLAG_CLOSE_AND_DEL 
FLAG_ITEM_DEPENDENT 
FLAG_DONT_SAVE 
FLAG_CORE_GUMP 
FLAG_KEEP_VISIBLE 

Definition at line 379 of file Gump.h.

enum Gump::GumpLayers

Enumerator:
LAYER_DESKTOP 
LAYER_GAMEMAP 
LAYER_NORMAL 
LAYER_ABOVE_NORMAL 
LAYER_MODAL 
LAYER_CONSOLE 

Definition at line 403 of file Gump.h.

enum Gump::PointRoundDir

Enumerator:
ROUND_TOPLEFT 
ROUND_BOTTOMRIGHT 

Definition at line 217 of file Gump.h.

enum Gump::Position

Enumerator:
CENTER 
TOP_LEFT 
TOP_RIGHT 
BOTTOM_LEFT 
BOTTOM_RIGHT 
TOP_CENTER 
BOTTOM_CENTER 

Definition at line 191 of file Gump.h.

enum Gump::RectRoundDir

Enumerator:
ROUND_INSIDE 
ROUND_OUTSIDE 

Definition at line 221 of file Gump.h.


Constructor & Destructor Documentation

Gump::Gump (  ) 

Definition at line 36 of file Gump.cpp.

Referenced by U8SaveGump::InitGump(), QuitGump::InitGump(), and MenuGump::InitGump().

Gump::Gump ( int  x,
int  y,
int  width,
int  height,
uint16  owner = 0,
uint32  _Flags = 0,
sint32  layer = LAYER_NORMAL 
)

Definition at line 41 of file Gump.cpp.

References Object::assignObjId().

Gump::~Gump (  )  [virtual]

Definition at line 51 of file Gump.cpp.

References children, focus_child, and OnFocus().


Member Function Documentation

void Gump::AddChild ( Gump ,
bool  take_focus = true 
) [virtual]

Add a gump to the child list.

Definition at line 647 of file Gump.cpp.

References children, focus_child, GetParent(), if(), layer, and RemoveChild().

Referenced by GUIApp::addGump(), InitGump(), and loadData().

virtual void Gump::ChildNotify ( Gump child,
uint32  message 
) [inline, virtual]

This function is used by our children to notifty us of 'something' Think of it as a generic call back function

Reimplemented in AskGump, ControlEntryGump, ControlsGump, MenuGump, OptionsGump, PagedGump, PaperdollGump, PentagramMenuGump, QuitGump, SliderGump, U8SaveGump, and GameWidget.

Definition at line 336 of file Gump.h.

Referenced by GameWidget::ChildNotify(), ControlEntryGump::ChildNotify(), EditWidget::OnKeyDown(), BindGump::OnKeyDown(), ButtonWidget::OnMouseClick(), ButtonWidget::OnMouseDouble(), BindGump::OnMouseDown(), and ButtonWidget::OnMouseUp().

void Gump::Close ( bool  no_del = false  )  [virtual]

Close the gump

Parameters:
no_del If true, do not delete after closing

Reimplemented in ContainerGump, CreditsGump, MenuGump, ModalGump, MovieGump, PagedGump, PaperdollGump, SliderGump, TargetGump, and U8SaveGump.

Definition at line 115 of file Gump.cpp.

References FLAG_CLOSE_AND_DEL, FLAG_CLOSING, flags, GetNotifyProcess(), notifier, GumpNotifyProcess::notifyClosing(), parent, and process_result.

Referenced by U8SaveGump::ChildNotify(), AskGump::ChildNotify(), U8SaveGump::Close(), PaperdollGump::Close(), ModalGump::Close(), ContainerGump::Close(), Item::closeGump(), CloseItemDependents(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), ItemRelativeGump::GetItemLocation(), Item::leaveFastArea(), OptionsGump::OnKeyDown(), MiniStatsGump::OnMouseDouble(), BarkGump::OnMouseDown(), BarkGump::Run(), and GumpNotifyProcess::terminate().

void Gump::CloseItemDependents ( void   )  [virtual]

Close item-dependent gumps (recursively). Called when there is a map change (so the gumps can self terminate among other things), or when backspace is pressed by the user.

Definition at line 177 of file Gump.cpp.

References children, Close(), CloseItemDependents(), FindNewFocusChild(), FLAG_CLOSE_AND_DEL, FLAG_CLOSING, FLAG_ITEM_DEPENDENT, and flags.

Referenced by CloseItemDependents(), GUIApp::ConCmd_closeItemGumps(), and World::switchMap().

void Gump::CreateNotifier (  )  [virtual]

Definition at line 92 of file Gump.cpp.

References Kernel::addProcess(), Kernel::get_instance(), notifier, owner, and GumpNotifyProcess::setGump().

Referenced by ContainerGump::DropItem(), TargetGump::InitGump(), InitGump(), and MovieGump::U8MovieViewer().

void Gump::DraggingChild ( Gump gump,
int  mx,
int  my 
) [virtual]

Reimplemented in DesktopGump, PentagramMenuGump, and SliderGump.

Definition at line 736 of file Gump.cpp.

Referenced by GUIApp::moveDragging().

virtual bool Gump::DraggingItem ( Item item,
int  mx,
int  my 
) [inline, virtual]

Called when an item is being dragged over the gump. Note: this may be called on a different gump than StartDraggingItem.

Returns:
false if the item can't be dragged to this location.

Reimplemented in ContainerGump, GameMapGump, and PaperdollGump.

Definition at line 355 of file Gump.h.

Referenced by GUIApp::moveDragging().

virtual void Gump::DraggingItemLeftGump ( Item item  )  [inline, virtual]

Called when an item that was being dragged over the gump left the gump.

Reimplemented in ContainerGump, and GameMapGump.

Definition at line 359 of file Gump.h.

Referenced by GUIApp::moveDragging(), and GUIApp::stopDragging().

virtual void Gump::DropItem ( Item item,
int  mx,
int  my 
) [inline, virtual]

Called when an item has been dropped on a gump. This is called after StopDraggingItem has been called, but possibly on a different gump. It's guaranteed that a gump will only receive a DropItem at a location if a DraggingItem there returned true.

Reimplemented in ContainerGump, GameMapGump, and PaperdollGump.

Definition at line 372 of file Gump.h.

Referenced by GUIApp::stopDragging().

Gump::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Object.

Reimplemented in AskGump, BarkGump, BindGump, BookGump, ConsoleGump, ContainerGump, ControlEntryGump, ControlsGump, CreditsGump, DesktopGump, FastAreaVisGump, GameMapGump, InverterGump, ItemRelativeGump, MenuGump, MiniMapGump, MiniStatsGump, ModalGump, MovieGump, OptionsGump, PagedGump, PaperdollGump, PentagramMenuGump, QuitGump, ReadableGump, ScalerGump, ScrollGump, ShapeViewerGump, SliderGump, TargetGump, U8SaveGump, ButtonWidget, EditWidget, GameWidget, SlidingWidget, and TextWidget.

Gump * Gump::FindGump ( int  mx,
int  my 
) [virtual]

Find gump (this, child or NULL) at parent coordinates (mx,my)

Returns:
the Gump at these coordinates, or NULL if none

Reimplemented in ModalGump.

Definition at line 366 of file Gump.cpp.

References children, FindGump(), ParentToGump(), and PointOnGump().

template<class T>
Gump* Gump::FindGump ( bool  recursive = true,
bool  no_inheritance = false 
) [inline]

Find a gump of the specified type (this or child)

Parameters:
T Type of gump to look for
recursive Recursively search through children?
no_inheritance Exactly this type, or is a subclass also allowed?
Returns:
the desired Gump, or NULL if not found

Definition at line 110 of file Gump.h.

References FindGump().

Gump * Gump::FindGump ( const RunTimeClassType t,
bool  recursive = true,
bool  no_inheritance = false 
) [virtual]

Find a gump of the specified type (this or child)

Parameters:
t Type of gump to look for
recursive Recursively search through children?
no_inheritance Exactly this type, or is a subclass also allowed?
Returns:
the desired Gump, or NULL if not found

Definition at line 576 of file Gump.cpp.

References children, FLAG_CLOSING, and if().

Referenced by ScalerGump::ConCmd_changeScaler(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), ModalGump::FindGump(), FindGump(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), GUIApp::moveDragging(), GUIApp::saveGame(), SliderGump::setSliderPos(), GUIApp::startDragging(), and GUIApp::stopDragging().

void Gump::FindNewFocusChild (  ) 

Definition at line 631 of file Gump.cpp.

References children, focus_child, and OnFocus().

Referenced by CloseItemDependents(), RemoveChild(), and Run().

virtual void Gump::GetDims ( Pentagram::Rect d  )  [inline, virtual]

Get the dims.

Definition at line 212 of file Gump.h.

References dims.

Referenced by ControlsGump::addEntry(), ControlEntryGump::init(), MenuGump::InitGump(), ButtonWidget::InitGump(), BarkGump::InitGump(), AskGump::InitGump(), ButtonWidget::loadData(), BarkGump::loadData(), ItemRelativeGump::MoveOnScreen(), BarkGump::NextText(), ScalerGump::RenderSurfaceChanged(), GameMapGump::RenderSurfaceChanged(), DesktopGump::RenderSurfaceChanged(), ConsoleGump::RenderSurfaceChanged(), setRelativePosition(), GUIApp::setupCoreGumps(), GUIApp::startupPentagramMenu(), ShapeViewerGump::U8ShapeViewer(), and CurrentMap::updateFastArea().

Gump* Gump::GetFocusChild (  )  [inline]

Definition at line 309 of file Gump.h.

References focus_child.

sint32 Gump::GetIndex (  )  [inline]

Definition at line 338 of file Gump.h.

References index.

Referenced by U8SaveGump::ChildNotify(), SliderGump::ChildNotify(), OptionsGump::ChildNotify(), MenuGump::ChildNotify(), GameWidget::ChildNotify(), AskGump::ChildNotify(), SliderGump::DraggingChild(), PentagramMenuGump::PaintChildren(), and SliderGump::StartDraggingChild().

bool Gump::GetLocationOfItem ( uint16  itemid,
int &  gx,
int &  gy,
sint32  lerp_factor = 256 
) [virtual]

Get the location of an item in the gump (coords relative to this).

Returns:
false on failure

Reimplemented in ContainerGump, GameMapGump, and PaperdollGump.

Definition at line 567 of file Gump.cpp.

Referenced by ItemRelativeGump::GetItemLocation(), and ContainerGump::GetItemLocation().

bool Gump::GetMouseCursor ( int  mx,
int  my,
Shape shape,
sint32 frame 
) [virtual]

Get the mouse cursor for position mx, my relative to parents position. If this gump doesn't want to set the cursor, the gump list will attempt to get the cursor shape from the next lower gump.

Returns:
true if this gump wants to set the cursor, false otherwise

Definition at line 211 of file Gump.cpp.

References children, FLAG_CLOSING, ParentToGump(), and shape.

GumpNotifyProcess * Gump::GetNotifyProcess (  ) 

Definition at line 108 of file Gump.cpp.

References Kernel::get_instance(), and notifier.

Referenced by Close(), ContainerGump::DropItem(), GrantPeaceProcess::run(), AvatarDeathProcess::run(), and MovieGump::U8MovieViewer().

Gump* Gump::GetParent (  )  [inline]

Get the parent.

Definition at line 329 of file Gump.h.

References parent.

Referenced by AddChild(), PagedGump::addPage(), GUIApp::handleEvent(), GUIApp::moveDragging(), TextWidget::PaintComposited(), GameWidget::PaintThis(), ObjectManager::reset(), GUIApp::setMouseCoords(), GUIApp::startDragging(), and GUIApp::stopDragging().

uint32 Gump::GetResult (  )  [inline]

Definition at line 78 of file Gump.h.

References process_result.

Gump * Gump::GetRootGump (  ) 

Get the root gump (or self).

Definition at line 724 of file Gump.cpp.

References GetRootGump(), and parent.

Referenced by ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), and GetRootGump().

void Gump::GumpRectToScreenSpace ( int &  gx,
int &  gy,
int &  gw,
int &  gh,
RectRoundDir  r = ROUND_OUTSIDE 
) [virtual]

Transform a rectangle to screenspace from gumpspace.

Definition at line 504 of file Gump.cpp.

References GumpToScreenSpace(), ROUND_BOTTOMRIGHT, ROUND_INSIDE, ROUND_OUTSIDE, and ROUND_TOPLEFT.

Referenced by TextWidget::InitGump(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), PaintCompositing(), EditWidget::renderText(), and EditWidget::textFits().

void Gump::GumpToParent ( int &  gx,
int &  gy,
PointRoundDir  r = ROUND_TOPLEFT 
) [virtual]

Convert a gump point to parent relative point.

Definition at line 495 of file Gump.cpp.

References dims, x, Pentagram::Rect::x, y, and Pentagram::Rect::y.

Referenced by ItemRelativeGump::GumpToParent(), GumpToScreenSpace(), and Paint().

void Gump::GumpToScreenSpace ( int &  gx,
int &  gy,
PointRoundDir  r = ROUND_TOPLEFT 
) [virtual]

Convert a gump point to a screen space point.

Definition at line 475 of file Gump.cpp.

References GumpToParent(), GumpToScreenSpace(), and parent.

Referenced by ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), GumpRectToScreenSpace(), GumpToScreenSpace(), GameMapGump::OnMouseDown(), TargetGump::OnMouseUp(), TextWidget::PaintComposited(), and EditWidget::PaintComposited().

virtual void Gump::HideGump (  )  [inline, virtual]

Definition at line 395 of file Gump.h.

References FLAG_HIDDEN, and flags.

Referenced by PagedGump::addPage(), PagedGump::ChildNotify(), and PagedGump::InitGump().

void Gump::InitGump ( Gump newparent,
bool  take_focus = true 
) [virtual]

Init the gump and add it to parent; call after construction When newparent is 0, this will call GUIApp::addGump().

Parameters:
newparent The Gump's new parent or 0.
takefocus If true, set parent's focus_child to this

Reimplemented in AskGump, BarkGump, BindGump, BookGump, ContainerGump, ControlEntryGump, ControlsGump, CreditsGump, ItemRelativeGump, MenuGump, MiniStatsGump, ModalGump, MovieGump, OptionsGump, PagedGump, PaperdollGump, PentagramMenuGump, QuitGump, ReadableGump, ScrollGump, SliderGump, TargetGump, U8SaveGump, ButtonWidget, EditWidget, GameWidget, SlidingWidget, and TextWidget.

Definition at line 69 of file Gump.cpp.

References AddChild(), GUIApp::addGump(), CreateNotifier(), GUIApp::get_instance(), notifier, and owner.

Referenced by ControlsGump::addEntry(), PaperdollGump::ChildNotify(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), GUIApp::GraphicSysInit(), ControlEntryGump::init(), U8SaveGump::InitGump(), TextWidget::InitGump(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PaperdollGump::InitGump(), PagedGump::InitGump(), OptionsGump::InitGump(), ModalGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), ItemRelativeGump::InitGump(), GameWidget::InitGump(), EditWidget::InitGump(), ControlsGump::InitGump(), ControlEntryGump::InitGump(), ButtonWidget::InitGump(), BindGump::InitGump(), U8Game::playQuotes(), GUIApp::setupCoreGumps(), GUIApp::shutdownGame(), GUIApp::startupPentagramMenu(), and MovieGump::U8MovieViewer().

bool Gump::IsClosing (  )  [inline]

Check to see if a Gump is Closing.

Definition at line 183 of file Gump.h.

References FLAG_CLOSING, and flags.

Referenced by ScalerGump::Paint(), and PaintCompositing().

bool Gump::IsDraggable (  )  [inline]

Definition at line 394 of file Gump.h.

References FLAG_DRAGGABLE, and flags.

Referenced by GUIApp::startDragging().

bool Gump::IsFocus (  )  [inline]

Definition at line 305 of file Gump.h.

References focus_child, and parent.

Referenced by EditWidget::renderText().

bool Gump::IsHidden (  )  [inline]

Definition at line 392 of file Gump.h.

References FLAG_HIDDEN, flags, IsHidden(), and parent.

Referenced by IsHidden(), ScalerGump::Paint(), InverterGump::Paint(), Paint(), and PaintCompositing().

bool Gump::loadData ( IDataSource ids,
uint32  version 
)

Reimplemented from Object.

Reimplemented in AskGump, BarkGump, BookGump, ConsoleGump, ContainerGump, DesktopGump, GameMapGump, ItemRelativeGump, MiniMapGump, MiniStatsGump, ModalGump, PaperdollGump, ReadableGump, ScrollGump, SliderGump, TargetGump, ButtonWidget, SlidingWidget, and TextWidget.

Definition at line 888 of file Gump.cpp.

References AddChild(), dims, flags, focus_child, framenum, ObjectManager::get_instance(), GameData::get_instance(), ShapeArchive::getShape(), GameData::getShapeFlex(), index, layer, Object::loadData(), notifier, owner, process_result, Pentagram::Rect::Set(), shape, shapenum, x, and y.

Referenced by TextWidget::loadData(), SlidingWidget::loadData(), MiniStatsGump::loadData(), MiniMapGump::loadData(), ItemRelativeGump::loadData(), and ButtonWidget::loadData().

void Gump::MakeFocus (  )  [virtual]

Definition at line 620 of file Gump.cpp.

References focus_child, OnFocus(), and parent.

Referenced by GUIApp::GraphicSysInit(), MenuGump::InitGump(), GUIApp::setupCoreGumps(), and GUIApp::shutdownGame().

virtual void Gump::Move ( int  x_,
int  y_ 
) [inline, virtual]

Move this gump.

Reimplemented in ItemRelativeGump.

Definition at line 186 of file Gump.h.

References x, and y.

Referenced by SliderGump::DraggingChild(), DesktopGump::DraggingChild(), MenuGump::InitGump(), ButtonWidget::InitGump(), AskGump::InitGump(), ButtonWidget::loadData(), PentagramMenuGump::PaintChildren(), setRelativePosition(), and SliderGump::setSliderPos().

void Gump::MoveChildToFront ( Gump  )  [virtual]

Move child to front (within its layer).

Definition at line 704 of file Gump.cpp.

References children, and layer.

Referenced by DesktopGump::StartDraggingChild().

virtual void Gump::MoveRelative ( int  x_,
int  y_ 
) [inline, virtual]

Move this gump relative to its current position.

Definition at line 189 of file Gump.h.

References x, and y.

bool Gump::mustSave ( bool  toplevel  ) 

Definition at line 825 of file Gump.cpp.

References FLAG_CORE_GUMP, FLAG_DONT_SAVE, flags, and parent.

Referenced by ObjectManager::save().

virtual void Gump::OnFocus ( bool   )  [inline, virtual]

Reimplemented in ConsoleGump, and U8SaveGump.

Definition at line 299 of file Gump.h.

Referenced by U8SaveGump::ChildNotify(), FindNewFocusChild(), U8SaveGump::InitGump(), MakeFocus(), and ~Gump().

bool Gump::OnKeyDown ( int  key,
int  mod 
) [virtual]

Reimplemented in BindGump, ConsoleGump, ControlsGump, CreditsGump, MenuGump, MovieGump, OptionsGump, PagedGump, PentagramMenuGump, QuitGump, ShapeViewerGump, SliderGump, U8SaveGump, and EditWidget.

Definition at line 804 of file Gump.cpp.

References focus_child, and OnKeyDown().

Referenced by U8SaveGump::OnKeyDown(), MenuGump::OnKeyDown(), and OnKeyDown().

bool Gump::OnKeyUp ( int  key  )  [virtual]

Reimplemented in EditWidget.

Definition at line 811 of file Gump.cpp.

References focus_child, and OnKeyUp().

Referenced by OnKeyUp().

virtual void Gump::OnMouseClick ( int  button,
int  mx,
int  my 
) [inline, virtual]

Reimplemented in BookGump, ContainerGump, GameMapGump, PentagramMenuGump, ScrollGump, U8SaveGump, and ButtonWidget.

Definition at line 279 of file Gump.h.

virtual void Gump::OnMouseDouble ( int  button,
int  mx,
int  my 
) [inline, virtual]

Reimplemented in BookGump, ContainerGump, GameMapGump, MiniStatsGump, PentagramMenuGump, ScrollGump, and ButtonWidget.

Definition at line 280 of file Gump.h.

Referenced by GUIApp::handleEvent().

Gump * Gump::OnMouseDown ( int  button,
int  mx,
int  my 
) [virtual]

Reimplemented in BarkGump, BindGump, ContainerGump, GameMapGump, MiniStatsGump, ModalGump, PentagramMenuGump, ReadableGump, U8SaveGump, ButtonWidget, and GameWidget.

Definition at line 750 of file Gump.cpp.

References children, FLAG_CLOSING, OnMouseDown(), and ParentToGump().

Referenced by GUIApp::handleEvent(), ModalGump::OnMouseDown(), OnMouseDown(), GameWidget::OnMouseDown(), ContainerGump::OnMouseDown(), ButtonWidget::OnMouseDown(), and BarkGump::OnMouseDown().

virtual void Gump::OnMouseLeft (  )  [inline, virtual]

Reimplemented in ButtonWidget, and GameWidget.

Definition at line 286 of file Gump.h.

Referenced by GUIApp::saveGame(), and GUIApp::setMouseCoords().

Gump * Gump::OnMouseMotion ( int  mx,
int  my 
) [virtual]

Reimplemented in EditWidget, and TextWidget.

Definition at line 774 of file Gump.cpp.

References children, FLAG_CLOSING, OnMouseMotion(), and ParentToGump().

Referenced by OnMouseMotion(), and GUIApp::setMouseCoords().

virtual void Gump::OnMouseOver (  )  [inline, virtual]

Reimplemented in ButtonWidget, and GameWidget.

Definition at line 285 of file Gump.h.

Referenced by GUIApp::saveGame().

virtual void Gump::OnMouseUp ( int  button,
int  mx,
int  my 
) [inline, virtual]

Reimplemented in GameMapGump, PentagramMenuGump, TargetGump, and ButtonWidget.

Definition at line 278 of file Gump.h.

Referenced by GUIApp::handleEvent().

bool Gump::OnTextInput ( int  unicode  )  [virtual]

Reimplemented in ConsoleGump, MenuGump, QuitGump, ShapeViewerGump, and EditWidget.

Definition at line 818 of file Gump.cpp.

References focus_child, and OnTextInput().

Referenced by MenuGump::OnTextInput(), and OnTextInput().

void Gump::Paint ( RenderSurface surf,
sint32  lerp_factor,
bool  scaled 
) [virtual]

Paint the Gump (RenderSurface is relative to parent). Calls PaintThis and PaintChildren

Reimplemented in InverterGump, ItemRelativeGump, and ScalerGump.

Definition at line 237 of file Gump.cpp.

References dims, RenderSurface::GetClippingRect(), RenderSurface::GetOrigin(), GumpToParent(), Pentagram::Rect::Intersect(), IsHidden(), PaintChildren(), PaintThis(), RenderSurface::SetClippingRect(), and RenderSurface::SetOrigin().

Referenced by GameMapGump::ConCmd_dumpMap(), ItemRelativeGump::Paint(), GUIApp::paint(), PentagramMenuGump::PaintChildren(), and PaintChildren().

void Gump::PaintChildren ( RenderSurface surf,
sint32  lerp_factor,
bool  scaled 
) [protected, virtual]

Paint the Gumps Children (RenderSurface is relative to this).

Reimplemented in InverterGump, and PentagramMenuGump.

Definition at line 295 of file Gump.cpp.

References children, FLAG_CLOSING, flags, and Paint().

Referenced by ScalerGump::Paint(), Paint(), and InverterGump::PaintChildren().

void Gump::PaintComposited ( RenderSurface surf,
sint32  lerp_factor,
sint32  scalex,
sint32  scaley 
) [protected, virtual]

Overloadable method to Paint just this gumps unscaled components that require compositing (RenderSurface is relative to parent).

Reimplemented in EditWidget, and TextWidget.

Definition at line 362 of file Gump.cpp.

Referenced by PaintCompositing().

void Gump::PaintCompositing ( RenderSurface surf,
sint32  lerp_factor,
sint32  scalex,
sint32  scaley 
) [virtual]

Paint the unscaled compontents of the Gump with compositing (RenderSurface is relative to parent). Calls PaintComposited on self and PaintCompositing on children

Definition at line 312 of file Gump.cpp.

References children, dims, RenderSurface::GetClippingRect(), RenderSurface::GetOrigin(), GumpRectToScreenSpace(), Pentagram::Rect::h, Pentagram::Rect::Intersect(), IsClosing(), IsHidden(), PaintComposited(), PaintCompositing(), ROUND_OUTSIDE, RenderSurface::SetClippingRect(), RenderSurface::SetOrigin(), Pentagram::Rect::w, Pentagram::Rect::x, and Pentagram::Rect::y.

Referenced by ScalerGump::Paint(), and PaintCompositing().

void Gump::PaintThis ( RenderSurface surf,
sint32  lerp_factor,
bool  scaled 
) [protected, virtual]

Overloadable method to Paint just this Gump (RenderSurface is relative to this).

Reimplemented in BindGump, ConsoleGump, ContainerGump, ControlsGump, CreditsGump, DesktopGump, FastAreaVisGump, GameMapGump, MenuGump, MiniMapGump, MiniStatsGump, MovieGump, OptionsGump, PagedGump, PaperdollGump, PentagramMenuGump, QuitGump, ShapeViewerGump, SliderGump, TargetGump, EditWidget, GameWidget, and TextWidget.

Definition at line 273 of file Gump.cpp.

References RenderSurface::CheckClipped(), framenum, Shape::getFrame(), Pentagram::Rect::h, ShapeFrame::height, RenderSurface::Paint(), RenderSurface::PaintNoClip(), shape, Pentagram::Rect::w, Pentagram::Rect::x, ShapeFrame::xoff, Pentagram::Rect::y, and ShapeFrame::yoff.

Referenced by Paint(), TextWidget::PaintThis(), SliderGump::PaintThis(), QuitGump::PaintThis(), PaperdollGump::PaintThis(), PagedGump::PaintThis(), OptionsGump::PaintThis(), MiniStatsGump::PaintThis(), MenuGump::PaintThis(), EditWidget::PaintThis(), ControlsGump::PaintThis(), ContainerGump::PaintThis(), ConsoleGump::PaintThis(), and BindGump::PaintThis().

void Gump::ParentToGump ( int &  px,
int &  py,
PointRoundDir  r = ROUND_TOPLEFT 
) [virtual]

Convert a parent relative point to a gump point.

Definition at line 486 of file Gump.cpp.

References dims, Pentagram::Rect::x, x, Pentagram::Rect::y, and y.

Referenced by FindGump(), GetMouseCursor(), U8SaveGump::OnMouseClick(), OnMouseDown(), GameMapGump::OnMouseDown(), OnMouseMotion(), ItemRelativeGump::ParentToGump(), PointOnGump(), ButtonWidget::PointOnGump(), ScreenSpaceToGump(), SliderGump::StartDraggingChild(), DesktopGump::StartDraggingChild(), TraceObjId(), and GameMapGump::TraceObjId().

bool Gump::PointOnGump ( int  mx,
int  my 
) [virtual]

Detect if a point is on the gump.

Reimplemented in ConsoleGump, ModalGump, TargetGump, and ButtonWidget.

Definition at line 429 of file Gump.cpp.

References children, dims, framenum, Shape::getFrame(), ShapeFrame::hasPoint(), Pentagram::Rect::InRect(), ParentToGump(), and shape.

Referenced by FindGump(), SlidingWidget::TraceObjId(), MiniStatsGump::TraceObjId(), MiniMapGump::TraceObjId(), and FastAreaVisGump::TraceObjId().

void Gump::RemoveChild ( Gump  )  [virtual]

Remove a gump from the child list.

Definition at line 689 of file Gump.cpp.

References children, FindNewFocusChild(), focus_child, and parent.

Referenced by AddChild().

void Gump::RenderSurfaceChanged (  )  [virtual]

Reimplemented in ConsoleGump, DesktopGump, GameMapGump, InverterGump, PentagramMenuGump, and ScalerGump.

Definition at line 135 of file Gump.cpp.

References children.

Referenced by ScalerGump::ChangeScaler(), ScalerGump::RenderSurfaceChanged(), GameMapGump::RenderSurfaceChanged(), DesktopGump::RenderSurfaceChanged(), and ConsoleGump::RenderSurfaceChanged().

bool Gump::Run ( const uint32  framenum  )  [virtual]

Run the gump

Returns:
true if repaint required

Reimplemented in BarkGump, BookGump, ConsoleGump, CreditsGump, GameMapGump, MovieGump, PentagramMenuGump, and ScrollGump.

Definition at line 148 of file Gump.cpp.

References children, FindNewFocusChild(), FLAG_CLOSE_AND_DEL, FLAG_CLOSING, flags, and Run().

Referenced by ScrollGump::Run(), MovieGump::Run(), Run(), GUIApp::run(), GameMapGump::Run(), CreditsGump::Run(), ConsoleGump::Run(), BookGump::Run(), and BarkGump::Run().

void Gump::saveData ( ODataSource ods  )  [protected, virtual]

save the actual Object data

Reimplemented from Object.

Reimplemented in AskGump, BarkGump, BindGump, BookGump, ConsoleGump, ContainerGump, ControlsGump, DesktopGump, GameMapGump, ItemRelativeGump, MiniMapGump, MiniStatsGump, ModalGump, MovieGump, OptionsGump, PagedGump, PaperdollGump, QuitGump, ReadableGump, ScrollGump, ShapeViewerGump, SliderGump, TargetGump, ButtonWidget, SlidingWidget, and TextWidget.

Definition at line 840 of file Gump.cpp.

References children, dims, flags, focus_child, framenum, Object::getObjId(), Shape::getShapeId(), Pentagram::Rect::h, index, layer, notifier, owner, process_result, Object::saveData(), shape, shapenum, Pentagram::Rect::w, ODataSource::write2(), ODataSource::write4(), Pentagram::Rect::x, x, Pentagram::Rect::y, and y.

Referenced by TextWidget::saveData(), SlidingWidget::saveData(), MiniStatsGump::saveData(), MiniMapGump::saveData(), ItemRelativeGump::saveData(), and ButtonWidget::saveData().

static sint32 Gump::ScaleCoord ( sint32  c,
sint32  factor 
) [inline, static, protected]

Definition at line 173 of file Gump.h.

void Gump::ScreenSpaceToGump ( int &  sx,
int &  sy,
PointRoundDir  r = ROUND_TOPLEFT 
) [virtual]

Convert a screen space point to a gump point.

Definition at line 464 of file Gump.cpp.

References parent, ParentToGump(), and ScreenSpaceToGump().

Referenced by ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), GUIApp::handleDelayedEvents(), GUIApp::handleEvent(), AvatarMoverProcess::jump(), GUIApp::moveDragging(), ScreenSpaceToGump(), ScreenSpaceToGumpRect(), GUIApp::startDragging(), and GUIApp::stopDragging().

void Gump::ScreenSpaceToGumpRect ( int &  sx,
int &  sy,
int &  sw,
int &  sh,
RectRoundDir  r = ROUND_OUTSIDE 
) [virtual]

Transform a rectangle to gumpspace from screenspace.

Definition at line 521 of file Gump.cpp.

References ROUND_BOTTOMRIGHT, ROUND_INSIDE, ROUND_OUTSIDE, ROUND_TOPLEFT, and ScreenSpaceToGump().

Referenced by TextWidget::getVlead(), TextWidget::InitGump(), EditWidget::InitGump(), TextWidget::setupNextText(), and EditWidget::textFits().

void Gump::SetFramenum ( uint32  _framenum  )  [inline]

Set the Gump's frame.

Definition at line 87 of file Gump.h.

References framenum.

void Gump::SetIndex ( sint32  i  )  [inline]

Definition at line 337 of file Gump.h.

References index.

Referenced by U8SaveGump::InitGump(), SliderGump::InitGump(), PentagramMenuGump::InitGump(), OptionsGump::InitGump(), MenuGump::InitGump(), GameWidget::InitGump(), and AskGump::InitGump().

void Gump::SetNotifyProcess ( GumpNotifyProcess proc  ) 

Definition at line 102 of file Gump.cpp.

References Process::getPid(), and notifier.

void Gump::setRelativePosition ( Position  pos,
int  xoffset = 0,
int  yoffset = 0 
) [virtual]

Moves this gump to a relative location on the parent gump.

Definition at line 392 of file Gump.cpp.

References BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER, dims, GetDims(), Pentagram::Rect::h, Move(), parent, TOP_CENTER, TOP_LEFT, TOP_RIGHT, and Pentagram::Rect::w.

Referenced by PagedGump::addPage(), MiniMapGump::ConCmd_toggle(), FastAreaVisGump::ConCmd_toggle(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), BindGump::InitGump(), MenuGump::inputName(), U8Game::playCredits(), U8Game::playQuotes(), AvatarDeathProcess::run(), OptionsGump::selectEntry(), MenuGump::selectEntry(), MenuGump::showMenu(), MovieGump::U8MovieViewer(), and QuitGump::verifyQuit().

void Gump::SetShape ( FrameID  frame,
bool  adjustsize = false 
)

Definition at line 79 of file Gump.cpp.

References dims, frame, framenum, GameData::get_instance(), Shape::getFrame(), GameData::getShape(), Pentagram::Rect::h, ShapeFrame::height, shape, Pentagram::Rect::w, and ShapeFrame::width.

void Gump::SetShape ( Shape _shape,
uint32  _framenum 
) [inline]

Set the Gump's shape/frame.

Definition at line 81 of file Gump.h.

References framenum, and shape.

Referenced by U8SaveGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), MenuGump::InitGump(), and BookGump::InitGump().

bool Gump::StartDraggingChild ( Gump gump,
int  mx,
int  my 
) [virtual]

Called when a child gump starts to be dragged.

Returns:
false if the child isn't allowed to be dragged.

Reimplemented in DesktopGump, PentagramMenuGump, and SliderGump.

Definition at line 731 of file Gump.cpp.

Referenced by GUIApp::startDragging().

virtual bool Gump::StartDraggingItem ( Item item,
int  mx,
int  my 
) [inline, virtual]

This will be called when an item in this gump starts to be dragged.

Returns:
false if the item isn't allowed to be dragged.

Reimplemented in ContainerGump, GameMapGump, and PaperdollGump.

Definition at line 349 of file Gump.h.

Referenced by GUIApp::startDragging().

void Gump::StopDraggingChild ( Gump gump  )  [virtual]

Reimplemented in DesktopGump, PentagramMenuGump, and SliderGump.

Definition at line 741 of file Gump.cpp.

Referenced by GUIApp::stopDragging().

virtual void Gump::StopDraggingItem ( Item item,
bool  moved 
) [inline, virtual]

Called when a drag operation finished. This is called on the same gump that received StartDraggingItem

Parameters:
moved If true, the item was actually dragged somewhere else. If false, the drag was cancelled.

Reimplemented in ContainerGump, and GameMapGump.

Definition at line 365 of file Gump.h.

Referenced by GUIApp::stopDragging().

uint16 Gump::TraceObjId ( int  mx,
int  my 
) [virtual]

Trace a click, and return ObjId.

Reimplemented in ContainerGump, FastAreaVisGump, GameMapGump, MiniMapGump, MiniStatsGump, ModalGump, PaperdollGump, PentagramMenuGump, ButtonWidget, GameWidget, and SlidingWidget.

Definition at line 537 of file Gump.cpp.

References children, FLAG_CLOSING, Object::objid, and ParentToGump().

Referenced by AvatarMoverProcess::handleCombatMode(), AvatarMoverProcess::handleNormalMode(), TargetGump::OnMouseUp(), GUIApp::startDragging(), PaperdollGump::TraceObjId(), ModalGump::TraceObjId(), MiniStatsGump::TraceObjId(), MiniMapGump::TraceObjId(), GameWidget::TraceObjId(), GameMapGump::TraceObjId(), FastAreaVisGump::TraceObjId(), and ContainerGump::TraceObjId().

virtual void Gump::UnhideGump (  )  [inline, virtual]

Definition at line 396 of file Gump.h.

References FLAG_HIDDEN, and flags.

Referenced by PagedGump::addPage(), and PagedGump::ChildNotify().

static sint32 Gump::UnscaleCoord ( sint32  c,
sint32  factor 
) [inline, static, protected]

Definition at line 174 of file Gump.h.


Friends And Related Function Documentation

friend class GumpList [friend]

Definition at line 42 of file Gump.h.


Member Data Documentation

std::list<Gump*> Gump::children [protected]

The Gump list for this gump. This will contain all child gumps, as well as all gump widgets.

Definition at line 60 of file Gump.h.

Referenced by AddChild(), ControlsGump::ChildNotify(), CloseItemDependents(), FindGump(), FindNewFocusChild(), GetMouseCursor(), ControlEntryGump::init(), AskGump::loadData(), MoveChildToFront(), OnMouseDown(), OnMouseMotion(), ScalerGump::Paint(), PentagramMenuGump::PaintChildren(), PaintChildren(), PaintCompositing(), DesktopGump::PaintThis(), PointOnGump(), RemoveChild(), RenderSurfaceChanged(), Run(), saveData(), TraceObjId(), and ~Gump().

Pentagram::Rect Gump::dims [protected]

Definition at line 49 of file Gump.h.

Referenced by ControlsGump::addEntry(), GameMapGump::GameMapGump(), GetDims(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), ScalerGump::GumpToParent(), InverterGump::GumpToParent(), GumpToParent(), ControlEntryGump::init(), U8SaveGump::InitGump(), TextWidget::InitGump(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), OptionsGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), EditWidget::InitGump(), ControlsGump::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), BookGump::InitGump(), BarkGump::InitGump(), AskGump::InitGump(), TextWidget::loadData(), loadData(), ButtonWidget::loadData(), BarkGump::loadData(), AskGump::loadData(), ItemRelativeGump::MoveOnScreen(), BarkGump::NextText(), U8SaveGump::OnMouseClick(), Paint(), PentagramMenuGump::PaintChildren(), InverterGump::PaintChildren(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), PaintCompositing(), TextWidget::PaintThis(), ShapeViewerGump::PaintThis(), PentagramMenuGump::PaintThis(), EditWidget::PaintThis(), DesktopGump::PaintThis(), ConsoleGump::PaintThis(), BindGump::PaintThis(), ScalerGump::ParentToGump(), InverterGump::ParentToGump(), ParentToGump(), PointOnGump(), ButtonWidget::PointOnGump(), GameMapGump::RenderSurfaceChanged(), DesktopGump::RenderSurfaceChanged(), ConsoleGump::RenderSurfaceChanged(), EditWidget::renderText(), saveData(), ButtonWidget::saveData(), setRelativePosition(), SetShape(), TextWidget::setupNextText(), ScalerGump::SetupScalers(), and EditWidget::textFits().

uint32 Gump::flags [protected]

Definition at line 50 of file Gump.h.

Referenced by Close(), CloseItemDependents(), ItemRelativeGump::GetItemLocation(), HideGump(), IsClosing(), IsDraggable(), IsHidden(), loadData(), mustSave(), PaintChildren(), Run(), saveData(), and UnhideGump().

Gump* Gump::focus_child [protected]

Definition at line 61 of file Gump.h.

Referenced by AddChild(), PagedGump::addPage(), U8SaveGump::ChildNotify(), FindNewFocusChild(), GetFocusChild(), U8SaveGump::InitGump(), IsFocus(), loadData(), MakeFocus(), OnKeyDown(), OnKeyUp(), U8SaveGump::OnMouseClick(), OnTextInput(), RemoveChild(), saveData(), and ~Gump().

uint32 Gump::framenum [protected]

Definition at line 56 of file Gump.h.

Referenced by ContainerGump::ContainerGump(), SlidingWidget::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), loadData(), ButtonWidget::OnMouseDown(), ButtonWidget::OnMouseLeft(), ButtonWidget::OnMouseOver(), ButtonWidget::OnMouseUp(), PaintThis(), PointOnGump(), saveData(), SetFramenum(), SetShape(), and SlidingWidget::SlidingWidget().

sint32 Gump::index [protected]

Definition at line 53 of file Gump.h.

Referenced by GameWidget::ChildNotify(), GetIndex(), U8SaveGump::InitGump(), PentagramMenuGump::InitGump(), loadData(), U8SaveGump::loadDescriptions(), U8SaveGump::OnMouseClick(), saveData(), and SetIndex().

sint32 Gump::layer [protected]

Definition at line 51 of file Gump.h.

Referenced by AddChild(), loadData(), MoveChildToFront(), and saveData().

uint16 Gump::notifier [protected]

Definition at line 63 of file Gump.h.

Referenced by Close(), CreateNotifier(), ContainerGump::DropItem(), GetNotifyProcess(), InitGump(), loadData(), saveData(), and SetNotifyProcess().

uint16 Gump::owner [protected]

Definition at line 44 of file Gump.h.

Referenced by PaperdollGump::Close(), ContainerGump::Close(), CreateNotifier(), PaperdollGump::DraggingItem(), ContainerGump::DraggingItem(), PaperdollGump::DropItem(), ContainerGump::DropItem(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), PaperdollGump::GetLocationOfItem(), ContainerGump::GetLocationOfItem(), ContainerGump::getTargetContainer(), InitGump(), ContainerGump::InitGump(), BarkGump::InitGump(), AskGump::InitGump(), loadData(), ContainerGump::OnMouseDouble(), BarkGump::OnMouseDown(), PaperdollGump::PaintStats(), PaperdollGump::PaintThis(), ContainerGump::PaintThis(), saveData(), ContainerGump::StartDraggingItem(), PaperdollGump::TraceObjId(), and ContainerGump::TraceObjId().

Gump* Gump::parent [protected]

Definition at line 45 of file Gump.h.

Referenced by U8SaveGump::ChildNotify(), GameWidget::ChildNotify(), ControlEntryGump::ChildNotify(), Close(), ItemRelativeGump::GetItemLocation(), ContainerGump::GetItemLocation(), PaperdollGump::GetLocationOfItem(), ContainerGump::GetLocationOfItem(), GetParent(), GetRootGump(), GumpToScreenSpace(), ItemRelativeGump::InitGump(), IsFocus(), IsHidden(), MakeFocus(), ItemRelativeGump::MoveOnScreen(), mustSave(), OptionsGump::OnKeyDown(), EditWidget::OnKeyDown(), U8SaveGump::OnMouseClick(), ButtonWidget::OnMouseClick(), ButtonWidget::OnMouseDouble(), TargetGump::OnMouseUp(), ButtonWidget::OnMouseUp(), TextWidget::PaintComposited(), RemoveChild(), ScalerGump::RenderSurfaceChanged(), GameMapGump::RenderSurfaceChanged(), DesktopGump::RenderSurfaceChanged(), ConsoleGump::RenderSurfaceChanged(), ScreenSpaceToGump(), and setRelativePosition().

uint32 Gump::process_result [protected]

Definition at line 64 of file Gump.h.

Referenced by AskGump::ChildNotify(), SliderGump::Close(), Close(), GetResult(), loadData(), TargetGump::OnMouseUp(), and saveData().

Shape* Gump::shape [protected]

Definition at line 55 of file Gump.h.

Referenced by ContainerGump::ContainerGump(), GetMouseCursor(), SlidingWidget::InitGump(), SliderGump::InitGump(), ScrollGump::InitGump(), ReadableGump::InitGump(), QuitGump::InitGump(), PagedGump::InitGump(), MiniStatsGump::InitGump(), MenuGump::InitGump(), ContainerGump::InitGump(), ButtonWidget::InitGump(), BookGump::InitGump(), loadData(), ShapeViewerGump::OnKeyDown(), ButtonWidget::OnMouseDown(), ButtonWidget::OnMouseLeft(), ButtonWidget::OnMouseOver(), ButtonWidget::OnMouseUp(), ShapeViewerGump::PaintThis(), PaintThis(), PointOnGump(), saveData(), SetShape(), and SlidingWidget::SlidingWidget().

sint32 Gump::x [protected]

Definition at line 46 of file Gump.h.

Referenced by GameMapGump::ConCmd_dumpMap(), TextWidget::getVlead(), ScalerGump::GumpToParent(), InverterGump::GumpToParent(), GumpToParent(), TextWidget::InitGump(), OptionsGump::InitGump(), MenuGump::InitGump(), EditWidget::InitGump(), loadData(), ItemRelativeGump::Move(), Move(), ItemRelativeGump::MoveOnScreen(), MoveRelative(), U8SaveGump::OnMouseClick(), GameMapGump::OnMouseClick(), GameMapGump::OnMouseDouble(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), PaperdollGump::PaintStat(), MiniMapGump::PaintThis(), FastAreaVisGump::PaintThis(), ScalerGump::ParentToGump(), InverterGump::ParentToGump(), ParentToGump(), EditWidget::renderText(), saveData(), TextWidget::setupNextText(), ControlsGump::showEngineMenu(), ControlsGump::showU8Menu(), and EditWidget::textFits().

sint32 Gump::y [protected]

Definition at line 46 of file Gump.h.

Referenced by GameMapGump::ConCmd_dumpMap(), TextWidget::getVlead(), ScalerGump::GumpToParent(), InverterGump::GumpToParent(), GumpToParent(), TextWidget::InitGump(), PentagramMenuGump::InitGump(), OptionsGump::InitGump(), MenuGump::InitGump(), EditWidget::InitGump(), loadData(), ItemRelativeGump::Move(), Move(), ItemRelativeGump::MoveOnScreen(), MoveRelative(), U8SaveGump::OnMouseClick(), GameMapGump::OnMouseClick(), GameMapGump::OnMouseDouble(), TextWidget::PaintComposited(), EditWidget::PaintComposited(), PaperdollGump::PaintStat(), MiniMapGump::PaintThis(), FastAreaVisGump::PaintThis(), CreditsGump::PaintThis(), ScalerGump::ParentToGump(), InverterGump::ParentToGump(), ParentToGump(), EditWidget::renderText(), saveData(), TextWidget::setupNextText(), ControlsGump::showEngineMenu(), ControlsGump::showU8Menu(), and EditWidget::textFits().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:20 2007 for pentagram by  doxygen 1.4.7