Exemple #1
0
        public static GapPlugin AddGap(this IConfigContext context, GapPluginConfig config)
        {
            config ??= new GapPluginConfig();
            var plugin = new GapPlugin(config);

            context.AddLayoutProxy((layout) =>
            {
                var gapLayout = new GapLayoutEngine(layout, config.InnerGap, config.OuterGap, config.Delta);
                plugin.RegisterLayout(gapLayout);
                return(gapLayout);
            });
            context.Plugins.RegisterPlugin(plugin);

            return(plugin);
        }
Exemple #2
0
 public GapPlugin(GapPluginConfig config)
 {
     _config = config;
 }
Exemple #3
0
 public GapPlugin()
 {
     _config = new GapPluginConfig();
 }