File:  [Isaki's NoNo m68k/m88k emulator] / nono / wx / wxuimessage.h
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs
Wed Apr 29 17:05:48 2026 UTC (3 months ago) by root
Branches: MAIN, Isaki
CVS tags: v027, v026, v025, HEAD
nono 1.5.0

//
// nono
// Copyright (C) 2021 nono project
// Licensed under nono-license.txt
//

//
// UI スレッドへのメッセージ機構 (GUI 側)
//

#pragma once

#include "wxnono.h"
#include "uimessage.h"

wxDECLARE_EVENT(NONO_EVT_UIMESSAGE, wxCommandEvent);

class WXUIMessage
{
 public:
	// VM からの UIMessage を wxWidgets のイベントハンドラに接続する
	static void Connect(UIMessage::ID id, wxEvtHandler *win,
		wxObjectEventFunction function);

	// イベントハンドラの接続を解除する
	static void Disconnect(UIMessage::ID id, wxEvtHandler *win,
		wxObjectEventFunction function);

	// UIMessage のコールバック。
	// (呼び出し元スレッドで実行される)
	static void Process(uint id, int arg);

	// すべてのハンドラが解除されているかチェックする (開発用)
	static void AssertAllDisconnected();
};

unix.superglobalmegacorp.com

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