Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gammasoft71/examples_gtkmm
Shows how to use Gtkmm controls by programming code (c++17).
https://github.com/gammasoft71/examples_gtkmm
checkbox combobox controls cpp cpp17 example examples gtkmm gtkmm-controls labels progressbar radio-buttons tabcontrol textbox trackbar widgets
Last synced: 10 days ago
JSON representation
Shows how to use Gtkmm controls by programming code (c++17).
- Host: GitHub
- URL: https://github.com/gammasoft71/examples_gtkmm
- Owner: gammasoft71
- License: mit
- Created: 2018-08-11T12:04:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T07:36:55.000Z (9 months ago)
- Last Synced: 2024-04-18T08:55:54.230Z (9 months ago)
- Topics: checkbox, combobox, controls, cpp, cpp17, example, examples, gtkmm, gtkmm-controls, labels, progressbar, radio-buttons, tabcontrol, textbox, trackbar, widgets
- Language: C++
- Homepage: https://gammasoft71.wixsite.com/gammasoft/gtkmm
- Size: 365 KB
- Stars: 43
- Watchers: 4
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Gtkmm Examples
Shows how to use Gtkmm controls (c++17).
[![gtkmm](docs/Pictures/gtkmm_header.png)](https://gammasoft71.wixsite.com/gammasoft/gtkmm)
## Hello World
["Hello World"](src/HelloWorld) The classic first application HelloWorld with Gtk::Label.
## Application and messages
[Application](src/Application) Shows how to create a simple Gtkmm application with Gtk::Application.
## Common Controls
[Button](src/Button) Shows how to create a Gtkmm Button and Event Click with Gtl::Button.
[CheckBox](src/CheckBox) Shows how to create a Gtkmm CheckBox with Gtk::CheckButton.
[ComboBox](src/ComboBox) Shows how to create a Gtkmm ComboBox with Gtk::ComboBoxText.
[Label](src/Label) Shows how to create a Gtkmm Label with Gtk::Label.
[ProgressBar](src/ProgressBar) Shows how to create a Gtkmm ProgressBar with Gtk::ProgressBar.
[RadioButton](src/RadioButton) Shows how to create a Gtkmm RadioButton with Gtk::RadioButton.
[TextBox](src/TextBox) Shows how to create a Gtkmm TextBox with Gtk::Entry.
[TrackBar](src/TrackBar) Shows how to create a Gtkmm TrackBar with Gtk::Scale.
## Containers
[Form](src/Form) Shows how to create a simple Gtkmm Form with Gtk::Window.
[GroupBox](src/GroupBox) Shows how to create a simple Gtkmm GroupBox with Gtk::Frame.
[Panel](src/Panel) Shows how to create a simple Gtkmm Panel with Gtk::Frame.
[TabControl](src/TabControl) Shows how to create a simple Gtkmm TabControl with TabPages with Gtk::Frame and Gtk::Notebook.
## Menus and toolbars
[MainMenu](src/MainMenu) Shows how to create a Gtkmm MainMenu with Gtk::MenuBar, Gtk::Menu and Gtk::MenuItem.
## Components
[Timer](src/Timer) Shows how to create a simple Gtkmm Timer with TimerGtk.
## Dialogs
[ColorDialog](src/ColorDialog) Shows how to create a ColorDialog with Gtk::ColorChooserDialog.
[FolderBrowserDialog](src/FolderBrowserDialog) Shows how to create a FolderBrowserDialog with Gtk::FileChooserDialog.
[FontDialog](src/FontDialog) Shows how to create a FontDialog with Gtk::FontChooserDialog.
[OpenFileDialog](src/OpenFileDialog) Shows how to create an OpenFileDialog with Gtk::FileChooserDialog.
[MessageBox](src/MessageBox) Shows how to create a MessageBox with Gtk::MessageDialog.
[SaveFileDialog](src/SaveFileDialog) Shows how to create an SaveFileDialog with Gtk::FileChooserDialog.
## Download
``` shell
git clone https://github.com/gammasoft71/GtkmmExamples GtkmmExamples
```## Generate and build
To build this project, open "Terminal" and type following lines:
### macOS :
``` cmake
mkdir build
cd build
cmake .. -G "Xcode"
open ./CocoaExamples.xcodeproj
```### Linux :
``` cmake
mkdir build
cd build
cmake ..
cmake --build . --config Debug
```## Remarks
This project run with [Gtkmm 3](https://www.gtkmm.org) and [CMake](https://cmake.org).