Files
rive-cpp/include/rive/draw_target.hpp
csmartdalton 163f1beef3 Drop the ColumnLimit to 80 for clang-format
This gives better support for smaller screens and side-by-side windows.

Also standardize the formatting check on GitHub on version 17.

Diffs=
e52e9fff29 Drop the ColumnLimit to 80 for clang-format (#8320)

Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
2024-10-11 19:22:48 +00:00

38 lines
811 B
C++

#ifndef _RIVE_DRAW_TARGET_HPP_
#define _RIVE_DRAW_TARGET_HPP_
#include "rive/draw_target_placement.hpp"
#include "rive/generated/draw_target_base.hpp"
#include <stdio.h>
namespace rive
{
class Drawable;
class Artboard;
class DrawTarget : public DrawTargetBase
{
friend class Artboard;
private:
Drawable* m_Drawable = nullptr;
// Controlled by the artboard.
Drawable* first = nullptr;
Drawable* last = nullptr;
public:
Drawable* drawable() const { return m_Drawable; }
StatusCode onAddedDirty(CoreContext* context) override;
StatusCode onAddedClean(CoreContext* context) override;
DrawTargetPlacement placement() const
{
return (DrawTargetPlacement)placementValue();
}
protected:
void placementValueChanged() override;
};
} // namespace rive
#endif