Example #1
0
        internal static LinuxFramebufferLifetime Initialize <T>(T builder, string fbdev = null) where T : AppBuilderBase <T>, new()
        {
            var platform = new LinuxFramebufferPlatform(fbdev);

            builder.UseSkia().UseWindowingSubsystem(platform.Initialize, "fbdev");
            return(new LinuxFramebufferLifetime(platform._fb));
        }
        internal static TopLevel Initialize <T>(T builder, string fbdev = null) where T : AppBuilderBase <T>, new()
        {
            var platform = new LinuxFramebufferPlatform(fbdev);

            builder.UseSkia().UseWindowingSubsystem(platform.Initialize, "fbdev")
            .SetupWithoutStarting();
            var tl = new EmbeddableControlRoot(TopLevel = new FramebufferToplevelImpl(platform._fb));

            tl.Prepare();
            return(tl);
        }