ftp.nice.ch/Attic/openStep/implementation/gnustep/sources/objcX-0.87.tgz#/objcX-0.87/appkit/Text.h

This is Text.h in view mode; [Download] [Up]

/* Interface for Text class
 *
 * Copyright (C)  1993  The Board of Trustees of  
 * The Leland Stanford Junior University.  All Rights Reserved.
 *
 * Authors: Scott Francis, Paul Kunz and Jeff Kamerer (SLAC)
 *	    Mike L. Kienenberger (Alaska)
 *
 * This file is part of an Objective-C class library for a window system
 *
 * Text.h,v 1.20 1995/04/19 00:42:56 pfkeb Exp
 */

 
#ifndef _Text_h_
#define _Text_h_

#include "View.h"
#include "streams/streams.h"

/* justification modes */

#define NX_LEFTALIGNED 0
#define NX_RIGHTALIGNED 1
#define NX_CENTERED 2
#define NX_JUSTIFIED 3

@interface Text:View
{
	BOOL mono;
	BOOL editable;
	BOOL selectable;
	BOOL flipped;
	
	char *_textString;
	short _numTextLines;
	BOOL _justKilledWidget;
	BOOL _waitToKillWidget;
}

- initFrame:(const NXRect *)frameRect;
- initFrame:(const NXRect *)frameRect text:(const char *)theText
				    alignment:(int)mode;

- setMonoFont:(BOOL)flag;
- setEditable:(BOOL)flag;
- setSelectable:(BOOL)flag;
- setFlipped:(BOOL)flag;

- awake;

- read:(TypedStream *)ts;

- (int)textLength;
- setSel:(int)start :(int)end;
- setText:(const char *)aString;
- (int)getSubstring:(char *)buf start:(int)startPos length:(int)numChars;
- (int)textLength;
- (int)charLength;
- replaceSel:(const char *)aString;
- readText:(NXStream *)stream;
@end

@interface Text(WidgetSet)
- _textWillChange:(void *)cb;
- _textDidChange;
- _addCallback;
- _init;
- _setText;
- _setSel:(int)start :(int)end;
- (int)_getSubstring:(char *)buf start:(int)startPos length:(int)numChars;
- (int)_textLength;
- _replaceSel:(const char *)aString;
- _preReadText;
- _postReadText;
@end

#endif /* _Text_h_ */

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.