Wxwidgets is an open source Cross-platform c++++ Architecture Library (framework) that can provide GUI (http://www.aliyun.com/zixun/aggregation/18378.html "> Graphical user interface) and other tools. The current 2.x version supports all versions of Windows, UNIX and OS with gtk++ or motif. A support powering version is under development.
Wxwidgets was first developed by the Institute of Artificial Intelligence applied at the University of Edinburgh (Edinburgh), mainly for internal use, and was unveiled for the time being in 1992. The 2.x version has been greatly improved and written and maintained by Julian Smart, Robert Roebling, Vadim Zeitlin, Vaclav Slavik, and more.
The subject of wxwidgets is built by C + +, but you do not have to use C + + to have wxwidgets.wxwidgets with many other languages (binding) so that you can use wxwidgets when writing programs in other languages.
Installation
This example applies to Ubuntu 9.10
C + + Basic development environment: sudo apt install build-essential
wxgtk2.8 Development kits: sudo apt install Libwxgtk2.8-dev
List of all packages required:
g++
Libstdc++-dev
Wx2.8-headers
libwxgtk2.8
Libwxgtk2.8-dev
A simple example
#include <wx/wx.h>
Class Simple:public Wxframe
{
Public:
Simple (const wxstring& title);
};
Class Myapp:public Wxapp
{
Public:
virtual bool OnInit ();
};
Simple::simple (const wxstring& title)
: Wxframe (NULL, Wxid_any, title, Wxdefaultposition, Wxsize (250, 150))
{
Pew ();
}
Implement_app (MYAPP)
BOOL Myapp::oninit ()
{
Simple *simple = new Simple (WXT ("simple"));
Simple->show (TRUE);
return true;
}
Compile command:
g++-o simple simple.cpp \
' Wx-config--cxxflags--libs '