Click here to Skip to main content
15,885,767 members
Articles / Desktop Programming / MFC

2D LUA Based Robot Simulator

Rate me:
Please Sign up or sign in to vote.
4.89/5 (26 votes)
14 Apr 2014Public Domain9 min read 130.7K   7.9K   119  
An article on designing your own robot simulator
/*
 *  ScintillaMacOSX.h
 *  tutorial
 *
 *  Created by Evan Jones on Sun Sep 01 2002.
 *  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef SCINTILLA_LISTBOX_H
#define SCINTILLA_LISTBOX_H

#include "TView.h"

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <time.h>

#include "Platform.h"
#include "Scintilla.h"

static const OSType scintillaListBoxType = 'sclb';

namespace Scintilla {

class ScintillaListBox : public TView
{
public:
        // Private so ScintillaListBox objects can not be copied
        ScintillaListBox(const ScintillaListBox &) : TView( NULL ) {}
        ScintillaListBox &operator=(const ScintillaListBox &) { return * this; }
	~ScintillaListBox() {};

public:
	/** This is the class ID that we've assigned to Scintilla. */
	static const CFStringRef kScintillaListBoxClassID;
	static const ControlKind kScintillaListBoxKind;

	ScintillaListBox( void* windowid );

	/** Returns the HIView object kind, needed to subclass TView. */
	virtual ControlKind GetKind() { return kScintillaListBoxKind; }

private:

	virtual ControlPartCode HitTest( const HIPoint& where );
	virtual void Draw( RgnHandle rgn, CGContextRef gc );
	virtual OSStatus MouseDown( HIPoint& location, UInt32 modifiers, EventMouseButton button, UInt32 clickCount );
	virtual OSStatus MouseUp( HIPoint& location, UInt32 modifiers, EventMouseButton button, UInt32 clickCount );

public:
	static HIViewRef Create();
private:
	static OSStatus Construct( HIViewRef inControl, TView** outView );
	
};


}


#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Student
Indonesia Indonesia
http://kataauralius.com/

Comments and Discussions