</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug</OutputPath>
- <DefineConstants>TRACE;DEBUG;__linux__;MEASURE_TIME;DEBUG_LOAD_TIME0;DEBUG_LAYOUTING0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0</DefineConstants>
+ <DefineConstants>TRACE;DEBUG;__linux__;MEASURE_TIME;DEBUG_LOAD_TIME0;DEBUG_LAYOUTING;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0</DefineConstants>
</PropertyGroup>
<!-- <PropertyGroup Condition=" '$(Platform)' == 'Linux_x86' ">
<DefineConstants>__linux__</DefineConstants>
<Compile Include="src\GraphicObjects\TemplatedContainer.cs" />
<Compile Include="src\GraphicObjects\Popper.cs" />
<Compile Include="src\TextChangeEventArgs.cs" />
- <Compile Include="src\LayoutChangeEventArgs.cs" />
<Compile Include="src\ReflexionExtensions.cs" />
<Compile Include="src\XCursor.cs" />
<Compile Include="src\GraphicObjects\Grid.cs" />
<Compile Include="src\SolidColor.cs" />
<Compile Include="src\Gradient.cs" />
<Compile Include="src\Fill\Fill.cs" />
+ <Compile Include="src\LayoutingEventArgs.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
{
IsPopped = false;
}
- void _overlay_LayoutChanged (object sender, LayoutChangeEventArgs e)
+ void _overlay_LayoutChanged (object sender, LayoutingEventArgs e)
{
ILayoutable tc = Overlay.Parent as ILayoutable;
if (tc == null)
}else if (layoutType == LayoutingType.Height)
this.RegisterForLayouting (LayoutingType.PositionChildren);
}
- public override void OnChildLayoutChanges (object sender, LayoutChangeEventArgs arg)
+ public override void OnChildLayoutChanges (object sender, LayoutingEventArgs arg)
{
base.OnChildLayoutChanges (sender, arg);
public event EventHandler<KeyboardKeyEventArgs> KeyUp;
public event EventHandler Focused;
public event EventHandler Unfocused;
- public event EventHandler<LayoutChangeEventArgs> LayoutChanged;
+ public event EventHandler<LayoutingEventArgs> LayoutChanged;
#endregion
#region public properties
if (Parent == null)
return;
#if DEBUG_LAYOUTING
- Debug.WriteLine ("RegisterForLayouting => {1}->{0}", layoutType, this.ToString());
+ Debug.WriteLine ("RegisterForLayouting => {1}->{0}", RegisteredLayoutings.ToString(), this.ToString());
#endif
//deleteLQI (RegisteredLayoutings);
this.RegisterForLayouting (LayoutingType.Y);
break;
}
- LayoutChanged.Raise (this, new LayoutChangeEventArgs (layoutType));
+ LayoutChanged.Raise (this, new LayoutingEventArgs (layoutType));
}
/// <summary> Update layout component, this is where the computation of alignement
/// and size take place </summary>
break;
}
}
- public virtual void OnChildLayoutChanges (object sender, LayoutChangeEventArgs arg)
+ public virtual void OnChildLayoutChanges (object sender, LayoutingEventArgs arg)
{
GraphicObject g = sender as GraphicObject;
switch (arg.LayoutType) {
IsPopped = false;
}
- void _content_LayoutChanged (object sender, LayoutChangeEventArgs e)
+ void _content_LayoutChanged (object sender, LayoutingEventArgs e)
{
ILayoutable tc = Content.Parent as ILayoutable;
if (tc == null)
if (Content.Parent == null)
tc.AddWidget (Content);
tc.PutOnTop (Content);
- _content_LayoutChanged (this, new LayoutChangeEventArgs (LayoutingType.Sizing));
+ _content_LayoutChanged (this, new LayoutingEventArgs (LayoutingType.Sizing));
}
Pop.Raise (this, e);
}
break;
}
}
- public virtual void OnChildLayoutChanges (object sender, LayoutChangeEventArgs arg)
+ public virtual void OnChildLayoutChanges (object sender, LayoutingEventArgs arg)
{
GraphicObject g = sender as GraphicObject;
switch (arg.LayoutType) {
: base(){}
#region GraphicObject Overrides
- void OnChildLayoutChanges (object sender, LayoutChangeEventArgs arg)
+ void OnChildLayoutChanges (object sender, LayoutingEventArgs arg)
{
int maxScroll = MaximumScroll;
if (_verticalScrolling) {
+++ /dev/null
-using System;
-
-namespace Crow
-{
- public class LayoutChangeEventArgs: EventArgs
- {
- public LayoutingType LayoutType;
-
- public LayoutChangeEventArgs (LayoutingType _layoutType) : base()
- {
- LayoutType = _layoutType;
- }
- }
-}
-
--- /dev/null
+using System;
+
+namespace Crow
+{
+ public class LayoutingEventArgs: EventArgs
+ {
+ public LayoutingType LayoutType;
+
+ public LayoutingEventArgs (LayoutingType _layoutType) : base()
+ {
+ LayoutType = _layoutType;
+ }
+ }
+}
+