Provides a graphics buffer for double buffering.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
- Inheritance
- xtd::object → xtd::drawing::buffered_graphics
- 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::control::set_style method. Setting the xtd::forms::control_styles::optimized_double_buffer 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.
|
| auto | render () -> void |
| | Writes the contents of the graphics buffer to the default device.
|
| auto | render (xtd::drawing::graphics &target) -> void |
| | Writes the contents of the graphics buffer to the specified xtd::drawing::graphics object.
|
| auto | render (intptr target_dc) -> void |
| | Writes the contents of the graphics buffer to the device context associated with the specified intptr handle.
|
|
| | object ()=default |
| | Create a new instance of the ultimate base class object.
|
| virtual auto | equals (const object &obj) const noexcept -> bool |
| | Determines whether the specified object is equal to the current object.
|
| virtual auto | get_hash_code () const noexcept -> xtd::usize |
| | Serves as a hash function for a particular type.
|
| virtual auto | get_type () const noexcept -> type_object |
| | Gets the type of the current instance.
|
| template<typename object_t> |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| | Creates a shallow copy of the current object.
|
| virtual auto | to_string () const -> xtd::string |
| | Returns a xtd::string that represents the current object.
|
| template<typename object_a_t, typename object_b_t> |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| | Determines whether the specified object instances are considered equal.
|
| template<typename object_a_t, typename object_b_t> |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| | Determines whether the specified object instances are the same instance.
|
◆ graphics()
◆ render() [1/3]
| auto xtd::drawing::buffered_graphics::render |
( |
| ) |
-> void |
Writes the contents of the graphics buffer to the default device.
◆ render() [2/3]
◆ render() [3/3]
| auto xtd::drawing::buffered_graphics::render |
( |
intptr | target_dc | ) |
-> void |
Writes the contents of the graphics buffer to the device context associated with the specified intptr handle.
- Parameters
-
| target_dc | An intptr that points to the device context to which to write the contents of the graphics buffer. |
The documentation for this class was generated from the following file: