xtd 0.2.0
Loading...
Searching...
No Matches
buttons.cpp

demonstrates the use of xtd::forms::buttons button object collection.

Windows

macOS

Gnome

#include <xtd/forms/application>
#include <xtd/forms/buttons>
#include <xtd/forms/form>
using namespace xtd::forms;
auto main() -> int {
auto main_form = form::create("Buttons example", xtd::drawing::point {100, 200}, {450, 200});
auto actual_size_button = buttons::actual_size(main_form, {10, 10}, {100, 25});
auto zoom_in_button = buttons::zoom_in(main_form, {120, 10}, {100, 25});
auto zoom_out_button = buttons::zoom_out(main_form, {230, 10}, {100, 25});
auto zoom_to_fit_button = buttons::zoom_to_fit(main_form, {340, 10}, {100, 25});
application::run(main_form);
}
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:54
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12