You've already forked lazarus-ccr
88 lines
2.1 KiB
PHP
88 lines
2.1 KiB
PHP
![]() |
{%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
|
||
|
constructor initWithFrame(frameRect: NSRect); override;
|
||
|
|
||
|
{- (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}
|
||
|
|
||
|
constructor NSTextField.initWithFrame(frameRect: NSRect);
|
||
|
begin
|
||
|
ClassId := objc_getClass(PChar(Str_NSTextField));
|
||
|
inherited initWithFrame(frameRect);
|
||
|
end;
|
||
|
|
||
|
{$endif}
|
||
|
|