#[repr(transparent)]pub struct CTParagraphStyleSpecifier(pub u32);CTParagraphStyle only.Expand description
These constants are used to query and modify the CTParagraphStyle object.
Each specifier has a type and a default value associated with it. The type must always be observed when setting or fetching the value from the CTParagraphStyle object. In addition, some specifiers affect the behavior of both the framesetter and the typesetter, and others only affect the behavior of the framesetter; this is also noted below.
The text alignment. Natural text alignment is realized as left or right alignment, depending on the line sweep direction of the first script contained in the paragraph.
Type: CTTextAlignment Default: kCTTextAlignmentNatural Application: CTFramesetter
The distance in points from the leading margin of a frame to the beginning of the paragraph’s first line. This value is always nonnegative.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The distance in points from the leading margin of a text container to the beginning of lines other than the first. This value is always nonnegative.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The distance in points from the margin of a frame to the end of lines. If positive, this value is the distance from the leading margin (for example, the left margin in left-to-right text). If 0 or negative, it’s the distance from the trailing margin.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The CTTextTab objects, sorted by location, that define the tab stops for the paragraph style.
Type: CFArray of CTTextTabRef Default: 12 left-aligned tabs, spaced by 28.0 points Application: CTFramesetter, CTTypesetter
The document-wide default tab interval. Tabs after the last specified by kCTParagraphStyleSpecifierTabStops are placed at integer multiples of this distance (if positive).
Type: CGFloat Default: 0.0 Application: CTFramesetter, CTTypesetter
The mode that should be used to break lines when laying out the paragraph’s text.
Type: CTLineBreakMode Default: kCTLineBreakByWordWrapping Application: CTFramesetter
The line height multiple. The natural line height of the receiver is multiplied by this factor (if positive) before being constrained by minimum and maximum line height.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The maximum height that any line in the frame will occupy, regardless of the font size or size of any attached graphic. Glyphs and graphics exceeding this height will overlap neighboring lines. A maximum height of 0 implies no line height limit. This value is always nonnegative.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The minimum height that any line in the frame will occupy, regardless of the font size or size of any attached graphic. This value is always nonnegative.
Type: CGFloat Default: 0.0 Application: CTFramesetter
Deprecated. Use kCTParagraphStyleSpecifierMaximumLineSpacing, kCTParagraphStyleSpecifierMinimumLineSpacing, and kCTParagraphStyleSpecifierLineSpacingAdjustment to control space between lines.
The space added at the end of the paragraph to separate it from the following paragraph. This value is always nonnegative and is determined by adding the previous paragraph’s kCTParagraphStyleSpecifierParagraphSpacing setting and the current paragraph’s kCTParagraphStyleSpecifierParagraphSpacingBefore setting.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The distance between the paragraph’s top and the beginning of its text content.
Type: CGFloat Default: 0.0 Application: CTFramesetter
The base writing direction of the lines.
Type: CTWritingDirection Default: kCTWritingDirectionNatural Application: CTFramesetter, CTTypesetter
The maximum space in points between lines within the paragraph (commonly known as leading).
Type: CGFloat Default: some large number. Application: CTFramesetter
The minimum space in points between lines within the paragraph (commonly known as leading).
Type: CGFloat Default: 0.0 Application: CTFramesetter
The space in points added between lines within the paragraph (commonly known as leading).
Type: CGFloat Default: 0.0 Application: CTFramesetter
The options controlling the alignment of the line edges with the leading and trailing margins.
Type: CTLineBoundsOptions Default: 0 (no options) Application: CTTypesetter
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl CTParagraphStyleSpecifier
impl CTParagraphStyleSpecifier
pub const Alignment: Self
pub const FirstLineHeadIndent: Self
pub const HeadIndent: Self
pub const TailIndent: Self
pub const TabStops: Self
pub const DefaultTabInterval: Self
pub const LineBreakMode: Self
pub const LineHeightMultiple: Self
pub const MaximumLineHeight: Self
pub const MinimumLineHeight: Self
pub const LineSpacing: Self
pub const ParagraphSpacing: Self
pub const ParagraphSpacingBefore: Self
pub const BaseWritingDirection: Self
pub const MaximumLineSpacing: Self
pub const MinimumLineSpacing: Self
pub const LineSpacingAdjustment: Self
pub const LineBoundsOptions: Self
pub const Count: Self
Trait Implementations§
Source§impl Clone for CTParagraphStyleSpecifier
impl Clone for CTParagraphStyleSpecifier
Source§fn clone(&self) -> CTParagraphStyleSpecifier
fn clone(&self) -> CTParagraphStyleSpecifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CTParagraphStyleSpecifier
impl Debug for CTParagraphStyleSpecifier
Source§impl Encode for CTParagraphStyleSpecifier
Available on crate feature objc2 only.
impl Encode for CTParagraphStyleSpecifier
objc2 only.Source§impl Hash for CTParagraphStyleSpecifier
impl Hash for CTParagraphStyleSpecifier
Source§impl Ord for CTParagraphStyleSpecifier
impl Ord for CTParagraphStyleSpecifier
Source§fn cmp(&self, other: &CTParagraphStyleSpecifier) -> Ordering
fn cmp(&self, other: &CTParagraphStyleSpecifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for CTParagraphStyleSpecifier
impl PartialOrd for CTParagraphStyleSpecifier
Source§impl RefEncode for CTParagraphStyleSpecifier
Available on crate feature objc2 only.
impl RefEncode for CTParagraphStyleSpecifier
objc2 only.