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

gui::SeparatorMenuItem Class Reference

#include <SeparatorMenuItem.h>

Inheritance diagram for gui::SeparatorMenuItem:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SeparatorMenuItem (Surface *, SurfaceHelper *=NULL)
 ~SeparatorMenuItem ()
void Draw ()

Constructor & Destructor Documentation

gui::SeparatorMenuItem::SeparatorMenuItem Surface ,
SurfaceHelper = NULL
 

Definition at line 56 of file SeparatorMenuItem.cpp.

00057 :MenuItem(s,"",NULL,pclHelper) 00058 { 00059 SetH(5, false); 00060 SetClickable(false); 00061 }

gui::SeparatorMenuItem::~SeparatorMenuItem  ) 
 

Definition at line 64 of file SeparatorMenuItem.cpp.

00065 { 00066 }


Member Function Documentation

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

Reimplemented from gui::MenuItem.

Definition at line 69 of file SeparatorMenuItem.cpp.

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

00070 { 00071 SDL_Rect r; 00072 SDL_Rect *area = GetClientRectPtr(); 00073 00074 SDL_FillRect(m_screen, area, GetBgColor()); 00075 00076 r.x = 2; 00077 r.y = 2; 00078 r.w = GetW() - 4; 00079 r.h = 1; 00080 SDL_FillRect(m_screen, &r, GetFgColor()); 00081 }


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