blob: c411f2eebcbe6e5c87eddec9fd35749cc28fc5ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{ Parsed from Appkit.framework NSTextContainer.h }
{$ifdef TYPES}
{$ifndef NSTEXTCONTAINER_PAS_T}
{$define NSTEXTCONTAINER_PAS_T}
{ Constants }
const
NSLineSweepLeft = 0;
NSLineSweepRight = 1;
NSLineSweepDown = 2;
NSLineSweepUp = 3;
const
NSLineDoesntMove = 0;
NSLineMovesLeft = 1;
NSLineMovesRight = 2;
NSLineMovesDown = 3;
NSLineMovesUp = 4;
{ Types }
type
NSLineSweepDirection = NSUInteger;
NSLineSweepDirectionPtr = ^NSLineSweepDirection;
NSLineMovementDirection = NSUInteger;
NSLineMovementDirectionPtr = ^NSLineMovementDirection;
{$endif}
{$endif}
{$ifdef RECORDS}
{$ifndef NSTEXTCONTAINER_PAS_R}
{$define NSTEXTCONTAINER_PAS_R}
{$endif}
{$endif}
{$ifdef FUNCTIONS}
{$ifndef NSTEXTCONTAINER_PAS_F}
{$define NSTEXTCONTAINER_PAS_F}
{$endif}
{$endif}
{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSTEXTCONTAINER_PAS_S}
{$define NSTEXTCONTAINER_PAS_S}
{$endif}
{$endif}
{$ifdef FORWARD}
NSTextContainer = objcclass;
NSTextContainerPointer = ^NSTextContainer;
NSTextContainerPtr = NSTextContainerPointer;
{$endif}
{$ifdef CLASSES}
{$ifndef NSTEXTCONTAINER_PAS_C}
{$define NSTEXTCONTAINER_PAS_C}
{ NSTextContainer }
NSTextContainer = objcclass external (NSObject, NSCodingProtocol)
private
_layoutManager: NSLayoutManager;
_textView: NSTextView;
_size: NSSize;
_lineFragmentPadding: CGFloat;
__tcFlags: record
case byte of
0: (_anonbitfield_NSTextContainer0: cushort);
1: (data: bitpacked record
_widthTracksTextView: 0..1;
_heightTracksTextView: 0..1;
observingFrameChanges: 0..1;
_reserved: 0..((1 shl 13)-1);
end;
);
end;
public
function initWithContainerSize(size: NSSize): id; message 'initWithContainerSize:';
function layoutManager: NSLayoutManager; message 'layoutManager';
procedure setLayoutManager(layoutManager_: NSLayoutManager); message 'setLayoutManager:';
procedure replaceLayoutManager(newLayoutManager: NSLayoutManager); message 'replaceLayoutManager:';
function textView: NSTextView; message 'textView';
procedure setTextView(textView_: NSTextView); message 'setTextView:';
procedure setWidthTracksTextView(flag: Boolean); message 'setWidthTracksTextView:';
function widthTracksTextView: Boolean; message 'widthTracksTextView';
procedure setHeightTracksTextView(flag: Boolean); message 'setHeightTracksTextView:';
function heightTracksTextView: Boolean; message 'heightTracksTextView';
procedure setContainerSize(size: NSSize); message 'setContainerSize:';
function containerSize: NSSize; message 'containerSize';
procedure setLineFragmentPadding(pad: CGFloat); message 'setLineFragmentPadding:';
function lineFragmentPadding: CGFloat; message 'lineFragmentPadding';
function lineFragmentRectForProposedRect_sweepDirection_movementDirection_remainingRect(proposedRect: NSRect; sweepDirection: NSLineSweepDirection; movementDirection: NSLineMovementDirection; remainingRect: NSRectPointer): NSRect; message 'lineFragmentRectForProposedRect:sweepDirection:movementDirection:remainingRect:';
function isSimpleRectangularTextContainer: Boolean; message 'isSimpleRectangularTextContainer';
function containsPoint(point: NSPoint): Boolean; message 'containsPoint:';
{ Adopted Protocols }
procedure encodeWithCoder(aCoder: NSCoder);
function initWithCoder(aDecoder: NSCoder): id;
end;
{$endif}
{$endif}
|