Class Joyau::FillableShape
In: Drawable.cpp
Parent: Joyau::Shape

This is almost the same class as Shape. The only difference is that you can toggle a filled state, checked when drawing the object.

Methods

Public Instance methods

Return the shape’s filled state.

[Source]

/*
  Return the shape's filled state.
*/
VALUE FillablleShape_filled(VALUE self)
{
   FillableShape &ref = getRef<FillableShape>(self);
   return ref.isFilled() ? Qtrue : Qfalse;
}

Sets the filled state.

[Source]

/*
  call-seq: setFilled(val)
            filled=(val)

  Sets the filled state.
*/
VALUE FillableShape_setFilled(VALUE self, VALUE val)
{
   FillableShape &ref = getRef<FillableShape>(self);
   
   ref.setFilled(val == Qtrue);
   return val;
}

Toggle the shape’s filled state.

[Source]

/*
  Toggle the shape's filled state.
*/
VALUE FillableShape_toggleFilled(VALUE self)
{
   FillableShape &ref = getRef<FillableShape>(self);
   
   ref.toggleFilled();
   return Qnil;
}

[Validate]