mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
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>
38 lines
811 B
C++
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 |