Cerulean.Core 0.3.1

dotnet add package Cerulean.Core --version 0.3.1                
NuGet\Install-Package Cerulean.Core -Version 0.3.1                
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="Cerulean.Core" Version="0.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cerulean.Core --version 0.3.1                
#r "nuget: Cerulean.Core, 0.3.1"                
#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.
// Install Cerulean.Core as a Cake Addin
#addin nuget:?package=Cerulean.Core&version=0.3.1

// Install Cerulean.Core as a Cake Tool
#tool nuget:?package=Cerulean.Core&version=0.3.1                

<h1 align="center">Cerulean UI</h1> <p align="center"> <b>Useful Tools</b><br> <a href="#">CLI Tool</a> | <a href="#">Layout Designer</a> </p> <h4>Available on Nuget</h4>

Nuget Nuget Nuget Nuget

<h2>Basic Information</h2> Write <strong>cross-platform</strong> GUI apps using simple XML and C#.<br> Mainly testing on Windows and Ubuntu. Feel free to test on other platforms.<br> <br> Check out this <a href="https://github.com/Xapier14/Calculator">sample calculator app on CeruleanUI</a>.<br> <br> Should also work on OSX, but you need to install SDL2 and the other libraries to your frameworks folder.<br> Bundle your needed fonts in a folder called "Fonts" in the build directory as the font loader is jank with OSX.

<h2>Getting Started</h2>

Warning This section is heavily under-construction. Use a release build instead if available.

  1. Download a release build here and extract the archive.

  2. Add the crn executable to your binaries folder or add the containing folder to the %PATH% environment variable.

  3. Create your new app via:

    crn new <app_name>
    
  4. Build the project.

    crn build
    

    This should automatically build the XMLs, the dotnet project, and bundle the needed dependencies.

    Currently, the bundler only works on a Windows build target for now. Support for other operating systems will come in a later update.

    See "Important Notes" below on how to bundle and install dependencies for other OSs.

  5. Run the app via:

    crn run
    

    If you run into DllNotFound errors, try running crn bundle.

<h2>Important Notes</h2>

  • .NET 6 is required for the CLI tool.
  • .NET 6 or newer projects are compatible with CeruleanUI.
  • By default, the CLI should use the latest .NET SDK and creates a project with the same version.
  • Use the appropriate SDL2 binaries for your app/system.
    • On Any CPU, use the binaries appropriate for your system's architecture.
    • On x86, use x86.
    • On x64, use x64.
  • On Windows, use the runtime binaries available at <a href="https://libsdl.org/">libsdl.org</a>.
  • On Ubuntu, simply do:
    sudo apt-get install libsdl2-dev
    sudo apt-get install libsdl2-ttf-dev
    sudo apt-get install libsdl2-image-dev
    
    • NOTE: the snap version of dotnet will NOT find the SDL2 library. Please install dotnet with APT.
      • See <a href="https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu">installing dotnet</a> on MSDN.
      • Relevant issue: <a href="https://github.com/exelix11/SysDVR/issues/118">exelix11/SysDVR (#118)</a>.
  • Fonts will be searched first in a folder called Fonts in the environment's current directory, and then the system's font directory.
    • The default font for the Label component is Arial (Subject to change).
    • The library will find the first font with a filename of Arial.ttf or Arial.otf, this is case-insensitive.
    • If not found, it will simply throw a GeneralAPIException: "Font not found.". <h2>Features</h2>

Cerulean API

  • Window Events
  • Styler Element

Cerulean Components

  • Functional Components
    • Timer
    • Pointer
  • Dialog Components
    • Message Box
    • Open File Dialog
    • Save File Dialog
    • Folder Select Dialog
  • Graphical Components
    • Rectangle
    • Image
    • Progress Bar
    • Label
  • Input Components
    • TextBox
    • MultiTextBox
    • Button
    • Check Box
    • Radio Button
    • Drop Down List
  • Container Components
    • Grid
    • Panel
    • Stack Panel
    • Group Tab

Cerulean CLI

  • Style Builder
  • C# Snippet Element
  • Project Builder/Scaffolder

Warning

This is a WIP project, please do not use in commercial projects.

License

This project uses the MIT License. SDL2 and SDL2-CS, dependencies of this project, are released under the zlib license.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cerulean.Core:

Package Downloads
Cerulean.Components

Core UI components for the Cerulean Core API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.1 306 12/30/2022
0.3.0 285 12/29/2022
0.2.0 318 12/29/2022 0.2.0 is deprecated because it has critical bugs.
0.1.0 311 12/29/2022

Consume DllMap for SDL2-CS