Пример #1
0
RenderMedia::RenderMedia(HTMLMediaElement* video, const IntSize& intrinsicSize)
    : RenderImage(video)
    , m_controls(new MediaControls(video))
{
    setImageResource(RenderImageResource::create());
    setIntrinsicSize(intrinsicSize);
}
Пример #2
0
	void Button::setPropertyOverride(const std::string& _key, const std::string& _value)
	{
		/// @wproperty{Button, StateSelected, bool} Set state selected.
		if (_key == "StateSelected")
			setStateSelected(utility::parseValue<bool>(_value));

		/// @wproperty{Button, ModeImage, bool} Устанавливает режим работы кнопки, в котором она свои состояния берет из картинки.
		else if (_key == "ModeImage")
			setModeImage(utility::parseValue<bool>(_value));

		/// @wproperty{Button, ImageResource, string} Ссылка на ресурс картинки.
		else if (_key == "ImageResource")
			setImageResource(_value);

		/// @wproperty{Button, ImageGroup, string} Группа картинки в ресурсе.
		else if (_key == "ImageGroup")
			setImageGroup(_value);

		/// @wproperty{Button, ImageName, string} Имя картинки в ресурсе.
		else if (_key == "ImageName")
			setImageName(_value);

		else
		{
			Base::setPropertyOverride(_key, _value);
			return;
		}

		eventChangeProperty(this, _key, _value);
	}
Пример #3
0
	void Button::setPropertyOverride(const std::string& _key, const std::string& _value)
	{
		/// @wproperty{Button, StateSelected, bool} Set state selected.
		if (_key == "StateSelected")
			setStateSelected(utility::parseValue<bool>(_value));
		else if (_key == "ModeImage")
			setModeImage(utility::parseValue<bool>(_value));
		else if (_key == "ImageResource")
			setImageResource(_value);
		else if (_key == "ImageGroup")
			setImageGroup(_value);
		else if (_key == "ImageName")
			setImageName(_value);
		else
		{
			Base::setPropertyOverride(_key, _value);
			return;
		}
		eventChangeProperty(this, _key, _value);
	}
Пример #4
0
LayoutMedia::LayoutMedia(HTMLMediaElement* video) : LayoutImage(video) {
  setImageResource(LayoutImageResource::create());
}
Пример #5
0
RenderMedia::RenderMedia(HTMLMediaElement* video)
    : RenderImage(video)
{
    setImageResource(RenderImageResource::create());
}
Пример #6
0
RenderMedia::RenderMedia(HTMLMediaElement* video)
    : RenderImage(video)
    , m_controls(new MediaControls(video))
{
    setImageResource(RenderImageResource::create());
}
Пример #7
0
RenderMedia::RenderMedia(HTMLMediaElement& element, PassRef<RenderStyle> style, const IntSize& intrinsicSize)
    : RenderImage(element, std::move(style))
{
    setImageResource(RenderImageResource::create());
    setIntrinsicSize(intrinsicSize);
}
Пример #8
0
RenderMedia::RenderMedia(HTMLMediaElement& element, PassRef<RenderStyle> style)
    : RenderImage(element, std::move(style))
{
    setImageResource(RenderImageResource::create());
}