master
John Lauer v2.0.720 (insiders): Groundwork for the macOS build of the Rust pup (Kyle's pull request #3, pup-bridge#128): the Mac h… 87f5051 27d ago
//! hide_ctl <hwnd> show|hide|raise — drive one window's owning app through the trait, for live tests.
use pup_host::HostWindows;
fn main() {
    let a: Vec<String> = std::env::args().collect();
    let h = pup_host_mac::MacHost; let hwnd: i64 = a[1].parse().unwrap();
    let r = match a[2].as_str() { "show" => h.set_visible_no_activate(hwnd, true), "hide" => h.send_to_bottom_no_activate(hwnd), "raise" => h.raise_window(hwnd), _ => false };
    println!("{} {hwnd}: {r}; foreground now {}", a[2], h.foreground());
}