--- nono/wx/wxsubwindow.h 2026/04/29 17:04:28 1.1.1.1 +++ nono/wx/wxsubwindow.h 2026/04/29 17:04:37 1.1.1.2 @@ -1,10 +1,13 @@ // // nono -// Copyright (C) 2018 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once +#include "wxheader.h" + // // サブウィンドウ // @@ -14,13 +17,19 @@ class WXSubWindow : public wxFrame { - typedef wxFrame inherited; + using inherited = wxFrame; public: static const int DEFAULT_STYLE = (wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT) & ~wxMAXIMIZE_BOX & ~wxRESIZE_BORDER; + // テキスト系サブウィンドウの共通ボーダー。 + // テキスト系サブウィンドウは四辺に余白を少し入れる。 + // 余白がまったくないと、ボーダーを持たないウィンドウマネージャで + // 端の文字が読みにくくなってしまうため。 + static wxSizerFlags BorderFlags; + public: WXSubWindow(wxWindow *parent, wxWindowID id, const wxString& name, int style);