This file is indexed.

/usr/share/GNUstep/Documentation/Developer/Gui/Reference/NSTextContainer.html is in gnustep-gui-doc 0.24.0-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
    <title>NSTextContainer</title>
  </head>
  <body>
    <font face="serif">
    <a href="Gui.html">Up</a>
    <br />
    <h1><a name="title$NSTextContainer">NSTextContainer</a></h1>
    <h3>Authors</h3>
    <dl>
      <dt>Alexander Malmberg (<a href="mailto:alexander@malmberg.org"><code>alexander@malmberg.org</code></a>)</dt>
      <dd>
      </dd>
      <dt>Jonathan Gapen (<a href="mailto:jagapen@smithlab.chem.wisc.edu"><code>jagapen@smithlab.chem.wisc.edu</code></a>)</dt>
      <dd>
      </dd>
    </dl>
    <p><b>Copyright:</b> (C) 1999 Free Software Foundation, Inc.</p>

        <div>
    </div>

          <h1><a name="001000000000">
        Software documentation for the NSTextContainer class
      </a></h1>
    <h2><a name="class$NSTextContainer">NSTextContainer</a> : NSObject</h2>
    <blockquote class="declared">
      <dl>
        <dt><b>Declared in:</b></dt>
        <dd>AppKit/NSTextContainer.h</dd>
      </dl>
    </blockquote>
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
          <em>Description forthcoming.</em>
        
    </div>
    <hr width="50%" align="left" />
    <a href="#_NSTextContainer_ivars">Instance Variables</a>
    <br/><br/>
    <b>Method summary</b>
    <ul>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-containerSize">-containerSize</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-containsPoint$">-containsPoint:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-heightTracksTextView">-heightTracksTextView</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-initWithContainerSize$">-initWithContainerSize:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-isSimpleRectangularTextContainer">-isSimpleRectangularTextContainer</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-layoutManager">-layoutManager</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-lineFragmentPadding">-lineFragmentPadding</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-lineFragmentRectForProposedRect$sweepDirection$movementDirection$remainingRect$">-lineFragmentRectForProposedRect:sweepDirection:movementDirection:remainingRect:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-replaceLayoutManager$">-replaceLayoutManager:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-setContainerSize$">-setContainerSize:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-setHeightTracksTextView$">-setHeightTracksTextView:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-setLayoutManager$">-setLayoutManager:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-setLineFragmentPadding$">-setLineFragmentPadding:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-setTextView$">-setTextView:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-setWidthTracksTextView$">-setWidthTracksTextView:</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-textView">-textView</a></li>
      <li><a rel="gsdoc" href="NSTextContainer.html#method$NSTextContainer-widthTracksTextView">-widthTracksTextView</a></li>
    </ul>
    <hr width="50%" align="left" />
