xtd
0.2.0
Toggle main menu visibility
Home
Categories
Documentation
Namespaces
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
v
x
Enumerations
Related Symbols
Files
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
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);
}
xtd::forms::application::run
static void run()
Begins running a standard application message loop on the current thread, without a form.
xtd::forms::buttons::actual_size
static button actual_size()
Create a system-defined button that represent actual_size button.
xtd::forms::buttons::zoom_out
static button zoom_out()
Create a system-defined button that represent zoom_out button.
xtd::forms::buttons::zoom_in
static button zoom_in()
Create a system-defined button that represent zoom_in button.
xtd::forms::buttons::zoom_to_fit
static button zoom_to_fit()
Create a system-defined button that represent zoom_to_fit button.
xtd::forms::form::create
static form create()
A factory to create an xtd::forms::form.
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd::drawing::point
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition
point.hpp:54
Generated on Fri Jun 20 2025 10:32:15 for xtd by
Gammasoft
. All rights reserved.