Class Joyau::MsgConfig
In: Drawable.cpp
Parent: Object

MsgConfig is used with MsgSelecter, which use them in order

Methods

Public Instance methods

Returns the message’s background.

[Source]

/*
  Returns the message's background.
*/
VALUE MsgConfig_bg(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   if (ref.bg)
      return ref.bg->toRuby();
   return Qnil;
}

Sets the background’s picture.

[Source]

/*
  call-seq: bg=(val)

  Sets the background's picture.
*/
VALUE MsgConfig_setBg(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.bg = getPtr<Sprite>(val);

   return val;
}

Returns the background’s color.

[Source]

/*
  Returns the background's color.
*/
VALUE MsgConfig_bgColor(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   return col2hash(ref.bgColor);
}

Sets the background’s color.

[Source]

/*
  call-seq: bgColor=(val)

  Sets the background's color.
*/
VALUE MsgConfig_setBgColor(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.bgColor = hash2col(val);

   return val;
}

Returns the border’s color.

[Source]

/*
  Returns the border's color.
*/
VALUE MsgConfig_borderColor(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   return col2hash(ref.borderColor);
}

Sets the border’s color.

[Source]

/*
  call-seq: borderColor=(val)

  Sets the border's color.
*/
VALUE MsgConfig_setBorderColor(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.borderColor = hash2col(val);

   return val;
}

Returns the image shown beside the text.

[Source]

/*
  Returns the image shown beside the text.
*/
VALUE MsgConfig_image(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   if (ref.image)
      return ref.image->toRuby();
   return Qnil;
}

Sets the sprite drawn beside the text.

[Source]

/*
  call-seq: image=(sprite)

  Sets the sprite drawn beside the text.
*/
VALUE MsgConfig_setImage(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.image = getPtr<Sprite>(val);

   return val;
}

Returns the text’s color.

[Source]

/*
  Returns the text's color.
*/
VALUE MsgConfig_textColor(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   return col2hash(ref.textColor);
}

Sets the text’s color.

[Source]

/*
  call-seq: text=(val)

  Sets the text's color.
*/
VALUE MsgConfig_setTextColor(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.textColor = hash2col(val);

   return val;
}

Returns the text’s font.

[Source]

/*
  Returns the text's font.
*/
VALUE MsgConfig_textFont(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   return rb_str_new2(ref.textFont.c_str());
}

Sets the text’s font.

[Source]

/*
  call-seq: textFont=(val)

  Sets the text's font.
*/
VALUE MsgConfig_setTextFont(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.textFont = StringValuePtr(val);

   return val;
}

Returns the title’s color.

[Source]

/*
  Returns the title's color.
*/
VALUE MsgConfig_titleColor(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   return col2hash(ref.titleColor);
}

Sets the title’s color.

[Source]

/*
  call-seq: titleColor=(val)

  Sets the title's color.
*/
VALUE MsgConfig_setTitleColor(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.titleColor = hash2col(val);

   return val;
}

Returns the title’s font.

[Source]

/*
  Returns the title's font.
*/
VALUE MsgConfig_titleFont(VALUE self)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   return rb_str_new2(ref.titleFont.c_str());
}

Sets the title’s font.

[Source]

/*
  call-seq: titleFont=(val)

  Sets the title's font.
*/
VALUE MsgConfig_setTitleFont(VALUE self, VALUE val)
{
   MsgConfig &ref = getRef<MsgConfig>(self);
   ref.titleFont = StringValuePtr(val);

   return val;
}

[Validate]