UI_Generate Test icon button Added ComponentStackRework

Thu, 03 Sep 2020 06:36:20 +0300

author
Yakup Beyoglu
date
Thu, 03 Sep 2020 06:36:20 +0300
branch
ComponentStackRework
changeset 1428
7f2cd244070c
parent 1427
ed133bbb568d
child 1429
ddf7827ce3ac

UI_Generate Test icon button Added

Testing/Source/Manual/UI_Generate.cpp file | annotate | diff | comparison | revisions
--- a/Testing/Source/Manual/UI_Generate.cpp	Thu Sep 03 01:45:39 2020 +0300
+++ b/Testing/Source/Manual/UI_Generate.cpp	Thu Sep 03 06:36:20 2020 +0300
@@ -42,6 +42,9 @@
     Gorgon::Widgets::Button btn("press",Gorgon::Widgets::Registry::Button_Regular);
     Gorgon::Widgets::Button icnbtn("+", Gorgon::Widgets::Registry::Button_Icon);
     Gorgon::Widgets::Button icnbtn2("-", Gorgon::Widgets::Registry::Button_Icon);
+    auto icon = Triangle(5, 10);
+    icon.Prepare();
+    icnbtn.SetIcon(icon);
 
     Gorgon::Widgets::Label l("Coffee:");
 
@@ -141,6 +144,7 @@
     Gorgon::Widgets::Button icnbtngen1(icobtntemp,"+");
     Gorgon::Widgets::Button icnbtn2gen1(icobtntemp, "-");
     Gorgon::Widgets::Label labelgen1(lbltemp, "Coffee:");
+    icnbtngen1.SetIcon(icon);
     
     Gorgon::Widgets::RadioButtons<int> radiogen1(radtemp);
     radiogen1.Add(0, "Americano");
@@ -244,7 +248,7 @@
     Gorgon::Widgets::Button icnbtngen2(icobtntemp2, "+");
     Gorgon::Widgets::Button icnbtn2gen2(icobtntemp2, "-");
     Gorgon::Widgets::Label labelgen2(lbltemp2, "Coffee:");
-
+    icnbtngen2.SetIcon(icon);
     Gorgon::Widgets::RadioButtons<int> radiogen2(radtemp2);
     radiogen2.Add(0, "Americano");
     radiogen2.Add(1, "Latte");

mercurial