Skip to content

Commit 9424ac1

Browse files
add order* commands to example
1 parent c7887d0 commit 9424ac1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

example/lib/main_area/command_list_provider.dart

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,31 @@ class CommandListProvider {
351351
description: 'Resets the window\'s level to the default value.',
352352
function: () => WindowManipulator.setLevel(NSWindowLevel.normal),
353353
),
354+
Command(
355+
name: 'orderOut()',
356+
description: 'Removes the window from the screen list, which hides the '
357+
'window.',
358+
function: () => WindowManipulator.orderOut(),
359+
),
360+
Command(
361+
name: 'orderBack()',
362+
description: 'Moves the window to the back of its level in the screen '
363+
'list, without changing either the key window or the main window.',
364+
function: () => WindowManipulator.orderBack(),
365+
),
366+
Command(
367+
name: 'orderFront()',
368+
description: 'Moves the window to the front of its level in the screen '
369+
'list, without changing either the key window or the main window.',
370+
function: () => WindowManipulator.orderFront(),
371+
),
372+
Command(
373+
name: 'orderFrontRegardless()',
374+
description: 'Moves the window to the front of its level, even if its '
375+
'application isn\'t active, without changing either the key window '
376+
'or the main window.',
377+
function: () => WindowManipulator.orderFrontRegardless(),
378+
),
354379
];
355380
}
356381
}

0 commit comments

Comments
 (0)