Google
Web alhem.net
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

gui::Dialog Class Reference

#include <Dialog.h>

Inheritance diagram for gui::Dialog:

Inheritance graph
[legend]
Collaboration diagram for gui::Dialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Dialog (Surface *, coord_t x, coord_t y, coord_t w, coord_t h, SurfaceHelper *=NULL)
 ~Dialog ()
void Draw ()
void AddChild (Surface *)
void OnRightClick (coord_t, coord_t)

Private Attributes

Hotspot m_movespot

Constructor & Destructor Documentation

gui::Dialog::Dialog Surface ,
coord_t  x,
coord_t  y,
coord_t  w,
coord_t  h,
SurfaceHelper = NULL
 

Definition at line 54 of file Dialog.cpp.

References AddChild(), gui::coord_t, DIALOG_DEFAULT_BG_B, DIALOG_DEFAULT_BG_G, DIALOG_DEFAULT_BG_R, DIALOG_DEFAULT_FC_B, DIALOG_DEFAULT_FC_G, DIALOG_DEFAULT_FC_R, DIALOG_DEFAULT_FW, m_movespot, SBSIZE, gui::Surface::SetAnchorDown(), gui::Surface::SetAnchorRight(), gui::Surface::SetFrameWidth(), and gui::Surface::SetResizeArea().

00055 :Surface(s,x,y,w,h,pclHelper) 00056 ,m_movespot(s,w - SBSIZE,h - SBSIZE,SBSIZE,SBSIZE) 00057 { 00058 SetBgColor(DIALOG_DEFAULT_BG_R,DIALOG_DEFAULT_BG_G,DIALOG_DEFAULT_BG_B); 00059 SetFrameWidth(DIALOG_DEFAULT_FW); 00060 SetFrameColor(DIALOG_DEFAULT_FC_R,DIALOG_DEFAULT_FC_G,DIALOG_DEFAULT_FC_B); 00061 00062 m_movespot.SetResizeArea(true); 00063 m_movespot.SetFrameWidth(0); 00064 m_movespot.SetAnchorRight( true ); 00065 m_movespot.SetAnchorDown( true ); 00066 AddChild(&m_movespot); 00067 }

gui::Dialog::~Dialog  ) 
 

Definition at line 70 of file Dialog.cpp.

00071 { 00072 }


Member Function Documentation

void gui::Dialog::AddChild Surface  )  [virtual]
 

Reimplemented from gui::Surface.

Definition at line 84 of file Dialog.cpp.

References gui::Surface::BringToTop(), and m_movespot.

Referenced by Dialog().

00085 { 00086 Surface::AddChild(s); 00087 00088 // m_movespot.BringToTop(); 00089 BringToTop(&m_movespot); 00090 }

void gui::Dialog::Draw  )  [virtual]
 

Reimplemented from gui::Surface.

Definition at line 75 of file Dialog.cpp.

References gui::Surface::GetBgColor(), and gui::Surface::GetClientRectPtr().

00076 { 00077 SDL_Rect *area = GetClientRectPtr(); 00078 Uint32 color = GetBgColor(); 00079 00080 SDL_FillRect(m_screen, area, color); 00081 }

void gui::Dialog::OnRightClick coord_t  ,
coord_t 
[virtual]
 

Reimplemented from gui::Surface.

Definition at line 93 of file Dialog.cpp.

References gui::Surface::OnClose().

00094 { 00095 OnClose(); 00096 }


Member Data Documentation

Hotspot gui::Dialog::m_movespot [private]
 

Definition at line 39 of file Dialog.h.

Referenced by AddChild(), and Dialog().


The documentation for this class was generated from the following files:
Generated for My SDL C++ Gui by doxygen 1.3.6

www.TV-friendship.com
The matchmaking service with an all new twist.

Quantum 'Teleportation'
Some thoughts
Page, code, and content Copyright (C) 2004 by Anders Hedström