Code Search for Developers
 
 
  

msg.cpp from NeoEngineNG at Krugle


Show msg.cpp syntax highlighted

/***************************************************************************
                    msg.cpp  -  Window toolkit message class
                             -------------------
    begin                : Sun Nov 17 2002
    copyright            : (C) 2002 by Mattias Jansson
    email                : mattias@realityrift.com
 ***************************************************************************

 The contents of this file are subject to the Mozilla Public License Version
 1.1 (the "License"); you may not use this file except in compliance with
 the License. You may obtain a copy of the License at 
 http://www.mozilla.org/MPL/

 Software distributed under the License is distributed on an "AS IS" basis,
 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 for the specific language governing rights and limitations under the
 License.

 The Original Code is the NeoEngine, NeoWTK, msg.cpp

 The Initial Developer of the Original Code is Mattias Jansson.
 Portions created by Mattias Jansson are Copyright (C) 2002
 Reality Rift Studios. All Rights Reserved.

 ***************************************************************************/

#include "msg.h"

using namespace std;


namespace NeoWTK
{


string Msg::GetIDAsString() const
{
	switch( m_eID )
	{
		case INVALID:
			return "Invalid";

		case RESIZE:
			return "Resize";

		case MOVE:
			return "Move";

		case MOUSE_ENTER:
			return "MouseEnter";

		case MOUSE_LEAVE:
			return "MouseLeave";

		case MOUSE_DOWN:
			return "MouseDown";

		case MOUSE_UP:
			return "MouseUp";

		case MOUSE_MOVE:
			return "MouseMove";

		case BUTTON_DOWN:
			return "ButtonDown";

		case BUTTON_UP:
			return "ButtonUp";

		default:
			break;
	}
	
	return "Unknown";
}


}; /*! namespace NeWTK */





See more files for this project here

NeoEngineNG

NeoenEngine NG (Next Generation) is the evolution of neoengine one,it\'s a different development from NeoEngine2, it\'s a direct inherits from NeoEngine one.\n

Project homepage: http://sourceforge.net/projects/neoengineng
Programming language(s): C,C++
License: other

  Makefile.am
  SConscript
  area.cpp
  area.h
  attribute.cpp
  attribute.h
  base.cpp
  base.h
  borderarea.cpp
  borderarea.h
  button.cpp
  button.h
  chunktype.h
  coord.cpp
  coord.h
  core.cpp
  core.h
  dll.cpp
  editbox.cpp
  editbox.h
  msg.cpp
  msg.h
  msghook.cpp
  msghook.h
  neowtk-static.dev
  neowtk.cbp
  neowtk.dev
  neowtk.dsp
  neowtk.layout
  neowtk.vcproj
  object.cpp
  object.h
  textarea.cpp
  textarea.h
  widgetlib.cpp
  widgetlib.h