Struct objc2_app_kit::NSMutableParagraphStyle
source · #[repr(C)]pub struct NSMutableParagraphStyle { /* private fields */ }
Available on crate feature
NSParagraphStyle
only.Implementations§
source§impl NSMutableParagraphStyle
impl NSMutableParagraphStyle
pub unsafe fn lineSpacing(&self) -> CGFloat
pub unsafe fn setLineSpacing(&self, line_spacing: CGFloat)
pub unsafe fn paragraphSpacing(&self) -> CGFloat
pub unsafe fn setParagraphSpacing(&self, paragraph_spacing: CGFloat)
pub unsafe fn alignment(&self) -> NSTextAlignment
Available on crate feature
NSText
only.pub unsafe fn setAlignment(&self, alignment: NSTextAlignment)
Available on crate feature
NSText
only.pub unsafe fn firstLineHeadIndent(&self) -> CGFloat
pub unsafe fn setFirstLineHeadIndent(&self, first_line_head_indent: CGFloat)
pub unsafe fn headIndent(&self) -> CGFloat
pub unsafe fn setHeadIndent(&self, head_indent: CGFloat)
pub unsafe fn tailIndent(&self) -> CGFloat
pub unsafe fn setTailIndent(&self, tail_indent: CGFloat)
pub unsafe fn lineBreakMode(&self) -> NSLineBreakMode
pub unsafe fn setLineBreakMode(&self, line_break_mode: NSLineBreakMode)
pub unsafe fn minimumLineHeight(&self) -> CGFloat
pub unsafe fn setMinimumLineHeight(&self, minimum_line_height: CGFloat)
pub unsafe fn maximumLineHeight(&self) -> CGFloat
pub unsafe fn setMaximumLineHeight(&self, maximum_line_height: CGFloat)
pub unsafe fn baseWritingDirection(&self) -> NSWritingDirection
Available on crate feature
NSText
only.pub unsafe fn setBaseWritingDirection( &self, base_writing_direction: NSWritingDirection )
Available on crate feature
NSText
only.pub unsafe fn lineHeightMultiple(&self) -> CGFloat
pub unsafe fn setLineHeightMultiple(&self, line_height_multiple: CGFloat)
pub unsafe fn paragraphSpacingBefore(&self) -> CGFloat
pub unsafe fn setParagraphSpacingBefore( &self, paragraph_spacing_before: CGFloat )
pub unsafe fn hyphenationFactor(&self) -> c_float
pub unsafe fn setHyphenationFactor(&self, hyphenation_factor: c_float)
pub unsafe fn usesDefaultHyphenation(&self) -> bool
pub unsafe fn setUsesDefaultHyphenation(&self, uses_default_hyphenation: bool)
pub unsafe fn tabStops(&self) -> Retained<NSArray<NSTextTab>>
pub unsafe fn setTabStops(&self, tab_stops: Option<&NSArray<NSTextTab>>)
pub unsafe fn defaultTabInterval(&self) -> CGFloat
pub unsafe fn setDefaultTabInterval(&self, default_tab_interval: CGFloat)
pub unsafe fn allowsDefaultTighteningForTruncation(&self) -> bool
pub unsafe fn setAllowsDefaultTighteningForTruncation( &self, allows_default_tightening_for_truncation: bool )
pub unsafe fn addTabStop(&self, an_object: &NSTextTab)
pub unsafe fn removeTabStop(&self, an_object: &NSTextTab)
pub unsafe fn setParagraphStyle(&self, obj: &NSParagraphStyle)
pub unsafe fn tighteningFactorForTruncation(&self) -> c_float
pub unsafe fn setTighteningFactorForTruncation( &self, tightening_factor_for_truncation: c_float )
pub unsafe fn textBlocks(&self) -> Retained<NSArray<NSTextBlock>>
Available on crate feature
NSTextTable
only.pub unsafe fn setTextBlocks(&self, text_blocks: &NSArray<NSTextBlock>)
Available on crate feature
NSTextTable
only.pub unsafe fn textLists(&self) -> Retained<NSArray<NSTextList>>
Available on crate feature
NSTextList
only.pub unsafe fn setTextLists(&self, text_lists: &NSArray<NSTextList>)
Available on crate feature
NSTextList
only.pub unsafe fn headerLevel(&self) -> NSInteger
pub unsafe fn setHeaderLevel(&self, header_level: NSInteger)
pub unsafe fn lineBreakStrategy(&self) -> NSLineBreakStrategy
pub unsafe fn setLineBreakStrategy( &self, line_break_strategy: NSLineBreakStrategy )
Methods from Deref<Target = NSParagraphStyle>§
pub unsafe fn lineSpacing(&self) -> CGFloat
pub unsafe fn paragraphSpacing(&self) -> CGFloat
pub unsafe fn alignment(&self) -> NSTextAlignment
Available on crate feature
NSText
only.pub unsafe fn headIndent(&self) -> CGFloat
pub unsafe fn tailIndent(&self) -> CGFloat
pub unsafe fn firstLineHeadIndent(&self) -> CGFloat
pub unsafe fn minimumLineHeight(&self) -> CGFloat
pub unsafe fn maximumLineHeight(&self) -> CGFloat
pub unsafe fn lineBreakMode(&self) -> NSLineBreakMode
pub unsafe fn baseWritingDirection(&self) -> NSWritingDirection
Available on crate feature
NSText
only.pub unsafe fn lineHeightMultiple(&self) -> CGFloat
pub unsafe fn paragraphSpacingBefore(&self) -> CGFloat
pub unsafe fn hyphenationFactor(&self) -> c_float
pub unsafe fn usesDefaultHyphenation(&self) -> bool
pub unsafe fn tabStops(&self) -> Retained<NSArray<NSTextTab>>
pub unsafe fn defaultTabInterval(&self) -> CGFloat
pub unsafe fn allowsDefaultTighteningForTruncation(&self) -> bool
pub unsafe fn tighteningFactorForTruncation(&self) -> c_float
pub unsafe fn textBlocks(&self) -> Retained<NSArray<NSTextBlock>>
Available on crate feature
NSTextTable
only.pub unsafe fn textLists(&self) -> Retained<NSArray<NSTextList>>
Available on crate feature
NSTextList
only.pub unsafe fn headerLevel(&self) -> NSInteger
pub unsafe fn lineBreakStrategy(&self) -> NSLineBreakStrategy
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
only.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for NSMutableParagraphStyle
impl AsMut<AnyObject> for NSMutableParagraphStyle
source§impl AsMut<NSObject> for NSMutableParagraphStyle
impl AsMut<NSObject> for NSMutableParagraphStyle
source§impl AsMut<NSParagraphStyle> for NSMutableParagraphStyle
impl AsMut<NSParagraphStyle> for NSMutableParagraphStyle
source§fn as_mut(&mut self) -> &mut NSParagraphStyle
fn as_mut(&mut self) -> &mut NSParagraphStyle
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<AnyObject> for NSMutableParagraphStyle
impl AsRef<AnyObject> for NSMutableParagraphStyle
source§impl AsRef<NSObject> for NSMutableParagraphStyle
impl AsRef<NSObject> for NSMutableParagraphStyle
source§impl AsRef<NSParagraphStyle> for NSMutableParagraphStyle
impl AsRef<NSParagraphStyle> for NSMutableParagraphStyle
source§fn as_ref(&self) -> &NSParagraphStyle
fn as_ref(&self) -> &NSParagraphStyle
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<AnyObject> for NSMutableParagraphStyle
impl Borrow<AnyObject> for NSMutableParagraphStyle
source§impl Borrow<NSObject> for NSMutableParagraphStyle
impl Borrow<NSObject> for NSMutableParagraphStyle
source§impl Borrow<NSParagraphStyle> for NSMutableParagraphStyle
impl Borrow<NSParagraphStyle> for NSMutableParagraphStyle
source§fn borrow(&self) -> &NSParagraphStyle
fn borrow(&self) -> &NSParagraphStyle
Immutably borrows from an owned value. Read more
source§impl BorrowMut<AnyObject> for NSMutableParagraphStyle
impl BorrowMut<AnyObject> for NSMutableParagraphStyle
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for NSMutableParagraphStyle
impl BorrowMut<NSObject> for NSMutableParagraphStyle
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSParagraphStyle> for NSMutableParagraphStyle
impl BorrowMut<NSParagraphStyle> for NSMutableParagraphStyle
source§fn borrow_mut(&mut self) -> &mut NSParagraphStyle
fn borrow_mut(&mut self) -> &mut NSParagraphStyle
Mutably borrows from an owned value. Read more
source§impl ClassType for NSMutableParagraphStyle
impl ClassType for NSMutableParagraphStyle
§type Super = NSParagraphStyle
type Super = NSParagraphStyle
The superclass of this class. Read more
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSMutableParagraphStyle"
const NAME: &'static str = "NSMutableParagraphStyle"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for NSMutableParagraphStyle
impl Debug for NSMutableParagraphStyle
source§impl Deref for NSMutableParagraphStyle
impl Deref for NSMutableParagraphStyle
source§impl DerefMut for NSMutableParagraphStyle
impl DerefMut for NSMutableParagraphStyle
source§impl Hash for NSMutableParagraphStyle
impl Hash for NSMutableParagraphStyle
source§impl NSCoding for NSMutableParagraphStyle
impl NSCoding for NSMutableParagraphStyle
source§impl NSCopying for NSMutableParagraphStyle
impl NSCopying for NSMutableParagraphStyle
source§impl NSMutableCopying for NSMutableParagraphStyle
impl NSMutableCopying for NSMutableParagraphStyle
source§impl NSObjectProtocol for NSMutableParagraphStyle
impl NSObjectProtocol for NSMutableParagraphStyle
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for NSMutableParagraphStyle
impl PartialEq for NSMutableParagraphStyle
source§fn eq(&self, other: &NSMutableParagraphStyle) -> bool
fn eq(&self, other: &NSMutableParagraphStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSMutableParagraphStyle
impl RefEncode for NSMutableParagraphStyle
source§const ENCODING_REF: Encoding = <NSParagraphStyle as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSParagraphStyle as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSMutableParagraphStyle
impl Message for NSMutableParagraphStyle
impl StructuralPartialEq for NSMutableParagraphStyle
Auto Trait Implementations§
impl !Freeze for NSMutableParagraphStyle
impl !RefUnwindSafe for NSMutableParagraphStyle
impl !Send for NSMutableParagraphStyle
impl !Sync for NSMutableParagraphStyle
impl !Unpin for NSMutableParagraphStyle
impl !UnwindSafe for NSMutableParagraphStyle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more