ドキュメント
RectComponent
< 1 min read
RectComponentは指定した場所にコンポーネントを配置します。
rect_component.hpp
class RectComponent : public Component
{
public:
using RECT = spa::gui::View<>;
public:
RectComponent
(
MOD mod,
int rect_margin_x,
int rect_margin_y,
unsigned int rect_width,
unsigned int rect_height,
unsigned char rect_bg_color_R,
unsigned char rect_bg_color_G,
unsigned char rect_bg_color_B,
unsigned char rect_bg_color_A
);
~RectComponent() = default;
RECT* get();
void recapture();
void configure();
private:
std::shared_ptr<RECT> rect;
};
親コンポーネントに対してマージンを指定します。幅と高さ、背景色を指定します。
recaptureメソッドがあります。
ペンディング:背景色の指定なしのコンストラクタを作成
コメントを残す