<div class="method">
    <h3><a name="method$NSTextContainer-containerSize">containerSize&nbsp;</a></h3>
    - (NSSize) <b>containerSize</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Description forthcoming.</em>
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-containsPoint$">containsPoint:&nbsp;</a></h3>
    - (BOOL) <b>containsPoint:</b> (NSPoint)aPoint;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Returns <code>YES</code> if <var>aPoint</var> is
            inside the region. Subclasses define regions by
            overriding this method.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-heightTracksTextView">heightTracksTextView&nbsp;</a></h3>
    - (BOOL) <b>heightTracksTextView</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Description forthcoming.</em>
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-initWithContainerSize$">initWithContainerSize:&nbsp;</a></h3>
    - (id) <b>initWithContainerSize:</b> (NSSize)aSize;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Initializes a new instance and sets the
            container size to <var>aSize</var>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-isSimpleRectangularTextContainer">isSimpleRectangularTextContainer&nbsp;</a></h3>
    - (BOOL) <b>isSimpleRectangularTextContainer</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Querying the region <br /> Returns
            <code>YES</code> if the region for this container is
            a rectangle as large as the container size, otherwise
            <code>NO</code>. For simple rectangular regions, the
            text system can apply certain optimizations.
            NSTextContainer always returns
            <code>YES</code>. Subclasses that define more
            complex regions must return <code>NO</code>.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-layoutManager">layoutManager&nbsp;</a></h3>
    - (GSLayoutManager*) <b>layoutManager</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Returns the layout manager of this text container.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-lineFragmentPadding">lineFragmentPadding&nbsp;</a></h3>
    - (CGFloat) <b>lineFragmentPadding</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Description forthcoming.</em>
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-lineFragmentRectForProposedRect$sweepDirection$movementDirection$remainingRect$">lineFragmentRectForProposedRect:&nbsp;sweepDirection:&nbsp;movementDirection:&nbsp;remainingRect:&nbsp;</a></h3>
    - (NSRect) <b>lineFragmentRectForProposedRect:</b> (NSRect)proposedRect<b> sweepDirection:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSLineSweepDirection">NSLineSweepDirection</a>)sweepDir<b> movementDirection:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSLineMovementDirection">NSLineMovementDirection</a>)moveDir<b> remainingRect:</b> (NSRect*)remainingRect;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            This is the main method used by the text system for
            querying the region and flowing text in it. It
            takes a proposed line fragment rectangle and, if
            possible, splits it into a valid line fragment
            rectangle, and a remaining rectangle that can be
            used in subsequent calls to this method.
            <var>sweepDir</var> is the direction that text moves
            inside the lines, and <var>moveDir</var> is the
            direction lines move in, or NSLineDoesntMove if
            the line may not move. The line sweep and line movement
            may not both be in the same dimension, ie. both be
            vertical, or both be horizontal. The method
            returns the first (according to the sweep
            direction) valid line fragment rectangle in the
            proposed rectangle. This line fragment rectangle
            is a sub-rectangle of the proposed rectangle in the
            sweep direction, and has the same size in the other
            direction. (Ie. if the sweep direction is left,
            the line fragment rectangle must have the same height
            as the proposed rectangle.) If there is no valid line
            fragment rectangle in the proposed rectangle, the
            proposed rectangle may be moved in the line
            movement direction until there is one. If no valid
            line fragment rectangle can be returned, the method
            returns NSZeroRect. The remaining rectangle should
            be set to the potentially valid part of the proposed
            rectangle, after moving in the line movement
            direction, that remains after the first line
            fragment rectangle. The proposed rectangle may be
            any rectangle; in particular, it may extend outside the
            container size. The remaining rectangle does not
            have to be or contain a valid line fragment rectangle.
            Subclasses define regions by overriding this
            method. Note: The TextContainerExample in the text
            system example collection (TODO: link) contains an
            example implementation of an NSTextContainer
            subclass that defiens a non-trivial region, as
            well as an interactive demonstration of this method.
            It can also be used as a simple test of custom
            subclasses. Note: Although a correct
            NSTextContainer implementation must handle
            all line sweep and movement directions, the current
            standard typesetter will only call this method
            with sweep right, and no movement or movement down.
            Relying on this makes writing a subclass easier,
            but it is <em>not</em> safe.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-replaceLayoutManager$">replaceLayoutManager:&nbsp;</a></h3>
    - (void) <b>replaceLayoutManager:</b> (GSLayoutManager*)aLayoutManager;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Managing the text network <br /> A text container
            may be attached to one layout manager and one text
            view. The text container is retained by the layout
            manager, and retains the text view. <br />
            Replaces the layout manager of this text container
            with <var>aLayoutManager</var>. This is done without
            changing the rest of the text network, so
            <var>aLayoutManager</var> will be connected to the
            text storage and text containers that the current
            layout manager is connected to.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-setContainerSize$">setContainerSize:&nbsp;</a></h3>
    - (void) <b>setContainerSize:</b> (NSSize)aSize;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            The container size <br /> A text container has a
            container size. The region defined by the text
            container must be a subset of the rectangle of
            this size with it&apos;s top-left corner in the origin.
            Subclasses do not have to support arbitrary
            sizes, and may choose to ignore
            <a rel="gsdoc" href="#method$NSTextContainer-setContainerSize$">
              -setContainerSize:
            </a>

            completely. However, the size returned by
            <a rel="gsdoc" href="#method$NSTextContainer-containerSize">
              -containerSize
            </a>

            must be valid.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-setHeightTracksTextView$">setHeightTracksTextView:&nbsp;</a></h3>
    - (void) <b>setHeightTracksTextView:</b> (BOOL)flag;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Description forthcoming.</em>
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-setLayoutManager$">setLayoutManager:&nbsp;</a></h3>
    - (void) <b>setLayoutManager:</b> (GSLayoutManager*)aLayoutManager;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            This method should not be called directly. It is
            called by the layout manager when the layout manager
            of a text container changes.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-setLineFragmentPadding$">setLineFragmentPadding:&nbsp;</a></h3>
    - (void) <b>setLineFragmentPadding:</b> (CGFloat)aFloat;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Line fragment padding <br /> The line fragment padding
            is an amount of space left empty at each end of a line
            fragment rectangle by the standard typesetter. The
            default is 0.0.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-setTextView$">setTextView:&nbsp;</a></h3>
    - (void) <b>setTextView:</b> (<a rel="gsdoc" href="NSTextView.html#class$NSTextView">NSTextView</a>*)aTextView;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Sets the NSTextView for this text container. Note that
            a text view should be attached to a text container only
            if the text container is attached to a layout manager
            that can handle text views (eg. NSLayoutManager). The
            text view is retained by the text container.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-setWidthTracksTextView$">setWidthTracksTextView:&nbsp;</a></h3>
    - (void) <b>setWidthTracksTextView:</b> (BOOL)flag;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Automatic resizing <br /> A text container can be
            set to automatically track the width and/or height of
            its NSTextView (TODO: frame? bounds?). For more
            information, see the documentation on
            automatic resizing in NSTextView. (TODO: link)
            When enabled, the automatic resizing is done by
            calling
            <a rel="gsdoc" href="#method$NSTextContainer-setContainerSize$">[NSTextContainer -setContainerSize:]</a>
 with the new size whenever the text view is resized.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-textView">textView&nbsp;</a></h3>
    - (<a rel="gsdoc" href="NSTextView.html#class$NSTextView">NSTextView</a>*) <b>textView</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            Returns the NSTextView attached to this text
            container, or <code>nil</code> if there is none.
          
    </div>
    <hr width="25%" align="left" />
