Woowz11.WoowzLib.Window
0.0.0
dotnet add package Woowz11.WoowzLib.Window --version 0.0.0
NuGet\Install-Package Woowz11.WoowzLib.Window -Version 0.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Woowz11.WoowzLib.Window" Version="0.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Woowz11.WoowzLib.Window" Version="0.0.0" />
<PackageReference Include="Woowz11.WoowzLib.Window" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Woowz11.WoowzLib.Window --version 0.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Woowz11.WoowzLib.Window, 0.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Woowz11.WoowzLib.Window@0.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Woowz11.WoowzLib.Window&version=0.0.0
#tool nuget:?package=Woowz11.WoowzLib.Window&version=0.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<div align="center">
Информация
</div>
WoowzLib.Window — Создание WinAPI окон, и создание для них элементов
Детали
- Нужен WoowzLib
Ссылки
<div align="center">
Под-Модули
| Название | Информация |
|---|---|
| Window | Функции для окон |
Больше информации
Window
</div> <details><summary>Смотреть...</summary>
Пример создания окна:
public static int Main(string[] Args){
try{
WL.WoowzLib.Start();
Window W = new Window();
W.BackgroundColor = ColorB.Blue;
double D = 2;
while(W.Alive){
WL.System.Tick.LimitFPS(1, 120, TD => {
D += TD.DeltaTimeS;
if(D > 0.5f){ W.Title = "Пример окна | FPS: " + TD.FPS; D = 0; }
W.Render();
});
WL.Window.Update();
}
}catch(Exception e){
Logger.Fatal("Произошла фатальная ошибка внутри самого приложения!", e);
return 1;
}
return 0;
}
Пример создания двух окон:
public static int Main(string[] Args){
try{
WL.WoowzLib.Start();
Window W1 = new Window();
W1.BackgroundColor = ColorB.Blue;
Window W2 = new Window();
W2.BackgroundColor = ColorB.Red;
double D = 2;
while(W1.Alive || W2.Alive){
WL.System.Tick.LimitFPS(1, 120, TD => {
if(W1.Alive){
D += TD.DeltaTimeS;
if(D > 0.5f){ W1.Title = "Пример окна | FPS: " + TD.FPS; D = 0; }
W1.Render();
}
if(W2.Alive){
W2.Title = "Второе окно | " + WL.Math.Random.Fast_0_1();
W2.Render();
}
});
WL.Window.Update();
}
}catch(Exception e){
Logger.Fatal("Произошла фатальная ошибка внутри самого приложения!", e);
return 1;
}
return 0;
}
Пример разноцветного окна:
public static int Main(string[] Args){
try{
WL.WoowzLib.Start();
Window W = new Window(Title: "Эпилепсия... 😁");
W.OnClose += _ => {
Logger.Info("Окно закрывается!");
};
while(W.Alive){
WL.System.Tick.LimitFPS(1, 120, TD => {
W.RenderMessage(W.CursorPosition + " | " + W.CursorInside, new ColorB(
(byte)(WL.Math.DSin((float)TD.DeltaTick * 1) * 255),
(byte)(WL.Math.DSin((float)TD.DeltaTick * 2) * 255),
(byte)(WL.Math.DSin((float)TD.DeltaTick * 3) * 255)
));
});
WL.Window.Update();
}
}catch(Exception e){
Logger.Fatal("Произошла фатальная ошибка внутри самого приложения!", e);
return 1;
}
return 0;
}
Пример окна с панелями (элементами):
public static int Main(string[] Args){
try{
WL.WoowzLib.Start();
Window W = new Window(Title: "Элементы в окне");
W.BackgroundColor = ColorB.Gray;
Panel P = new Panel();
W.Add(P);
// что-бы было посередине
P.Anchor_X = 0;
P.Anchor_Y = 0;
// что-бы растягивалось
P.Anchor_Width = 0.8f;
P.Anchor_Height = 0.8f;
P.OnCursorInside += (_, Inside) => {
P.Color = Inside ? ColorB.Green : ColorB.White;
};
Panel P_P = new Panel(Color: ColorB.Red);
P_P.Parent = P;
while(W.Alive){
WL.System.Tick.LimitFPS(1, 120, TD => {
P_P.Anchor_X = WL.Math.Sin((float)TD.DeltaTick);
P_P.Anchor_Y = -WL.Math.Cos((float)TD.DeltaTick);
P_P.Size = new Vector2U(
(uint)(128 + (WL.Math.Random.Fast_0_1() * 128)),
(uint)(128 + (WL.Math.Random.Fast_0_1() * 128))
);
W.Render();
});
WL.Window.Update();
}
}catch(Exception e){
Logger.Fatal("Произошла фатальная ошибка внутри самого приложения!", e);
return 1;
}
return 0;
}
</details>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Woowz11.WoowzLib (>= 0.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.0 | 149 | 2/9/2026 |