Skip to content

Commit 2f7c0b9

Browse files
committed
Views and Controls: define View.TintAdjustmentMode
This adds the definition for the `View.TintAdjustmentMode` enumeration to enable extending the interface for `View`.
1 parent f4f87a8 commit 2f7c0b9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Sources/SwiftWin32/Views and Controls/View.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,24 @@ extension View {
378378
}
379379
}
380380

381+
extension View {
382+
/// The tint adjustment mode for the view.
383+
public enum TintAdjustmentMode: Int {
384+
/// The tint adjustment mode of the view is the same as its superview's tint
385+
/// adjustment mode (or `ViewTintAdjustmentModeNormal` if the view has no
386+
/// superview).
387+
case automatic
388+
389+
/// The view's tintColor property returns the completely unmodified tint
390+
/// color of the view.
391+
case normal
392+
393+
/// The view's `tintColor` property returns a desaturated, dimmed version
394+
/// of the view's original tint color.
395+
case dimmed
396+
}
397+
}
398+
381399
/// An object that manages the content for a rectangular area on the screen.
382400
public class View: Responder {
383401
private static let `class`: WindowClass =

0 commit comments

Comments
 (0)