<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://cegui.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Widget</id>
		<title>Widget - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://cegui.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Widget"/>
		<link rel="alternate" type="text/html" href="http://cegui.org/wiki/index.php?title=Widget&amp;action=history"/>
		<updated>2026-04-24T01:18:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>http://cegui.org/wiki/index.php?title=Widget&amp;diff=4385&amp;oldid=prev</id>
		<title>Kulik: rough initial version</title>
		<link rel="alternate" type="text/html" href="http://cegui.org/wiki/index.php?title=Widget&amp;diff=4385&amp;oldid=prev"/>
				<updated>2011-03-27T14:27:09Z</updated>
		
		<summary type="html">&lt;p&gt;rough initial version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{VersionBadge|0.8}}&lt;br /&gt;
&lt;br /&gt;
{{Widget&lt;br /&gt;
 |name=Widget&lt;br /&gt;
 |cppclass=CEGUI::Widget&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
CEGUI::Widget is the base class of all CEGUI widgets.&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
CEGUI implements a simplistic property introspection via CEGUI::PropertySet. You can set/get properties as strings or even as native types for added speed (added in 0.8). This is used when loading/saving layouts as well.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
// ... wdt is a non-const widget pointer (Widget*)&lt;br /&gt;
// using strings&lt;br /&gt;
wdt-&amp;gt;setProperty(&amp;quot;SomeProperty&amp;quot;, &amp;quot;True&amp;quot;);&lt;br /&gt;
// or native types&lt;br /&gt;
wdt-&amp;gt;setProperty&amp;lt;bool&amp;gt;(&amp;quot;SomeProperty&amp;quot;, true);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Events ==&lt;br /&gt;
[[Event]]s are fired by most of the widgets. You can subscribe to them via:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
// ... wdt is a non-const widget pointer (Widget*)&lt;br /&gt;
// subscription to a class method&lt;br /&gt;
wdt-&amp;gt;subscribeEvent(&amp;quot;EventName&amp;quot;, Event::Subscriber(&amp;amp;ClassType::classMethod, instanceOfTheClass));&lt;br /&gt;
// subscription to a free function&lt;br /&gt;
wdt-&amp;gt;subscribeEvent(&amp;quot;EventName&amp;quot;, Event::Subscriber(&amp;amp;freeFunction));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Instead of putting event names as string literals, you might want to use static constants for added safety.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
wdt-&amp;gt;subscribeEvent(SomeWidgetSomewhere::EventName, Event::Subscriber(&amp;amp;freeFunction));&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Positioning ==&lt;br /&gt;
All widgets utilise [[Unified_Positions_and_Sizes_System]] so they can be sized in absolute, relative values or combinations of both.&lt;br /&gt;
&lt;br /&gt;
== Enabled/Disabled ==&lt;br /&gt;
When a widget is disabled, it usually doesn't allow any interaction with it and may employ a different rendering.&lt;br /&gt;
[[File:Enabled_vs_Disabled_FrameWindow.png]]&lt;br /&gt;
&lt;br /&gt;
== Activated/Deactivated ==&lt;br /&gt;
When a window is deactivated, no inputs are processed by it until it's activated.&lt;/div&gt;</summary>
		<author><name>Kulik</name></author>	</entry>

	</feed>