Skip to main content

NSTextViewportLayoutControllerDelegate

Trait NSTextViewportLayoutControllerDelegate 

Source
pub unsafe trait NSTextViewportLayoutControllerDelegate: NSObjectProtocol {
    // Provided methods
    fn viewportBoundsForTextViewportLayoutController(
        &self,
        text_viewport_layout_controller: &NSTextViewportLayoutController,
    ) -> CGRect
       where Self: Sized + Message { ... }
    fn textViewportLayoutController_configureRenderingSurfaceForTextLayoutFragment(
        &self,
        text_viewport_layout_controller: &NSTextViewportLayoutController,
        text_layout_fragment: &NSTextLayoutFragment,
    )
       where Self: Sized + Message { ... }
    fn textViewportLayoutControllerWillLayout(
        &self,
        text_viewport_layout_controller: &NSTextViewportLayoutController,
    )
       where Self: Sized + Message { ... }
    fn textViewportLayoutControllerDidLayout(
        &self,
        text_viewport_layout_controller: &NSTextViewportLayoutController,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextViewportLayoutController only.
Expand description

Provided Methods§

Source

fn viewportBoundsForTextViewportLayoutController( &self, text_viewport_layout_controller: &NSTextViewportLayoutController, ) -> CGRect
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

fn textViewportLayoutController_configureRenderingSurfaceForTextLayoutFragment( &self, text_viewport_layout_controller: &NSTextViewportLayoutController, text_layout_fragment: &NSTextLayoutFragment, )
where Self: Sized + Message,

Available on crate feature NSTextLayoutFragment only.
Source

fn textViewportLayoutControllerWillLayout( &self, text_viewport_layout_controller: &NSTextViewportLayoutController, )
where Self: Sized + Message,

Source

fn textViewportLayoutControllerDidLayout( &self, text_viewport_layout_controller: &NSTextViewportLayoutController, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextViewportLayoutControllerDelegate

Source§

impl ProtocolType for dyn NSTextViewportLayoutControllerDelegate

Source§

const NAME: &'static str = "NSTextViewportLayoutControllerDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSTextViewportLayoutControllerDelegate for ProtocolObject<T>

Implementors§