xtd 1.0.0
Loading...
Searching...
No Matches
paint_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include "message.hpp"
7#include <xtd/drawing/graphics>
8#include <xtd/drawing/rectangle>
9#include <xtd/event_args>
10
12namespace xtd {
14 namespace forms {
27 public:
29
38
40
44 [[nodiscard]] auto clip_rectangle() const noexcept -> const xtd::drawing::rectangle&;
45
48 [[nodiscard]] auto graphics() -> xtd::drawing::graphics&;
49
52 [[nodiscard]] xtd::forms::message& message() noexcept;
54
55 private:
56 xtd::forms::control* control_ = nullptr;
57 mutable xtd::sptr<xtd::drawing::graphics> graphics_;
58 xtd::drawing::rectangle clip_rectangle_;
59 xtd::forms::message* message_ = nullptr;
60 };
61 }
62}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
auto clip_rectangle() const noexcept -> const xtd::drawing::rectangle &
Gets the rectangle in which to paint.
auto graphics() -> xtd::drawing::graphics &
Gets the graphics used to paint.
paint_event_args(xtd::forms::control &control, const xtd::drawing::rectangle &clip_rectangle, xtd::forms::message &message)
Initializes a new instance of the paint_event_args class with the specified control,...
xtd::forms::message & message() noexcept
Gets the message associate to paint.
Contains forms_export_ keyword.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
Contains xtd::forms::message class.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
Implements a Windows message.
Definition message.hpp:33