Google

/*
 * Get the current font direction (Imlib2::Dir or Imlib2::Direction).
 *
 * Example:
 *   if ctx.direction != Imlib2::Direction::RIGHT
 *     puts 'drawing funny text'
 *   end
 *
 */
static VALUE ctx_dir(VALUE self) {