Provides methods for creating graphics buffers that can be used for double buffering.
Provides methods for creating graphics buffers that can be used for double buffering.
Definition buffered_graphics_context.h:32
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
- Inheritance
- xtd::object → xtd::drawing::buffered_graphics_context
- Namespace
- xtd::drawing
- Library
- xtd.drawing
- Note
- The simplest way to use double buffering is to set the xtd::forms::control_styles::optimized_double_buffer control style flag on a control using the xtd::forms::control::set_style method. Setting the xtd::forms::control_styles::optimized_double_buffer control styles flag for a control redirects all painting for the control through a default graphics buffer, without requiring any additional code. This flag is set to true by default.
|
| 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.
|
|
◆ buffered_graphics_context()
xtd::drawing::buffered_graphics_context::buffered_graphics_context |
( |
| ) |
|
|
default |
Initializes a new instance of the BufferedGraphicsContext class.
◆ maximum_buffer() [1/2]
const xtd::drawing::size & xtd::drawing::buffered_graphics_context::maximum_buffer |
( |
| ) |
const |
|
noexcept |
Gets the maximum size of the buffer to use.
- Returns
- A xtd::drawing::size indicating the maximum size of the buffer dimensions.
◆ maximum_buffer() [2/2]
Sets the maximum size of the buffer to use.
- Parameters
-
- Exceptions
-
◆ invalidate()
void xtd::drawing::buffered_graphics_context::invalidate |
( |
| ) |
|
Destroy of the current graphics buffer, if a buffer has been allocated and has not yet been destroyed.
The documentation for this class was generated from the following file: