37 if (auto_ellipsis_ != auto_ellipsis)
38 auto_ellipsis_ = auto_ellipsis;
42 bool auto_size()
const override {
return control::auto_size();}
45 if (get_state(state::auto_size))
46 auto_ellipsis_ =
false;
136 control::on_parent_back_color_changed(
e);
141 control::on_enabled_changed(
e);
146 control::on_font_changed(
e);
151 control::on_fore_color_changed(
e);
158 if (can_raise_events()) image_changed(*
this,
e);
163 control::on_mouse_down(
e);
168 control::on_mouse_enter(
e);
173 control::on_mouse_leave(
e);
178 control::on_mouse_up(
e);
183 control::on_parent_back_color_changed(
e);
188 control::on_parent_fore_color_changed(
e);
193 control::on_resize(
e);
198 control::on_text_changed(
e);
206 bool auto_ellipsis_ =
false;
211 int32_t image_index_ = -1;
212 content_alignment image_align_ = content_alignment::middle_center;
213 content_alignment text_align_ = content_alignment::middle_center;
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition: image.h:34
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:25
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents an event.
Definition: event.h:21
Contains xtd::forms::content_alignment enum class.
Contains xtd::forms::control control.
Contains xtd::forms::flat_style enum class.
event< button_base, event_handler > image_changed
Occurs when the value of the image property changes.
Definition: button_base.h:115
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
Contains xtd::drawing::image class.
Contains xtd::forms::image_list component.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::forms::text_format_flags enum class.