File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Sources/SwiftWin32/Menus and Shortcuts Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -37,29 +37,31 @@ extension MenuElement {
37
37
/// Constants that indicate the state of an action-based or command-based
38
38
/// menu element.
39
39
public enum State : Int {
40
- /// A constant indicating the menu element is in the "off" state.
41
- case off
40
+ /// A constant indicating the menu element is in the "off" state.
41
+ case off
42
42
43
- /// A constant indicating the menu element is in the "on" state.
44
- case on
43
+ /// A constant indicating the menu element is in the "on" state.
44
+ case on
45
45
46
- /// A constant indicating the menu element is in the "mixed" state.
47
- case mixed
46
+ /// A constant indicating the menu element is in the "mixed" state.
47
+ case mixed
48
48
}
49
49
}
50
50
51
51
/// An object representing a menu, action, or command.
52
52
public class MenuElement {
53
- /// Getting the Element Attributes
53
+ // MARK - Getting the Element Attributes
54
54
55
55
/// The title of the menu element.
56
56
public internal( set) var title : String
57
57
58
58
/// The image to display alongside the menu element's title.
59
59
public internal( set) var image : Image ?
60
60
61
- /// Creating a Menu Element
61
+ // MARK - Creating a Menu Element
62
62
63
+ /// Creates and returns a `MenuElement` initialized with the given title and
64
+ /// image.
63
65
public init ( title: String , image: Image ? = nil ) {
64
66
self . title = title
65
67
self . image = image
You can’t perform that action at this time.
0 commit comments