Git Product home page Git Product logo

examples_gtkmm's Introduction

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.

examples_gtkmm's People

Contributors

gammasoft71 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

examples_gtkmm's Issues

Error at configure step in CMake

First of all, thank you for providing this extremely useful examples.

I am facing the following issue when I try to build this examples. Am I missing something? I think it should work.

cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3") 
-- Checking for module 'gtkmm-3.0'
--   Found gtkmm-3.0, version 3.24.2
CMake Error at src/PictureBox/CMakeLists.txt:39 (configure_file):
  configure_file Problem configuring file


CMake Error at src/PictureBox/CMakeLists.txt:40 (configure_file):
  configure_file Problem configuring file


CMake Error at src/PictureBox/CMakeLists.txt:41 (configure_file):
  configure_file Problem configuring file


-- Configuring incomplete, errors occurred!

Edit: the lines that give error are these:

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Resources/Logo.png ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Resources/Logo.png COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Resources/Logo.png ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug/Resources/Logo.png COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Resources/Logo.png ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release/Resources/Logo.png COPYONLY)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.