Skip to content

Add SetRepresentedFilename for macOS title bar proxy icons - #186

Merged
AllenDang merged 1 commit into
AllenDang:mainfrom
trypsynth:window-represented-filename
Aug 18, 2026
Merged

Add SetRepresentedFilename for macOS title bar proxy icons#186
AllenDang merged 1 commit into
AllenDang:mainfrom
trypsynth:window-represented-filename

Conversation

@trypsynth

Copy link
Copy Markdown
Contributor

Summary

  • Adds wxd_Window_SetRepresentedFilename (macOS only), wrapping wxTopLevelWindow::SetRepresentedFilename.
  • Adds a set_represented_filename method on the WxWidget trait, following the same pattern as the existing set_accessibility_label/set_accessibility_description methods (macOS only, no-op elsewhere).

Motivation

This is the standard mechanism native macOS document windows use for the title bar proxy icon: Cmd-clicking the window title shows the file's path in a Finder-style breadcrumb, and the icon itself can be dragged to move or copy the file. Apps that open documents from disk (editors, viewers, readers) generally want this, and wxWidgets already exposes it on the Cocoa port, it just was not wrapped yet.

Test plan

  • cargo build -p wxdragon succeeds locally.

@AllenDang

Copy link
Copy Markdown
Owner

Please resolve the conflicts

@trypsynth
trypsynth force-pushed the window-represented-filename branch from 35ac31c to 27763d5 Compare August 18, 2026 02:55
@AllenDang
AllenDang merged commit 6955685 into AllenDang:main Aug 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants