SwigDirector_UMenuItemAction Class Reference

#include <armagetronad_wrap.h>

Inheritance diagram for SwigDirector_UMenuItemAction:

Inheritance graph
[legend]
Collaboration diagram for SwigDirector_UMenuItemAction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SwigDirector_UMenuItemAction (VALUE self, uMenu *M, tOutput const &name, tOutput const &help)
virtual ~SwigDirector_UMenuItemAction ()
virtual tString Help ()
virtual void Render (REAL x, REAL y, REAL alpha=1, bool selected=0)
virtual void RenderBackground ()
virtual void LeftRight (int arg0)
virtual void LeftRightRelease ()
virtual void Enter ()
virtual bool Event (SDL_Event &arg0)
virtual REAL SpaceRight ()
virtual bool IsSelectable ()


Detailed Description

Definition at line 69 of file armagetronad_wrap.h.


Constructor & Destructor Documentation

SwigDirector_UMenuItemAction::SwigDirector_UMenuItemAction ( VALUE  self,
uMenu M,
tOutput const &  name,
tOutput const &  help 
)

Definition at line 2710 of file armagetronad_wrap.cxx.

02710                                                                                                                         : uMenuItemAction(M, name, help), Swig::Director(self) {
02711   
02712 }

SwigDirector_UMenuItemAction::~SwigDirector_UMenuItemAction (  )  [virtual]

Definition at line 2716 of file armagetronad_wrap.cxx.

02716                                                             {
02717 }


Member Function Documentation

tString SwigDirector_UMenuItemAction::Help (  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2719 of file armagetronad_wrap.cxx.

References NULL, SWIG_ArgError, SWIG_ConvertPtr, SWIG_ErrorType, SWIG_IsOK, and SWIGTYPE_p_tString.

02719                                            {
02720   tString c_result ;
02721   VALUE result;
02722   void *swig_argp ;
02723   int swig_res = 0 ;
02724   
02725   result = rb_funcall(swig_get_self(), rb_intern("help"), 0, NULL);
02726   swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_tString,  0 );
02727   if (!SWIG_IsOK(swig_res)) {
02728     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""tString""'");
02729   }
02730   c_result = *(reinterpret_cast< tString * >(swig_argp));
02731   return (tString) c_result;
02732 }

void SwigDirector_UMenuItemAction::Render ( REAL  x,
REAL  y,
REAL  alpha = 1,
bool  selected = 0 
) [virtual]

Reimplemented from uMenuItemAction.

Definition at line 2735 of file armagetronad_wrap.cxx.

References SWIG_From_bool(), and SWIG_From_float().

02735                                                                                    {
02736   VALUE obj0 = Qnil ;
02737   VALUE obj1 = Qnil ;
02738   VALUE obj2 = Qnil ;
02739   VALUE obj3 = Qnil ;
02740   VALUE result;
02741   
02742   obj0 = SWIG_From_float(static_cast< float >(x));
02743   obj1 = SWIG_From_float(static_cast< float >(y));
02744   obj2 = SWIG_From_float(static_cast< float >(alpha));
02745   obj3 = SWIG_From_bool(static_cast< bool >(selected));
02746   result = rb_funcall(swig_get_self(), rb_intern("render"), 4,obj0,obj1,obj2,obj3);
02747 }

Here is the call graph for this function:

void SwigDirector_UMenuItemAction::RenderBackground (  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2750 of file armagetronad_wrap.cxx.

References NULL.

02750                                                     {
02751   VALUE result;
02752   
02753   result = rb_funcall(swig_get_self(), rb_intern("render_background"), 0, NULL);
02754 }

void SwigDirector_UMenuItemAction::LeftRight ( int  arg0  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2757 of file armagetronad_wrap.cxx.

References SWIG_From_int().

02757                                                      {
02758   VALUE obj0 = Qnil ;
02759   VALUE result;
02760   
02761   obj0 = SWIG_From_int(static_cast< int >(arg0));
02762   result = rb_funcall(swig_get_self(), rb_intern("left_right"), 1,obj0);
02763 }

Here is the call graph for this function:

void SwigDirector_UMenuItemAction::LeftRightRelease (  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2766 of file armagetronad_wrap.cxx.

References NULL.

02766                                                     {
02767   VALUE result;
02768   
02769   result = rb_funcall(swig_get_self(), rb_intern("left_right_release"), 0, NULL);
02770 }

void SwigDirector_UMenuItemAction::Enter (  )  [virtual]

Implements uMenuItemAction.

Definition at line 2773 of file armagetronad_wrap.cxx.

References NULL.

02773                                          {
02774   VALUE result;
02775   
02776   result = rb_funcall(swig_get_self(), rb_intern("enter"), 0, NULL);
02777 }

bool SwigDirector_UMenuItemAction::Event ( SDL_Event &  arg0  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2780 of file armagetronad_wrap.cxx.

References SWIG_ArgError, SWIG_as_voidptr, SWIG_AsVal_bool(), SWIG_ErrorType, SWIG_IsOK, SWIG_NewPointerObj, and SWIGTYPE_p_SDL_Event.

02780                                                         {
02781   bool c_result ;
02782   VALUE obj0 = Qnil ;
02783   VALUE result;
02784   
02785   obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&arg0), SWIGTYPE_p_SDL_Event,  0 );
02786   result = rb_funcall(swig_get_self(), rb_intern("event"), 1,obj0);
02787   bool swig_val;
02788   int swig_res = SWIG_AsVal_bool(result, &swig_val);
02789   if (!SWIG_IsOK(swig_res)) {
02790     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
02791   }
02792   c_result = static_cast< bool >(swig_val);
02793   return (bool) c_result;
02794 }

Here is the call graph for this function:

REAL SwigDirector_UMenuItemAction::SpaceRight (  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2797 of file armagetronad_wrap.cxx.

References NULL, REAL, SWIG_ArgError, SWIG_AsVal_float(), SWIG_ErrorType, and SWIG_IsOK.

02797                                               {
02798   REAL c_result ;
02799   VALUE result;
02800   
02801   result = rb_funcall(swig_get_self(), rb_intern("space_right"), 0, NULL);
02802   float swig_val;
02803   int swig_res = SWIG_AsVal_float(result, &swig_val);
02804   if (!SWIG_IsOK(swig_res)) {
02805     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""REAL""'");
02806   }
02807   c_result = static_cast< REAL >(swig_val);
02808   return (REAL) c_result;
02809 }

Here is the call graph for this function:

bool SwigDirector_UMenuItemAction::IsSelectable (  )  [virtual]

Reimplemented from uMenuItem.

Definition at line 2812 of file armagetronad_wrap.cxx.

References NULL, SWIG_ArgError, SWIG_AsVal_bool(), SWIG_ErrorType, and SWIG_IsOK.

02812                                                 {
02813   bool c_result ;
02814   VALUE result;
02815   
02816   result = rb_funcall(swig_get_self(), rb_intern("is_selectable"), 0, NULL);
02817   bool swig_val;
02818   int swig_res = SWIG_AsVal_bool(result, &swig_val);
02819   if (!SWIG_IsOK(swig_res)) {
02820     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
02821   }
02822   c_result = static_cast< bool >(swig_val);
02823   return (bool) c_result;
02824 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:54:53 2008 for Armagetron Advanced by  doxygen 1.5.4