API  1.0.0
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) - 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) - setDOMClassName:
 
(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
 
(CPString+ defaultThemeClass
 
(void) + initialize
 
(BOOL) + isHighDPIDrawingEnabled
 
(CPSet) + keyPathsForValuesAffectingBounds
 
(CPSet) + keyPathsForValuesAffectingFrame
 
(void) + setHighDPIDrawingEnabled:
 
(CPDictionary+ themeAttributes
 

Detailed Description

Definition at line 2 of file CPText.h.

Method Documentation

◆ changeFont:()

- (void) changeFont: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 137 of file CPText.j.

◆ copy:()

- (void) copy: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 142 of file CPText.j.

◆ copyFont:()

- (void) copyFont: (id)  sender
implementation

Definition at line 189 of file CPText.j.

◆ delete:()

- (void) delete: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 194 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 348 of file CPText.j.

◆ font:()

- (CPFont) font: (CPFont aFont
implementation

Definition at line 199 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 334 of file CPText.j.

◆ isEditable()

- (BOOL) isEditable
implementation

Synthesized accessor method.

Reimplemented in CPTextView.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 363 of file CPText.j.

◆ isHorizontallyResizable()

- (BOOL) isHorizontallyResizable
implementation

Reimplemented in CPTextView.

Definition at line 206 of file CPText.j.

◆ isRichText()

- (BOOL) isRichText
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 395 of file CPText.j.

◆ isRulerVisible()

- (BOOL) isRulerVisible
implementation

Reimplemented in CPTextView.

Definition at line 213 of file CPText.j.

◆ isSelectable()

- (BOOL) isSelectable
implementation

Synthesized accessor method.

Reimplemented in CPTextView.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 379 of file CPText.j.

◆ isVerticallyResizable()

- (BOOL) isVerticallyResizable
implementation

Reimplemented in CPTextView.

Definition at line 220 of file CPText.j.

◆ maxSize()

- (CGSize) maxSize
implementation

Reimplemented in CPTextView.

Definition at line 227 of file CPText.j.

◆ minSize()

- (CGSize) minSize
implementation

Reimplemented in CPTextView.

Definition at line 234 of file CPText.j.

◆ paste:()

- (void) paste: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 181 of file CPText.j.

◆ pasteFont:()

- (void) pasteFont: (id)  sender
implementation

Definition at line 240 of file CPText.j.

◆ replaceCharactersInRange:withString:()

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

Reimplemented in CPTextView.

Definition at line 245 of file CPText.j.

◆ scrollRangeToVisible:()

- (void) scrollRangeToVisible: (CPRange)  aRange
implementation

Reimplemented in CPTextView.

Definition at line 250 of file CPText.j.

◆ selectedAll:()

- (void) selectedAll: (id)  sender
implementation

Definition at line 255 of file CPText.j.

◆ selectedRange()

- (CPRange) selectedRange
implementation

Reimplemented in CPTextView.

Definition at line 260 of file CPText.j.

◆ setEditable:()

- (void) setEditable: (BOOL)  flag
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 127 of file CPText.j.

◆ setFont:()

- (void) setFont: (CPFont aFont
implementation

Reimplemented in CPTextView.

Definition at line 267 of file CPText.j.

◆ setFont:range:()

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

Reimplemented in CPTextView.

Definition at line 272 of file CPText.j.

◆ setHorizontallyResizable:()

- (void) setHorizontallyResizable: (BOOL)  flag
implementation

Reimplemented in CPTextView.

Definition at line 277 of file CPText.j.

◆ setMaxSize:()

- (void) setMaxSize: (CGSize)  aSize
implementation

Reimplemented in CPTextView.

Definition at line 282 of file CPText.j.

◆ setMinSize:()

- (void) setMinSize: (CGSize)  aSize
implementation

Reimplemented in CPTextView.

Definition at line 287 of file CPText.j.

◆ setRichText:()

- (void) setRichText: (BOOL)  aValue
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 403 of file CPText.j.

◆ setSelectable:()

- (void) setSelectable: (BOOL)  flag
implementation

Synthesized accessor method.

Provided by category CPText(CPSynthesizedAccessors).

Definition at line 117 of file CPText.j.

◆ setString:()

- (void) setString: (CPString aString
implementation

Definition at line 292 of file CPText.j.

◆ setUsesFontPanel:()

- (void) setUsesFontPanel: (BOOL)  flag
implementation

Reimplemented in CPTextView.

Definition at line 297 of file CPText.j.

◆ setVerticallyResizable:()

- (void) setVerticallyResizable: (BOOL)  flag
implementation

Reimplemented in CPTextView.

Definition at line 302 of file CPText.j.

◆ string()

- (CPString) string
implementation

Reimplemented in CPTextView.

Definition at line 307 of file CPText.j.

◆ underline:()

- (void) underline: (id)  sender
implementation

Reimplemented in CPTextView.

Definition at line 314 of file CPText.j.

◆ usesFontPanel()

- (BOOL) usesFontPanel
implementation

Reimplemented in CPTextView.

Definition at line 319 of file CPText.j.


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