rv.data.Slide.Element.TextScroller
*/
class TextScroller extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field bool should_scroll = 1;
*/
protected $should_scroll = false;
/**
* Generated from protobuf field double scroll_rate = 2;
*/
protected $scroll_rate = 0.0;
/**
* Generated from protobuf field bool should_repeat = 3;
*/
protected $should_repeat = false;
/**
* Generated from protobuf field double repeat_distance = 4;
*/
protected $repeat_distance = 0.0;
/**
* Generated from protobuf field .rv.data.Slide.Element.TextScroller.Direction scrolling_direction = 5;
*/
protected $scrolling_direction = 0;
/**
* Generated from protobuf field bool starts_off_screen = 6;
*/
protected $starts_off_screen = false;
/**
* Generated from protobuf field double fade_left = 7;
*/
protected $fade_left = 0.0;
/**
* Generated from protobuf field double fade_right = 8;
*/
protected $fade_right = 0.0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type bool $should_scroll
* @type float $scroll_rate
* @type bool $should_repeat
* @type float $repeat_distance
* @type int $scrolling_direction
* @type bool $starts_off_screen
* @type float $fade_left
* @type float $fade_right
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Slide::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field bool should_scroll = 1;
* @return bool
*/
public function getShouldScroll()
{
return $this->should_scroll;
}
/**
* Generated from protobuf field bool should_scroll = 1;
* @param bool $var
* @return $this
*/
public function setShouldScroll($var)
{
GPBUtil::checkBool($var);
$this->should_scroll = $var;
return $this;
}
/**
* Generated from protobuf field double scroll_rate = 2;
* @return float
*/
public function getScrollRate()
{
return $this->scroll_rate;
}
/**
* Generated from protobuf field double scroll_rate = 2;
* @param float $var
* @return $this
*/
public function setScrollRate($var)
{
GPBUtil::checkDouble($var);
$this->scroll_rate = $var;
return $this;
}
/**
* Generated from protobuf field bool should_repeat = 3;
* @return bool
*/
public function getShouldRepeat()
{
return $this->should_repeat;
}
/**
* Generated from protobuf field bool should_repeat = 3;
* @param bool $var
* @return $this
*/
public function setShouldRepeat($var)
{
GPBUtil::checkBool($var);
$this->should_repeat = $var;
return $this;
}
/**
* Generated from protobuf field double repeat_distance = 4;
* @return float
*/
public function getRepeatDistance()
{
return $this->repeat_distance;
}
/**
* Generated from protobuf field double repeat_distance = 4;
* @param float $var
* @return $this
*/
public function setRepeatDistance($var)
{
GPBUtil::checkDouble($var);
$this->repeat_distance = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Slide.Element.TextScroller.Direction scrolling_direction = 5;
* @return int
*/
public function getScrollingDirection()
{
return $this->scrolling_direction;
}
/**
* Generated from protobuf field .rv.data.Slide.Element.TextScroller.Direction scrolling_direction = 5;
* @param int $var
* @return $this
*/
public function setScrollingDirection($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Slide\Element\TextScroller\Direction::class);
$this->scrolling_direction = $var;
return $this;
}
/**
* Generated from protobuf field bool starts_off_screen = 6;
* @return bool
*/
public function getStartsOffScreen()
{
return $this->starts_off_screen;
}
/**
* Generated from protobuf field bool starts_off_screen = 6;
* @param bool $var
* @return $this
*/
public function setStartsOffScreen($var)
{
GPBUtil::checkBool($var);
$this->starts_off_screen = $var;
return $this;
}
/**
* Generated from protobuf field double fade_left = 7;
* @return float
*/
public function getFadeLeft()
{
return $this->fade_left;
}
/**
* Generated from protobuf field double fade_left = 7;
* @param float $var
* @return $this
*/
public function setFadeLeft($var)
{
GPBUtil::checkDouble($var);
$this->fade_left = $var;
return $this;
}
/**
* Generated from protobuf field double fade_right = 8;
* @return float
*/
public function getFadeRight()
{
return $this->fade_right;
}
/**
* Generated from protobuf field double fade_right = 8;
* @param float $var
* @return $this
*/
public function setFadeRight($var)
{
GPBUtil::checkDouble($var);
$this->fade_right = $var;
return $this;
}
}