virtual -View ();
virtual char * getClassName () const {
return "View";
}
virtual int put ( Store *) const;

5. Принципы построения пользовательского интерфейса

virtual int get ( Store * );
virtual void init () {} // post-constructor init
virtual void show (); // show this window
virtual void hide (); // hide this window
virtual int handle ( const Message& );
// keyboard messages virtual int keyDown ( const Message& ); virtual int keyLIp ( const Message& );
// mouse events virtual int mouseDown ( const Message& ); virtual int mouseUp ( const Message& ); virtual int mouseMove ( const Message& ); virtual int rightMouseDown ( const Message& ); virtual int rightMousellp ( const Message& ); virtual int mouseDoubleClick ( const Message& ); virtual int mouseTripleClick ( const Message& );
virtual int receiveFocus ( const Message& ); virtual int looseFocus ( const Message& );
virtual int command ( const Message& ); virtual int timer ( const Message& ); virtual int close ( const Message& );
virtual void helpRequested ( const Message& ) {}
virtual void draw ( const Rect& ) const {}
virtual void getMinMaxSize ( Point& minSize,
f Point& maxSize ) const;
virtual Rect getClientRect ( Rect& ) const;
virtual int hitTest ( const Point& ) const
return HT_CLIENT;
virtual Menu * getMenu ( const Message& ) const return NULL;
virtual int handleHooked ( const Message& )
return FALSE; // message not processed by hook, so own message
// handler should be called
// whether the view can receive input focus virtual int canReceiveFocus () const
{
return TRUE;
}
void setTag (int newTag ) {

Компьютерная графика. Полигональные модели

tag = newTag;
}
View * viewWithTag (int theTag );
void addSubView ( View * subView );
void setFrame (int x, int y, int width, int height );
void setFrame ( const Rect& r)
{
setFrame (r.xl, r.yl, r.width (), r.height ());

⇐ Предыдущая| |Следующая ⇒