API  0.9.10
CPText Class Reference

#import <CPText.h>

+ Inheritance diagram for CPText:

Instance Methods

(void) - changeFont:
 
(void) - copy:
 
(void) - copyFont:
 
(void) - delete:
 
(void) - encodeWithCoder:
 
(CPFont- font:
 
(id) - initWithCoder:
 
(BOOL) - isEditable
 
(BOOL) - isHorizontallyResizable
 
(BOOL) - isRichText
 
(BOOL) - isRulerVisible
 
(BOOL) - isSelectable
 
(BOOL) - isVerticallyResizable
 
(CGSize) - maxSize
 
(CGSize) - minSize
 
(void) - paste:
 
(void) - pasteFont:
 
(void) - replaceCharactersInRange:withString:
 
(void) - scrollRangeToVisible:
 
(void) - selectedAll:
 
(CPRange) - selectedRange
 
(void) - setEditable:
 
(void) - setFont:
 
(void) - setFont:range:
 
(void) - setHorizontallyResizable:
 
(void) - setMaxSize:
 
(void) - setMinSize:
 
(void) - setRichText:
 
(void) - setSelectable:
 
(void) - setString:
 
(void) - setUsesFontPanel:
 
(void) - setVerticallyResizable:
 
(CPString- string
 
(void) - underline:
 
(BOOL) - usesFontPanel
 
- Instance Methods inherited from CPView
(BOOL) - acceptsFirstMouse:
 
(void) - addSubview:
 
(void) - addSubview:positioned:relativeTo:
 
(void) - addTrackingArea:
 
(CGRect) - adjustScroll:
 
(float) - alphaValue
 
(CAAnimation- animationForKey:
 
(CPDictionary- animations
 
(id) - animator
 
(BOOL) - autoresizesSubviews
 
(unsigned) - autoresizingMask
 
(BOOL) - autoscroll:
 
(CPColor- backgroundColor
 
(BOOL) - becomeFirstResponder
 
(CGRect) - bounds
 
(CGPoint) - boundsOrigin
 
(CGSize) - boundsSize
 
(BOOL) - canBecomeKeyView
 
(CGPoint) - center
 
(BOOL) - clipsToBounds
 
(CGPoint) - convertPoint:fromView:
 
(CGPoint) - convertPoint:toView:
 
(CGPoint) - convertPointFromBase:
 
(CGPoint) - convertPointToBase:
 
(CGRect) - convertRect:fromView:
 
(CGRect) - convertRect:toView:
 
(CGRect) - convertRectFromBase:
 
(CGRect) - convertRectToBase:
 
(CGSize) - convertSize:fromView:
 
(CGSize) - convertSize:toView:
 
(CPView- createEphemeralSubviewNamed:
 
(CPString- debug_description
 
(void) - didAddSubview:
 
(void) - display
 
(void) - displayIfNeeded
 
(void) - displayIfNeededInRect:
 
(void) - displayRect:
 
(void) - displayRectIgnoringOpacity:inContext:
 
(void) - dragImage:at:offset:event:pasteboard:source:slideBack:
 
(void) - dragView:at:offset:event:pasteboard:source:slideBack:
 
(void) - drawRect:
 
(CPAppearance- effectiveAppearance
 
(CPMenuItem- enclosingMenuItem
 
(CPScrollView- enclosingScrollView
 
(BOOL) - enterFullScreenMode
 
(BOOL) - enterFullScreenMode:withOptions:
 
(CPView- ephemeralSubviewNamed:
 
(void) - exitFullScreenMode
 
(void) - exitFullScreenModeWithOptions:
 
(CGRect) - frame
 
(CGPoint) - frameOrigin
 
(CGRect) - frameRectOfView:inSuperviewSize:
 
(CGSize) - frameSize
 
(CGRect) - frameWithNewSuperviewSize:
 
(BOOL) - hasCustomDrawRect
 
(BOOL) - hasCustomLayoutSubviews
 
(CPView- hitTest:
 
(BOOL) - hitTests
 
(id) - init
 
(id) - initWithFrame:
 
(BOOL) - inLiveResize
 
(BOOL) - isDescendantOf:
 
(BOOL) - isFlipped
 
(BOOL) - isHidden
 
(BOOL) - isHiddenOrHasHiddenAncestor
 
(BOOL) - isInFullScreenMode
 
(BOOL) - isOpaque
 
(CALayer- layer
 
(void) - layout
 
(CPView- layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:
 
(void) - layoutIfNeeded
 
(void) - layoutSubviews
 
(void) - lockFocus
 
(CPMenu- menuForEvent:
 
(void) - mouseDown:
 
(BOOL) - mouseDownCanMoveWindow
 
(BOOL) - needsDisplay
 
(BOOL) - needsLayout
 
(BOOL) - needsPanelToBecomeKey
 
(CPView- nextKeyView
 
(CPView- nextValidKeyView
 
(void) - objectDidChangeTheme
 
(BOOL) - performKeyEquivalent:
 
(BOOL) - postsBoundsChangedNotifications
 
(BOOL) - postsFrameChangedNotifications
 
(CPView- previousKeyView
 
(CPView- previousValidKeyView
 
(CGRect) - rectForEphemeralSubviewNamed:
 
(void) - reflectScrolledClipView:
 
(CPArray) - registeredDraggedTypes
 
(void) - registerForDraggedTypes:
 
(void) - removeAllTrackingAreas
 
(void) - removeFromSuperview
 
(void) - removeTrackingArea:
 
(void) - replaceSubview:with:
 
(BOOL) - resignFirstResponder
 
(void) - resizeSubviewsWithOldSize:
 
(void) - resizeWithOldSuperviewSize:
 
(void) - rightMouseDown:
 
(CGSize) - scaleSize
 
(void) - scaleUnitSquareToSize:
 
(void) - scrollClipView:toPoint:
 
(void) - scrollPoint:
 
(void) - scrollRect:by:
 
(BOOL) - scrollRectToVisible:
 
(void) - setAlphaValue:
 
(void) - setAnimations:
 
(void) - setAppearance:
 
(void) - setAutoresizesSubviews:
 
(void) - setAutoresizingMask:
 
(void) - setBackgroundColor:
 
(void) - setBounds:
 
(void) - setBoundsOrigin:
 
(void) - setBoundsSize:
 
(void) - setCenter:
 
(void) - setClipsToBounds:
 
(void) - setFrame:
 
(void) - setFrameOrigin:
 
(void) - setFrameSize:
 
(void) - setHidden:
 
(void) - setHitTests:
 
(void) - setLayer:
 
(void) - setNeedsDisplay:
 
(void) - setNeedsDisplayInRect:
 
(void) - setNeedsLayout
 
(void) - setNeedsLayout:
 
(void) - setNextKeyView:
 
(void) - setPostsBoundsChangedNotifications:
 
(void) - setPostsFrameChangedNotifications:
 
(void) - setScaleSize:
 
(void) - setSubviews:
 
(void) - setTag:
 
(void) - setThemeClass:
 
(BOOL) - setThemeState:
 
(void) - setToolTip:
 
(void) - setValue:forThemeAttribute:
 
(void) - setValue:forThemeAttribute:inState:
 
(void) - setWantsLayer:
 
(CPArray) - subviews
 
(CPView- superview
 
(CPInteger) - tag
 
(void) - unlockFocus
 
(void) - unregisterDraggedTypes
 
(BOOL) - unsetThemeState:
 
(void) - updateTrackingAreas
 
(void) - viewDidEndLiveResize
 
(void) - viewDidHide
 
(void) - viewDidLayout
 
(void) - viewDidMoveToSuperview
 
(void) - viewDidMoveToWindow
 
(void) - viewDidUnhide
 
(void) - viewWillDraw
 
(void) - viewWillLayout
 
(void) - viewWillMoveToSuperview:
 
(void) - viewWillMoveToWindow:
 
(void) - viewWillStartLiveResize
 
(CPView- viewWithTag:
 
(CGRect) - visibleRect
 
(BOOL) - wantsLayer
 
(void) - willRemoveSubview:
 
(CPWindow- window
 

Additional Inherited Members

- Class Methods inherited from CPView
(Class) + animatorClass
 
(CAAnimation+ defaultAnimationForKey:
 
(CPMenu+ defaultMenu
 
(void) + initialize
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 

Detailed Description

Definition at line 2 of file CPText.h.

Method Documentation

◆ changeFont:()

- (void) changeFont: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 134 of file CPText.j.

◆ copy:()

- (void) copy: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 139 of file CPText.j.

◆ copyFont:()

- (void) copyFont: (id)  sender
implementation

Definition at line 181 of file CPText.j.

◆ delete:()

- (void) delete: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 186 of file CPText.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Archives the view to a coder.

Parameters
aCoderthe object into which the view's data will be archived.

Reimplemented from CPView.

Reimplemented in CPTextView.

Provided by category CPText(CPCoding).

Definition at line 340 of file CPText.j.

◆ font:()

- (CPFont) font: (CPFont aFont
implementation

Definition at line 191 of file CPText.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the view from an archive.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized view

Reimplemented from CPView.

Reimplemented in CPTextView.

Provided by category CPText(CPCoding).

Definition at line 326 of file CPText.j.

◆ isEditable()

- (BOOL) isEditable
implementation

Synthesized accessor method.

Reimplemented in CPTextView.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 355 of file CPText.j.

◆ isHorizontallyResizable()

- (BOOL) isHorizontallyResizable
implementation

Reimplemented in CPTextView.

Definition at line 198 of file CPText.j.

◆ isRichText()

- (BOOL) isRichText
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 387 of file CPText.j.

◆ isRulerVisible()

- (BOOL) isRulerVisible
implementation

Reimplemented in CPTextView.

Definition at line 205 of file CPText.j.

◆ isSelectable()

- (BOOL) isSelectable
implementation

Synthesized accessor method.

Reimplemented in CPTextView.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 371 of file CPText.j.

◆ isVerticallyResizable()

- (BOOL) isVerticallyResizable
implementation

Reimplemented in CPTextView.

Definition at line 212 of file CPText.j.

◆ maxSize()

- (CGSize) maxSize
implementation

Reimplemented in CPTextView.

Definition at line 219 of file CPText.j.

◆ minSize()

- (CGSize) minSize
implementation

Reimplemented in CPTextView.

Definition at line 226 of file CPText.j.

◆ paste:()

- (void) paste: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 173 of file CPText.j.

◆ pasteFont:()

- (void) pasteFont: (id)  sender
implementation

Definition at line 232 of file CPText.j.

◆ replaceCharactersInRange:withString:()

- (void) replaceCharactersInRange: (CPRange)  aRange
withString: (CPString aString 
implementation

Reimplemented in CPTextView.

Definition at line 237 of file CPText.j.

◆ scrollRangeToVisible:()

- (void) scrollRangeToVisible: (CPRange)  aRange
implementation

Reimplemented in CPTextView.

Definition at line 242 of file CPText.j.

◆ selectedAll:()

- (void) selectedAll: (id)  sender
implementation

Definition at line 247 of file CPText.j.

◆ selectedRange()

- (CPRange) selectedRange
implementation

Reimplemented in CPTextView.

Definition at line 252 of file CPText.j.

◆ setEditable:()

- (void) setEditable: (BOOL)  flag
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 124 of file CPText.j.

◆ setFont:()

- (void) setFont: (CPFont aFont
implementation

Reimplemented in CPTextView.

Definition at line 259 of file CPText.j.

◆ setFont:range:()

- (void) setFont: (CPFont aFont
range: (CPRange)  aRange 
implementation

Reimplemented in CPTextView.

Definition at line 264 of file CPText.j.

◆ setHorizontallyResizable:()

- (void) setHorizontallyResizable: (BOOL)  flag
implementation

Reimplemented in CPTextView.

Definition at line 269 of file CPText.j.

◆ setMaxSize:()

- (void) setMaxSize: (CGSize)  aSize
implementation

Reimplemented in CPTextView.

Definition at line 274 of file CPText.j.

◆ setMinSize:()

- (void) setMinSize: (CGSize)  aSize
implementation

Reimplemented in CPTextView.

Definition at line 279 of file CPText.j.

◆ setRichText:()

- (void) setRichText: (BOOL)  aValue
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 395 of file CPText.j.

◆ setSelectable:()

- (void) setSelectable: (BOOL)  flag
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 114 of file CPText.j.

◆ setString:()

- (void) setString: (CPString aString
implementation

Definition at line 284 of file CPText.j.

◆ setUsesFontPanel:()

- (void) setUsesFontPanel: (BOOL)  flag
implementation

Reimplemented in CPTextView.

Definition at line 289 of file CPText.j.

◆ setVerticallyResizable:()

- (void) setVerticallyResizable: (BOOL)  flag
implementation

Reimplemented in CPTextView.

Definition at line 294 of file CPText.j.

◆ string()

- (CPString) string
implementation

Reimplemented in CPTextView.

Definition at line 299 of file CPText.j.

◆ underline:()

- (void) underline: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 306 of file CPText.j.

◆ usesFontPanel()

- (BOOL) usesFontPanel
implementation

Reimplemented in CPTextView.

Definition at line 311 of file CPText.j.


The documentation for this class was generated from the following files: