This is Responder.h in view mode; [Download] [Up]
/* GNU OpenStep interface file for Responder class
*
* Copyright (C) 1993, 1994, 1995 The Board of Trustees of
* The Leland Stanford Junior University. All Rights Reserved.
*
* Copyright (C) 1993 Keith Mason. All Rights Reserved
*
* Authors: Scott Francis, Paul Kunz, Keith Mason, and Libing Wang
*
* This file is part of an Objective-C class library for a window system
*
* Responder.h,v 1.31 1995/07/03 18:13:31 pfkeb Exp
*/
#ifndef _GNUSTEP_APPKIT_RESPONDER_H_
#define _GNUSTEP_APPKIT_RESPONDER_H_
#include <objc/Object.h>
#include "objc/hashtable.h"
#include "objc/typedstream2.h"
#include <dpsclient/dpsclient.h>
#define MAX_WIDGETS 5
#define BASE 0
@interface Responder:Object
{
id nextResponder;
/* Instance variables for the window system specific implementation */
void *classname; /* that is the window class name */
char *instancename; /* the Objective-C name */
void *widgetid; /* widgetid of this responder */
/* These are for argument passing to widgets */
void *arglist;
int numargs;
int allocedargs;
}
- init;
// Freeing an instance
- free;
// Setting the next responder
- setNextResponder:aResponder;
- nextResponder;
// Determining the first responder
- (BOOL)acceptsFirstResponder;
- becomeFirstResponder;
- resignFirstResponder;
// Aiding event processing
- (BOOL)performKeyEquivalent:(NXEvent *)theEvent;
- (BOOL)tryToPerform:(SEL)anAction
with:anObject;
// Forwarding event messages
- mouseDown:(NXEvent *)theEvent;
- rightMouseDown:(NXEvent *)theEvent;
- mouseDragged:(NXEvent *)theEvent;
- rightMouseDragged:(NXEvent *)theEvent;
- mouseUp:(NXEvent *)theEvent;
- rightMouseUp:(NXEvent *)theEvent;
- mouseMoved:(NXEvent *)theEvent;
- mouseEntered:(NXEvent *)theEvent;
- mouseExited:(NXEvent *)theEvent;
- keyDown:(NXEvent *)theEvent;
- keyUp:(NXEvent *)theEvent;
- flagsChanged:(NXEvent *)theEvent;
- noResponderFor:(int)eventType;
// Services menu support
- validRequestorForSendType:(NXAtom)typeSent
andReturnType:(NXAtom)typeReturned;
// Help menu support
- helpRequested:(NXEvent *)eventPtr;
// Archiving
- read:(NXTypedStream *)stream;
- write:(NXTypedStream *)stream;
- (void *)_widget;
@end
#endif _GNUSTEP_APPKIT_RESPONDER_H_
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.