Mercurial > mercurial > hgweb_madnm.cgi
view include/util.h @ 2:45d4fd954c31 default tip
change layout.
author | pyon@macmini |
---|---|
date | Mon, 10 Jun 2019 22:17:33 +0900 |
parents | f40a65687079 |
children |
line wrap: on
line source
// Filename : util.h // Last Change: 2019-06-09 Sun 16:36:33. // #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 );