-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
smarthome
committed
Aug 10, 2023
1 parent
4a5caf8
commit 7b42aad
Showing
4 changed files
with
132 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
|
||
namespace FamilyTree.Configuration | ||
{ | ||
{ | ||
public interface IConfiguration | ||
{ | ||
int GetNumberOfGenerations(); | ||
IEnumerable<float> GetCreateRadii(); | ||
IEnumerable<TextInfo> GetTextInfo(Person person, int currentGeneration); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Drawing; | ||
|
||
namespace FamilyTree.Configuration | ||
{ | ||
public class TextInfo | ||
{ | ||
public string Text { get; } | ||
|
||
public TextInfo(string text, Color color, float fontSize) | ||
{ | ||
Text = text; | ||
Color = color; | ||
FontSize = fontSize; | ||
} | ||
|
||
public Color Color { get; } | ||
public float FontSize { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters