xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
buffered_graphics.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
graphics.hpp
"
6
#include <xtd/optional>
7
#include <xtd/object>
8
#include <xtd/types>
9
10
12
namespace
xtd
{
14
namespace
drawing
{
32
class
drawing_export_
buffered_graphics :
public
xtd::object
{
33
public
:
35
40
[[nodiscard]]
auto
graphics
() const noexcept -> const
xtd
::
drawing
::
graphics
&;
41
[[nodiscard]] auto
graphics
() noexcept ->
xtd
::
drawing
::
graphics
&;
43
45
49
auto
render
() ->
void
;
53
auto
render
(
xtd
::
drawing
::
graphics
& target) ->
void
;
57
auto
render
(
intptr
target_dc) ->
void
;
59
60
protected:
61
buffered_graphics(const
xtd
::
drawing
::
graphics
& buffered_graphics_surface, std::
optional
<
xtd
::
drawing
::
graphics
> target_graphics,
intptr
target_dc, const
xtd
::
drawing
::
point
& target_location,
xtd
::
drawing
::
size
virtual_size);
62
63
private:
64
xtd
::
drawing
::
graphics
buffered_graphics_surface_;
65
intptr
target_dc_ = 0;
66
std::
optional
<
xtd
::
drawing
::
graphics
> target_graphics_;
67
xtd
::
drawing
::
point
target_location_;
68
xtd
::
drawing
::
size
virtual_size_;
69
};
70
}
71
}
xtd::drawing::buffered_graphics::render
auto render() -> void
Writes the contents of the graphics buffer to the default device.
xtd::drawing::buffered_graphics::graphics
auto graphics() const noexcept -> const xtd::drawing::graphics &
Gets a xtd::drawing::graphics object that outputs to the graphics buffer.
xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition
object.hpp:45
graphics.hpp
Contains xtd::drawing::graphics class.
drawing_export_
#define drawing_export_
Define shared library export.
Definition
drawing_export.hpp:13
xtd::intptr
std::intmax_t intptr
Represent a pointer or a handle.
Definition
intptr.hpp:23
xtd::optional
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition
optional.hpp:26
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
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
xtd::drawing::size
Stores an ordered pair of integers, which specify a height and width.
Definition
size.hpp:32
Generated on
for xtd by
Gammasoft
. All rights reserved.