RenderMedia::RenderMedia(HTMLMediaElement* video, const IntSize& intrinsicSize) : RenderImage(video) , m_controls(new MediaControls(video)) { setImageResource(RenderImageResource::create()); setIntrinsicSize(intrinsicSize); }
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); }
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); }
LayoutMedia::LayoutMedia(HTMLMediaElement* video) : LayoutImage(video) { setImageResource(LayoutImageResource::create()); }
RenderMedia::RenderMedia(HTMLMediaElement* video) : RenderImage(video) { setImageResource(RenderImageResource::create()); }
RenderMedia::RenderMedia(HTMLMediaElement* video) : RenderImage(video) , m_controls(new MediaControls(video)) { setImageResource(RenderImageResource::create()); }
RenderMedia::RenderMedia(HTMLMediaElement& element, PassRef<RenderStyle> style, const IntSize& intrinsicSize) : RenderImage(element, std::move(style)) { setImageResource(RenderImageResource::create()); setIntrinsicSize(intrinsicSize); }
RenderMedia::RenderMedia(HTMLMediaElement& element, PassRef<RenderStyle> style) : RenderImage(element, std::move(style)) { setImageResource(RenderImageResource::create()); }