static void Main(string[] args) { Elementary.Initialize(); Elementary.ThemeOverlay(); var profile = Elementary.GetProfile(); Console.WriteLine("ELM_PROFILE : {0}", profile); Console.WriteLine("ELM_SCALE : {0}", Elementary.GetScale()); Elementary.EvasObjectRealized += (s, e) => { var obj = (EvasObject)s; //Console.WriteLine("EvasObject Realized : ClassName = {0}", obj.ClassName); }; TestRunner testRunner = new TestRunner(); testRunner.Profile = profile; testRunner.Run(args); // if running with appfw is failed, below line will be executed. if (!s_terminated) { testRunner.RunStandalone(args); } }
static void Main(string[] args) { Elementary.Initialize(); Elementary.ThemeOverlay(); var profile = Elementary.GetProfile(); Console.WriteLine("ELM_PROFILE : {0}", profile); Console.WriteLine("ELM_SCALE : {0}", Elementary.GetScale()); /*Elementary.EvasObjectRealized += (s, e) => * { * var obj = (EvasObject)s; * Console.WriteLine("EvasObject Realized : {0}", obj.GetType()); * }; * * Elementary.ItemObjectRealized += (s, e) => * { * var obj = (ItemObject)s; * Console.WriteLine("ItemObject Realized : {0} (Parent : {1})", obj.GetType(), obj.Parent != null? obj.Parent.GetType() : null); * };*/ TestRunner testRunner = new TestRunner(); testRunner.Profile = profile; testRunner.Run(args); // if running with appfw is failed, below line will be executed. if (!s_terminated) { testRunner.RunStandalone(args); } }
static void Main(string[] args) { Elementary.Initialize(); Elementary.ThemeOverlay(); Console.WriteLine("ELM_PROFILE : {0}", Elementary.GetProfile()); Console.WriteLine("ELM_SCALE : {0}", Elementary.GetScale()); TestRunner testRunner = new TestRunner(); testRunner.Run(args); // if running with appfw is failed, below line will be executed. if (!s_terminated) { testRunner.RunStandalone(args); } }
private static IDictionary <string, object> GetDimensions() { var bounds = _window.ScreenSize; double scale = Elementary.GetScale(); return(new Dictionary <string, object> { { "window", new Dictionary <string, object> { { "width", bounds.Width }, { "height", bounds.Height }, { "scale", scale }, //* TODO: density and DPI needed? } }, }); }