GithubHelp home page GithubHelp logo

chisterwu / eto Goto Github PK

View Code? Open in Web Editor NEW

This project forked from picoe/eto

0.0 0.0 0.0 94.02 MB

Cross platform GUI framework for desktop and mobile applications in .NET

License: Other

Shell 0.02% C# 99.66% F# 0.16% Batchfile 0.01% Visual Basic .NET 0.14%

eto's Introduction

Eto.Forms

A cross platform desktop and mobile user interface framework

Build discussions Gitter wiki NuGet MyGet

Description

This framework can be used to build applications that run across multiple platforms using their native toolkit, with an easy to use API. This will make your applications look and work as a native application on all platforms, using a single UI codebase.

For advanced scenarios, you can take advantage of each platform's capabilities by wrapping your common UI in a larger application, or even create your own high-level controls with a custom implementations per platform.

This framework currently supports creating Desktop applications that work across Windows Forms, WPF, MonoMac, and GTK#. There is a Mobile/iOS port in the works, but is considered incomplete.

This framework was built so that using it in .NET is natural. For example, a simple hello-world application might look like:

using Eto.Forms;
using Eto.Drawing;

public class MyForm : Form
{
	public MyForm ()
	{
		Title = "My Cross-Platform App";
		ClientSize = new Size(200, 200);
		Content = new Label { Text = "Hello World!" };
	}
	
	[STAThread]
	static void Main()
	{
		new Application().Run(new MyForm());
	}
}

or in a F# script:

#load ".paket/load/eto.platform.windows.fsx"
// see https://fsprojects.github.io/Paket/paket-generate-load-scripts.html

open Eto.Drawing
open Eto.Forms

type MyForm() as this =
    inherit Form()
    do
        this.Title      <- "My Cross-Platform App"
        this.ClientSize <- Size (200, 200)
        this.Content    <- new Label(Text = "Hello F# World!")

Eto.Platform.Initialize(Eto.Platforms.WinForms)
let app = new Application()
let form = new MyForm()
form.Show()

Getting Started

To begin creating apps using Eto.Forms, follow the Quick Start Guide.

To compile or contribute to Eto.Forms, read the Contributing Guide.

Screenshots

Windows via WPF:

Mac via MonoMac:

Linux via GTK#3:

Applications

Third party libraries

Pure Eto.Forms SkiaSharp edition
ScottPlot pure Plotting library that makes it easy to interactively display large datasets. samplesample
LiveCharts skia Simple, flexible, powerful and open source data visualization for .Net. samplesamplesample
Microcharts skia Create elegant Cross-Platform simple charts. sample
OxyPlot pure skia Cross-platform plotting library for .NET. samplesamplesample
Mapsui skia A C# map component for apps. samplesamplesample
LibVLCSharp pure Display a video in an Eto app. samplesample
Eto.OpenTK pure OpenGL viewport control for Eto.Forms using OpenTK.
Eto.Veldrid pure A control to embed the Veldrid graphics library in Eto.Forms.
Eto.CodeEditor pure A package that gives you a code editor control in Eto.Forms.
Eto.HtmlRenderer pure Provides an Eto control to display HTML content.
Eto.RainbowLoading pure skia A control showing the Android loading indicator. sample
Eto.GifImageView pure A control for displaying GIF's. sample
Eto.SkiaDraw pure A control enabling use of SkiaSharp in Eto.
Eto.Containers pure Some extra Eto.Forms container controls.

๐Ÿ‘‰ Note : Some packages are in the pipeline but will not appear until next release is created.

Assemblies

Your project only needs to reference Eto.dll, and include the corresponding platform assembly that you wish to target. To run on a Mac platform, you need to bundle your app.

  • Eto.dll - Eto.Forms (UI), Eto.Drawing (Graphics), and platform loading
  • Eto.Mac64.dll - MonoMac platform for OS X using 64-bit mono
  • Eto.XamMac2.dll - Xamarin.Mac Unified platform for OS X to embed mono
  • Eto.macOS.dll - .NET 6 platform for OS X (for use with the net6.0-macos target)
  • Eto.WinForms.dll - Windows Forms platform using GDI+ for graphics
  • Eto.Direct2D.dll - Windows Forms platform using Direct2D for graphics
  • Eto.Wpf.dll - Windows Presentation Foundation platform
  • Eto.Gtk.dll - Gtk+3 platform for Mac, Windows, and Linux.
  • Eto.iOS.dll - Xamarin.iOS platform
  • Eto.Android.dll - Xamarin.Android platform

Currently supported targets

  • OS X: MonoMac, Xamarin.Mac, or net6.0-macos
  • Linux: GTK+ 3
  • Windows: Windows Forms (using GDI or Direct2D) or WPF

Under development

These platforms are currently incomplete or in development. Any eager bodies willing to help feel free to do so!

  • iOS using Xamarin.iOS
  • Android using Xamarin.Android (Eto.Android)

eto's People

Contributors

cwensley avatar harry-cpp avatar fredrikhr avatar miepee avatar keepwn avatar martinrothschink avatar panzerfather avatar allsorts46 avatar lubos avatar stevegilham avatar carlokok avatar smoothdeveloper avatar danrigby avatar rafntor avatar bchavez avatar derbyw avatar jaedog avatar e673 avatar slowlogicboy avatar firdacz avatar acormier avatar commonloon102 avatar ermshiperete avatar halid-durakovic avatar piersdeseilligny avatar manuelhu avatar wjk avatar philstopford avatar sjb avatar itendswithtens avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.