2008-03-02 02:17:37 +00:00
|
|
|
{%mainunit appkit.pas}
|
|
|
|
{
|
|
|
|
NSTextField.h
|
|
|
|
Application Kit
|
|
|
|
Copyright (c) 1994-2005, Apple Computer, Inc.
|
|
|
|
All rights reserved.
|
|
|
|
}
|
|
|
|
|
|
|
|
{$ifdef HEADER}
|
|
|
|
{$ifndef NSTEXTFIELD_PAS_H}
|
|
|
|
{$define NSTEXTFIELD_PAS_H}
|
|
|
|
|
|
|
|
{$include NSControl.inc}
|
|
|
|
{#import <AppKit/NSTextFieldCell.h>}
|
|
|
|
|
|
|
|
{ Class and method name strings }
|
|
|
|
const
|
|
|
|
Str_NSTextField = 'NSTextField';
|
|
|
|
|
|
|
|
{$endif}
|
|
|
|
{$endif}
|
|
|
|
{$ifdef CLASSES}
|
|
|
|
{$ifndef NSTEXTFIELD_PAS_C}
|
|
|
|
{$define NSTEXTFIELD_PAS_C}
|
|
|
|
|
|
|
|
{$include NSControl.inc}
|
|
|
|
{#import <AppKit/NSTextFieldCell.h>}
|
|
|
|
|
|
|
|
NSTextField = class(NSControl)
|
|
|
|
public
|
2008-03-04 09:16:58 +00:00
|
|
|
{ Extra binding functions }
|
2008-05-09 19:51:36 +00:00
|
|
|
class function getClass: objc.id; override;
|
2008-03-04 09:16:58 +00:00
|
|
|
public
|
2008-03-02 02:17:37 +00:00
|
|
|
|
|
|
|
{- (void)setBackgroundColor:(NSColor *)color;
|
|
|
|
- (NSColor *)backgroundColor;
|
|
|
|
- (void)setDrawsBackground:(BOOL)flag;
|
|
|
|
- (BOOL)drawsBackground;
|
|
|
|
- (void)setTextColor:(NSColor *)color;
|
|
|
|
- (NSColor *)textColor;
|
|
|
|
- (BOOL)isBordered;
|
|
|
|
- (void)setBordered:(BOOL)flag;
|
|
|
|
- (BOOL)isBezeled;
|
|
|
|
- (void)setBezeled:(BOOL)flag;
|
|
|
|
- (BOOL)isEditable;
|
|
|
|
- (void)setEditable:(BOOL)flag;
|
|
|
|
- (BOOL)isSelectable;
|
|
|
|
- (void)setSelectable:(BOOL)flag;
|
|
|
|
- (void)selectText:(id)sender;
|
|
|
|
- (id)delegate;
|
|
|
|
- (void)setDelegate:(id)anObject;
|
|
|
|
- (BOOL)textShouldBeginEditing:(NSText *)textObject;
|
|
|
|
- (BOOL)textShouldEndEditing:(NSText *)textObject;
|
|
|
|
- (void)textDidBeginEditing:(NSNotification *)notification;
|
|
|
|
- (void)textDidEndEditing:(NSNotification *)notification;
|
|
|
|
- (void)textDidChange:(NSNotification *)notification;
|
|
|
|
- (BOOL)acceptsFirstResponder;
|
|
|
|
|
|
|
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2
|
|
|
|
- (void)setBezelStyle:(NSTextFieldBezelStyle)style;
|
|
|
|
- (NSTextFieldBezelStyle)bezelStyle;
|
|
|
|
#endif
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSTextField(NSKeyboardUI)
|
|
|
|
- (void)setTitleWithMnemonic:(NSString *)stringWithAmpersand;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSTextField(NSTextFieldAttributedStringMethods)
|
|
|
|
- (BOOL)allowsEditingTextAttributes;
|
|
|
|
- (void)setAllowsEditingTextAttributes:(BOOL)flag;
|
|
|
|
- (BOOL)importsGraphics;
|
|
|
|
- (void)setImportsGraphics:(BOOL)flag;
|
|
|
|
@end}
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
{$endif}
|
|
|
|
{$endif}
|
|
|
|
{$ifdef IMPLEMENTATION}
|
|
|
|
|
2008-05-09 19:51:36 +00:00
|
|
|
class function NSTextField.getClass: objc.id;
|
2008-03-02 02:17:37 +00:00
|
|
|
begin
|
2008-03-04 09:16:58 +00:00
|
|
|
Result := objc_getClass(Str_NSTextField);
|
2008-03-02 02:17:37 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
{$endif}
|
|
|
|
|