return context.hit_check(pos);
}
+bool
+Rectangle::is_solid_color()const
+{
+ return Layer_Composite::is_solid_color() ||
+ (get_blend_method() == Color::BLEND_COMPOSITE &&
+ get_amount() == 1.0f &&
+ color.get_a() == 1.0f);
+}
+
Color
Rectangle::get_color(Context context, const Point &pos)const
{
Layer_Composite& set_blend_method(Color::BlendMethod x) { blend_method_=x; return *this; }
- bool is_solid_color()const { return amount_==1.0f && blend_method_==Color::BLEND_STRAIGHT; }
+ virtual bool is_solid_color()const { return amount_==1.0f && blend_method_==Color::BLEND_STRAIGHT; }
bool is_disabled()const { return amount_==0.0f; }