Provides data for the.
draw_item
event.
- Header
#include <xtd/forms/draw_item_event_args>
- Namespace
- xtd::forms
- Library
- xtd.forms
|
| draw_item_event_args (xtd::drawing::graphics &graphics, const xtd::drawing::font &font, const xtd::drawing::rectangle &rect, size_t index, xtd::forms::draw_item_state state) |
| Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, surface to draw on, and the bounds to draw within.
|
|
| draw_item_event_args (xtd::drawing::graphics &graphics, const xtd::drawing::font &font, const xtd::drawing::rectangle &rect, size_t index, xtd::forms::draw_item_state state, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_core) |
| Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, foreground color, background color, surface to draw on, and the bounds to draw within.
|
|
|
static const event_args | empty |
| Provides a value to use with events that do not have event data.
|
|
| event_args ()=default |
| Initializes a new instance of the event_args class.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<typename object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ draw_item_event_args() [1/2]
Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, surface to draw on, and the bounds to draw within.
- Parameters
-
graphics | The xtd::drawing::graphics surface on which to draw. |
font | The xtd::drawing::font to use, usually the parent control's Font property. |
rect | The xtd::drawing::rectangle bounds to draw within. |
index | The xtd::control::control_collection index value of the item that is being drawn. |
state | The control's xtd::forms::drawItem_state information. |
◆ draw_item_event_args() [2/2]
Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, foreground color, background color, surface to draw on, and the bounds to draw within.
- Parameters
-
graphics | The xtd::drawing::graphics surface on which to draw. |
font | The xtd::drawing::font to use, usually the parent control's Font property. |
rect | The xtd::drawing::rectangle bounds to draw within. |
index | The xtd::control::control_collection index value of the item that is being drawn. |
state | The control's xtd::forms::drawItem_state information. |
◆ back_color()
Gets the background color of the item that is being drawn.
- Returns
- The background xtd::drawing::color of the item that is being drawn.
◆ bounds()
Gets the rectangle that represents the bounds of the item that is being drawn.
- Returns
- The xtd::drawing::rectangle that represents the bounds of the item that is being drawn.
◆ font()
Gets the font that is assigned to the item being drawn.
- Returns
- The xtd::drawing::font that is assigned to the item being drawn.
◆ fore_color()
Gets the foreground color of the of the item being drawn.
- Returns
- The foreground xtd::drawing::color of the item being drawn.
◆ graphics()
◆ index()
size_t xtd::forms::draw_item_event_args::index |
( |
| ) |
const |
|
noexcept |
Gets the index value of the item that is being drawn.
- Returns
- The numeric value that represents the xtd::forms::control::control_collection::operator [] value of the item being drawn.
◆ state()
The documentation for this class was generated from the following file: