diff options
| author | Dan Gudmundsson <dgud@erlang.org> | 2022-04-27 12:37:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-27 12:37:51 +0200 |
| commit | a1dbaf39b10691b8061b96df73cfd9f9aee7bb57 (patch) | |
| tree | 3d3023768ca61405a0b42e94bb7b3592eacb25e8 /lib/wx | |
| parent | 0171de186d2f66156b88e7d363e710331103660b (diff) | |
| parent | 2c2fb8a690b37410edf47eb75bb16e0481cab899 (diff) | |
| download | erlang-a1dbaf39b10691b8061b96df73cfd9f9aee7bb57.tar.gz | |
Merge pull request #5909 from wojtekmach/wm-doc-subscribe-events
wx: Document `wx:subscribe_events/0`
Diffstat (limited to 'lib/wx')
| -rw-r--r-- | lib/wx/doc/src/wx.xml | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/lib/wx/doc/src/wx.xml b/lib/wx/doc/src/wx.xml index 982343cda4..a405b0a274 100644 --- a/lib/wx/doc/src/wx.xml +++ b/lib/wx/doc/src/wx.xml @@ -141,6 +141,47 @@ wxGBPosition={r,c},wxGBSpan={rs,cs},wxGridCellCoords={r,c}.</p> another process wx environment.</p> </desc></func> <func> +<name since="">subscribe_events() -> ok</name> +<fsummary>Adds the calling process to the list of of processes that are +listening to wx application events.</fsummary> + +<desc><marker id="subscribe_events-0"/> +<p> + Adds the calling process to the list of of processes that are listening to + wx application events. +</p> + +<p> + At the moment these are all MacOSX specific events corresponding to + <c>MacNewFile()</c> + and friends from wxWidgets + <url href="https://docs.wxwidgets.org/trunk/classwx_app.html">wxApp</url>: +</p> + +<list> + <item> + <p><c>{new_file, ""}</c></p> + </item> + <item> + <p><c>{open_file, Filename}</c></p> + </item> + <item> + <p><c>{print_file, Filename}</c></p> + </item> + <item> + <p><c>{open_url, Url}</c></p> + </item> + <item> + <p><c>{reopen_app, ""}</c></p> + </item> +</list> + +<p> + The call always returns ok but will have sent any already received + events to the calling process. +</p> +</desc></func> +<func> <name since="">null() -> <seeerl marker="#type-wx_object">wx_object()</seeerl></name> <fsummary>Returns the null object.</fsummary> @@ -287,4 +328,4 @@ library.</p> <authors> <aname> </aname> -<email> </email></authors></erlref>
\ No newline at end of file +<email> </email></authors></erlref> |
