Beispiel #1
0
 public static void InitializeWithBridgeFramebuffer <T>(this T builder, Action <TopLevel> setup,
                                                        CancellationToken stop = default)
     where T : AppBuilderBase <T>, new()
 {
     setup(BridgeFrameBufferPlatform.Initialize(builder));
     builder.BeforeStartCallback(builder);
     builder.Instance.Run(new TokenClosable(stop));
 }
Beispiel #2
0
        internal static TopLevel Initialize <T>(T builder) where T : AppBuilderBase <T>, new()
        {
            var platform = new BridgeFrameBufferPlatform();

            builder.UseSkia()
            .UseWindowingSubsystem(platform.Initialize, "fbdev")
            .SetupWithoutStarting();

            var tl = new EmbeddableControlRoot(TopLevel = new FramebufferToplevelImpl(platform._fb));

            tl.Prepare();

            return(tl);
        }