xtd
0.2.0
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);
}
Generated on Mon Oct 9 2023 14:41:55 for xtd by
Gammasoft
. All rights reserved.