Incorrect use of @onlyfor in toplevel.h doc (PR #26296)

16 views
Skip to first unread message

mcorino

unread,
Mar 15, 2026, 5:53:47 AM (3 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed

wxTopLevelWindow::EnableFullScreenView is incorrectly documented with @OnlyFor{wxosx} as this method is available for all platforms but only actually works on MacOS (as documented).


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26296

Commit Summary

  • 2bc2ea8 Incorrect use of @onlyfor in toplevel.h doc

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296@github.com>

VZ

unread,
Mar 15, 2026, 4:31:22 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26296)

Shouldn't we document that this function doesn't do anything under non-macOS? I'll do this in addition to removing @onlyfor...


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/c4063832079@github.com>

mcorino

unread,
Mar 15, 2026, 4:38:44 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
mcorino left a comment (wxWidgets/wxWidgets#26296)
As I said the behaviour on other platforms is already correctly documented ;⁠-⁠)On 15 Mar 2026 21:31, VZ ***@***.***> wrote:vadz left a comment (wxWidgets/wxWidgets#26296)
Shouldn't we document that this function doesn't do anything under non-macOS? I'll do this in addition to removing @onlyfor...

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/c4063843609@github.com>

VZ

unread,
Mar 15, 2026, 4:43:17 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26296)

As I said the behaviour on other platforms is already correctly documented

I must be blind, but I just don't see it. Anyhow, adding an explicit note about it shouldn't harm.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/c4063850592@github.com>

VZ

unread,
Mar 15, 2026, 4:44:55 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed

Closed #26296 via fd3eb2e.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/issue_event/23588315183@github.com>

mcorino

unread,
Mar 15, 2026, 4:56:38 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
mcorino left a comment (wxWidgets/wxWidgets#26296)

As I said the behaviour on other platforms is already correctly documented

I must be blind, but I just don't see it. Anyhow, adding an explicit note about it shouldn't harm.

I would have said this line was clear enough:

This function is currently only implemented in wxOSX and simply returns false in the other ports.

;-)


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/c4063871788@github.com>

VZ

unread,
Mar 15, 2026, 5:02:33 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26296)

Wait, I may be blind but not crazy (I think?). This sentence is part of my commit which added it, it hadn't been there before!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/c4063881256@github.com>

mcorino

unread,
Mar 15, 2026, 5:13:43 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
mcorino left a comment (wxWidgets/wxWidgets#26296)

Oh my, lol. You are absolutely right.
The line I saw before was the description of the return value:

@return @true if the button behaviour has been changed, @false if running
        under another OS.

I mixed that up with what you added. My bad.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26296/c4063899803@github.com>

Reply all
Reply to author
Forward
0 new messages