Returns the Layer for a View that is a SnapDrawingLayerHolder. Returns null if the view is not a holder (e.g. a bridged NSView on macOS), so callers must null-check to avoid crashes.
| 35 | |
| 36 | /// Returns the Layer for a View that is a SnapDrawingLayerHolder. Returns null if the view is |
| 37 | /// not a holder (e.g. a bridged NSView on macOS), so callers must null-check to avoid crashes. |
| 38 | static Valdi::Ref<Layer> toLayer(const Ref<View>& view) { |
| 39 | return valdiViewToLayer(view); |
| 40 | } |
| 41 | |
| 42 | SnapDrawingViewTransaction::SnapDrawingViewTransaction() = default; |
no test coverage detected