PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7 files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes, and the global library files (Macros, Labels, Groups, ClearGroups, CCLI, Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar, KeyMappings, CommunicationDevices). Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy (v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/, binary-format specs, and a synthetic 369-test PHPUnit suite covering RTF extraction, translation slides, ZIP64 repair, round-trip fidelity, and end-to-end generation.
141 lines
3.5 KiB
PHP
141 lines
3.5 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: graphicsData.proto
|
|
|
|
namespace Rv\Data\Graphics;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Graphics.Gradient</code>
|
|
*/
|
|
class Gradient extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Gradient.Type type = 1;</code>
|
|
*/
|
|
protected $type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>double angle = 2;</code>
|
|
*/
|
|
protected $angle = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>double length = 3;</code>
|
|
*/
|
|
protected $length = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Gradient.ColorStop stops = 4;</code>
|
|
*/
|
|
private $stops;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $type
|
|
* @type float $angle
|
|
* @type float $length
|
|
* @type array<\Rv\Data\Graphics\Gradient\ColorStop>|\Google\Protobuf\Internal\RepeatedField $stops
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\GraphicsData::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Gradient.Type type = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Gradient.Type type = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Gradient\Type::class);
|
|
$this->type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double angle = 2;</code>
|
|
* @return float
|
|
*/
|
|
public function getAngle()
|
|
{
|
|
return $this->angle;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double angle = 2;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setAngle($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->angle = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double length = 3;</code>
|
|
* @return float
|
|
*/
|
|
public function getLength()
|
|
{
|
|
return $this->length;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double length = 3;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setLength($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->length = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Gradient.ColorStop stops = 4;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getStops()
|
|
{
|
|
return $this->stops;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Gradient.ColorStop stops = 4;</code>
|
|
* @param array<\Rv\Data\Graphics\Gradient\ColorStop>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setStops($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Graphics\Gradient\ColorStop::class);
|
|
$this->stops = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|