// Called when properties on the control are changed.
void ElementFormControlTextArea::OnPropertyChange(const Core::PropertyNameList& changed_properties)
{
	ElementFormControl::OnPropertyChange(changed_properties);

	if (changed_properties.find("color") != changed_properties.end() ||
		changed_properties.find("background-color") != changed_properties.end())
		widget->UpdateSelectionColours();
}
// Called when properties on the element are changed.
void ElementCircularBar::OnPropertyChange(const Core::PropertyNameList& changed_properties)
{
	Element::OnPropertyChange(changed_properties);

	if (changed_properties.find("gauge-src") != changed_properties.end())
	{
		LoadTexture();
	}

	if(changed_properties.find("width") != changed_properties.end())
	{
		int width = GetProperty< int >("width");

		gauge_extent.x = width;

		geometry_dirty = true;
	}

	if(changed_properties.find("height") != changed_properties.end())
	{
		int height = GetProperty< int >("height");

		gauge_extent.y = height;

		geometry_dirty = true;
	}
}
Beispiel #3
0
// Called when properties on the control are changed.
void InputTypeText::OnPropertyChange(const Core::PropertyNameList& changed_properties)
{
    if (changed_properties.find("color") != changed_properties.end() ||
            changed_properties.find("background-color") != changed_properties.end())
        widget->UpdateSelectionColours();
}