<EmbeddedResource Include="Styles\Expandable.style" />
<EmbeddedResource Include="Styles\GroupBox.style" />
<EmbeddedResource Include="Styles\ComboBox.style" />
+ <EmbeddedResource Include="Styles\Label.style" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" />
Focusable = true
-Background = DimGray
+Height = -1
-Focusable = true
-Background = DimGray
+
+
--- /dev/null
+Fit = true
<Group Height="{../HeightPolicy}" Width="{../WidthPolicy}">
<Border CornerRadius="5" BorderWidth="1" Margin="6" Foreground="{../../Foreground}"
Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
- <Container Name="Content" Margin="10"
+ <Container Name="Content" Margin="10" MinimumSize="70;10"
Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}"/>
</Border>
<Label Text="{../../Caption}" VerticalAlignment="Top" Left="15"
int frameCpt = 0;
int idx = 0;
string[] testFiles = {
+ "6.crow",
+ "testGroupBox.goml",
"1.crow",
"5.crow",
"testCheckbox.goml",
"testPopper.goml",
"testTextBox.crow",
"testColorList.crow",
-
"4.crow",
"testSpinner.goml",
"testScrollbar.goml",
- "testGroupBox.goml",
"testGrid.goml",
"testButton.crow",
"testBorder.goml",
--- /dev/null
+<?xml version="1.0"?>
+<VerticalStack Fit="true" Background="DimGray" Margin="5">
+<!-- <RadioButton/>-->
+ <Label Text="a" Width="0" Background="Red"/>
+ <Label Text="{fps}" HorizontalAlignment="Right" Background="LimeGreen"/>
+</VerticalStack>
<?xml version="1.0"?>
-<Container Background="vgradient|0:DarkGray|1:DimGray">
- <GroupBox Width="200" Height="150" Background="vgradient|0:SteelBlue|1:Transparent"
- Foreground="ogradient|0:White|1:Black">
- <!-- <Label/>-->
+<!--<Container Background="vgradient|0:DarkGray|1:DimGray">-->
+ <GroupBox Fit="true" Background="vgradient|0:SteelBlue|1:Transparent"
+ Foreground="White">
+<!-- <Label/>-->
</GroupBox>
-</Container>
+<!--</Container>-->
<None Include="Interfaces\testTabView.crow">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
+ <None Include="Interfaces\6.crow">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
</ItemGroup>
<ItemGroup>
<Folder Include="Interfaces\" />
if (Width > 0)
Slot.Width = Width;
else if (Width < 0) {
- int tmp = measureRawSize (LayoutingType.Width);
- if (tmp < 0)
- return false;
- Slot.Width = tmp;
+ Slot.Width = measureRawSize (LayoutingType.Width);
}else if (Parent.RegisteredLayoutings.HasFlag (LayoutingType.Width))
return false;
else
if (Height > 0)
Slot.Height = Height;
else if (Height < 0){
- int tmp = measureRawSize (LayoutingType.Height);
- if (tmp < 0)
- return false;
- Slot.Height = tmp;
+ Slot.Height = measureRawSize (LayoutingType.Height);
}else if (Parent.RegisteredLayoutings.HasFlag (LayoutingType.Height))
return false;
else
using System.Xml.Serialization;
using Cairo;
using OpenTK.Input;
+using System.Diagnostics;
namespace Crow
maxChildrenHeight = 0;
}
void searchLargestChild(){
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine("\tSearch largest child");
+ #endif
largestChild = null;
maxChildrenWidth = 0;
for (int i = 0; i < Children.Count; i++) {
}
}
void searchTallestChild(){
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine("\tSearch tallest child");
+ #endif
tallestChild = null;
maxChildrenHeight = 0;
for (int i = 0; i < Children.Count; i++) {
namespace Crow
{
[Serializable]
+ [DefaultStyle("#Crow.Styles.Label.style")]
public class Label : GraphicObject
{
#region CTOR
NotifyValueChanged ("Text", Text);
}
#region GraphicObject overrides
- [XmlAttributeAttribute()][DefaultValue(-1)]
- public override int Width {
- get { return base.Width; }
- set { base.Width = value; }
- }
- [XmlAttributeAttribute()][DefaultValue(-1)]
- public override int Height {
- get { return base.Height; }
- set { base.Height = value; }
- }
-
protected override int measureRawSize(LayoutingType lt)
{
if (lines == null)