Skip to content

Latest commit

 

History

History
97 lines (54 loc) · 2.73 KB

README.md

File metadata and controls

97 lines (54 loc) · 2.73 KB

Gtkmm Examples

Shows how to use Gtkmm controls (c++17).

gtkmm

Hello World

"Hello World" The classic first application HelloWorld with Gtk::Label.

Application and messages

Application Shows how to create a simple Gtkmm application with Gtk::Application.

Common Controls

Button Shows how to create a Gtkmm Button and Event Click with Gtl::Button.

CheckBox Shows how to create a Gtkmm CheckBox with Gtk::CheckButton.

ComboBox Shows how to create a Gtkmm ComboBox with Gtk::ComboBoxText.

Label Shows how to create a Gtkmm Label with Gtk::Label.

ProgressBar Shows how to create a Gtkmm ProgressBar with Gtk::ProgressBar.

RadioButton Shows how to create a Gtkmm RadioButton with Gtk::RadioButton.

TextBox Shows how to create a Gtkmm TextBox with Gtk::Entry.

TrackBar Shows how to create a Gtkmm TrackBar with Gtk::Scale.

Containers

Form Shows how to create a simple Gtkmm Form with Gtk::Window.

GroupBox Shows how to create a simple Gtkmm GroupBox with Gtk::Frame.

Panel Shows how to create a simple Gtkmm Panel with Gtk::Frame.

TabControl Shows how to create a simple Gtkmm TabControl with TabPages with Gtk::Frame and Gtk::Notebook.

Menus and toolbars

MainMenu Shows how to create a Gtkmm MainMenu with Gtk::MenuBar, Gtk::Menu and Gtk::MenuItem.

Components

Timer Shows how to create a simple Gtkmm Timer with TimerGtk.

Dialogs

ColorDialog Shows how to create a ColorDialog with Gtk::ColorChooserDialog.

FolderBrowserDialog Shows how to create a FolderBrowserDialog with Gtk::FileChooserDialog.

FontDialog Shows how to create a FontDialog with Gtk::FontChooserDialog.

OpenFileDialog Shows how to create an OpenFileDialog with Gtk::FileChooserDialog.

MessageBox Shows how to create a MessageBox with Gtk::MessageDialog.

SaveFileDialog Shows how to create an SaveFileDialog with Gtk::FileChooserDialog.

Download

git clone https://github.com/gammasoft71/GtkmmExamples GtkmmExamples

Generate and build

To build this project, open "Terminal" and type following lines:

macOS :

mkdir build
cd build
cmake .. -G "Xcode"
open ./CocoaExamples.xcodeproj

Linux :

mkdir build
cd build
cmake .. 
cmake --build . --config Debug

Remarks

This project run with Gtkmm 3 and CMake.