diff include/util.h @ 0:2f5584f0d127

first commit.
author pyon@macmini
date Sat, 08 Jun 2019 16:21:40 +0900
parents
children f40a65687079
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/util.h	Sat Jun 08 16:21:40 2019 +0900
@@ -0,0 +1,39 @@
+// Filename   : util.h
+// Last Change: 2019-06-07 Fri 21:06:32.
+//
+#pragma once
+
+#include <wx/wx.h>
+#include <wx/dir.h>
+#include <wx/imaglist.h>
+
+/*** Utility Class ***/
+class FileList
+{
+	private:
+		wxString m_dir;
+		wxArrayString m_files;
+
+		wxImageList m_image1;	// zoom1
+		wxImageList m_image2;	// zoom2
+		wxImageList m_image3;	// zoom3
+
+	public:
+		FileList();
+		~FileList();
+
+		void SetDirectory( wxString dir ) { m_dir = dir; };
+		int GetFileCount( void ) { return m_files.GetCount(); };
+		wxArrayString GetFiles( void ) { return m_files; };
+		wxArrayString Update( void );
+};
+
+
+/*** Utility Function ***/
+void MsgBox( wxString msg );
+void MsgBox( int n );
+wxRect Geo2Rect( wxString geo );
+wxString Rect2Geo( wxRect rect );
+void MaskRect( wxImage image, wxRect rect, int r, int g, int b );
+bool IsBlack( int r, int g, int b );
+