</div>
<div class="method">
    <h3><a name="method$NSTextContainer-widthTracksTextView">widthTracksTextView&nbsp;</a></h3>
    - (BOOL) <b>widthTracksTextView</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Description forthcoming.</em>
          
    </div>
    <hr width="25%" align="left" />
</div>
<a name="_NSTextContainer_ivars"/>    <br/><hr width="50%" align="left" />
    <h2>Instance Variables for NSTextContainer Class</h2>
    <h3><a name="ivariable$NSTextContainer*_containerRect">_containerRect</a></h3>
    @protected NSRect <b>_containerRect</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$NSTextContainer*_heightTracksTextView">_heightTracksTextView</a></h3>
    @protected BOOL <b>_heightTracksTextView</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$NSTextContainer*_layoutManager">_layoutManager</a></h3>
    @protected id <b>_layoutManager</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$NSTextContainer*_lineFragmentPadding">_lineFragmentPadding</a></h3>
    @protected CGFloat <b>_lineFragmentPadding</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$NSTextContainer*_observingFrameChanges">_observingFrameChanges</a></h3>
    @protected BOOL <b>_observingFrameChanges</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$NSTextContainer*_textView">_textView</a></h3>
    @protected id <b>_textView</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <h3><a name="ivariable$NSTextContainer*_widthTracksTextView">_widthTracksTextView</a></h3>
    @protected BOOL <b>_widthTracksTextView</b>;<br />
    <div class="availability">
<b>Availability:</b> Gui 10.0.0<br />
</div>
<br />
    <div class="desc">
      
            <em>Warning</em> the underscore at the start of the
            name of this instance variable indicates that, even
            though it is not technically <em>private</em>, it is
            intended for internal use within the package, and
            you should not use the variable in other code.
          
    </div>
    <hr width="25%" align="left" />
    <br/><hr width="50%" align="left" /><br/>
    <br />
    <a href="Gui.html">Up</a>
    </font>
</body>
</html>