Annotation of nono/wx/wxuimessage.h, revision 1.1.1.4

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2021 nono project
                      4: // Licensed under nono-license.txt
                      5: //
                      6: 
1.1.1.2   root        7: //
                      8: // UI スレッドへのメッセージ機構 (GUI 側)
                      9: //
                     10: 
1.1       root       11: #pragma once
                     12: 
                     13: #include "wxnono.h"
                     14: #include "uimessage.h"
                     15: 
                     16: wxDECLARE_EVENT(NONO_EVT_UIMESSAGE, wxCommandEvent);
                     17: 
                     18: class WXUIMessage
                     19: {
                     20:  public:
                     21:        // VM からの UIMessage を wxWidgets のイベントハンドラに接続する
1.1.1.4 ! root       22:        static void Connect(UIMessage::ID id, wxEvtHandler *win,
1.1       root       23:                wxObjectEventFunction function);
                     24: 
                     25:        // イベントハンドラの接続を解除する
1.1.1.4 ! root       26:        static void Disconnect(UIMessage::ID id, wxEvtHandler *win,
1.1.1.3   root       27:                wxObjectEventFunction function);
1.1       root       28: 
1.1.1.4 ! root       29:        // UIMessage のコールバック。
        !            30:        // (呼び出し元スレッドで実行される)
        !            31:        static void Process(uint id, int arg);
1.1       root       32: 
1.1.1.2   root       33:        // すべてのハンドラが解除されているかチェックする (開発用)
                     34:        static void AssertAllDisconnected();
1.1       root       35: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.