#include <gtkmm/adjustment.h>
#include <gtkmm/grid.h>
#include <gtkmm/scale.h>
#include <gtkmm/window.h>

int main(int, char **)
{
	auto application = Gtk::Application::create("org.example");

	Gtk::Scale scale_h{
		Gtk::Adjustment::create(
			0,
			0, 10000,
			1, 100
		),
		Gtk::ORIENTATION_HORIZONTAL
	};
	scale_h.set_value_pos(Gtk::POS_LEFT);
	scale_h.set_hexpand(true);

	Gtk::Scale scale_v{
		Gtk::Adjustment::create(
			0,
			0, 10000,
			1, 100
		),
		Gtk::ORIENTATION_VERTICAL
	};
	scale_v.set_value_pos(Gtk::POS_TOP);
	scale_v.set_vexpand(true);

	Gtk::Grid grid;
	grid.set_border_width(8);
	grid.attach(scale_h, 0, 0, 2, 1);
	grid.attach(scale_v, 0, 1, 2, 1);

	Gtk::Window window;
	window.add(grid);
	window.set_default_size(500, 500);
	window.show_all();

	return application->run(window);
}
