Haxe wrapper for the libYUI library
Revision | 69a0302cb83e826d6e6bf800384eddd7f78e3464 (tree) |
---|---|
Zeit | 2022-03-20 00:30:28 |
Autor | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fast...> |
Commiter | Jaime Marquínez Ferrándiz |
Add YWidgetFactory.createHBox
@@ -33,9 +33,11 @@ | ||
33 | 33 | var vbox = factory.createVBox(dialog); |
34 | 34 | factory.createLabel(vbox, "Hello, world"); |
35 | 35 | |
36 | - this.okButton = factory.createPushButton(vbox, "&OK").fromRaw(); | |
37 | - this.openPopupButton = factory.createPushButton(vbox, "O&pen Popup").fromRaw(); | |
38 | - this.wizardDialogButton = factory.createPushButton(vbox, "&Wizard Popup").fromRaw(); | |
36 | + var hbox = factory.createHBox(vbox); | |
37 | + this.okButton = factory.createPushButton(hbox, "&OK").fromRaw(); | |
38 | + this.openPopupButton = factory.createPushButton(hbox, "O&pen Popup").fromRaw(); | |
39 | + this.wizardDialogButton = factory.createPushButton(hbox, "&Wizard Popup").fromRaw(); | |
40 | + | |
39 | 41 | this.closeButton = factory.createPushButton(vbox, "&Close").fromRaw(); |
40 | 42 | |
41 | 43 | this.eventLoop(); |
@@ -18,6 +18,7 @@ | ||
18 | 18 | overload public function createDialog (dialogType : YDialogType) : cpp.RawPointer<YDialog>; |
19 | 19 | overload public function createDialog (dialogType : YDialogType, colorMode : YDialogColorMode = YDialogNormalColor) : cpp.RawPointer<YDialog>; |
20 | 20 | public function createVBox(parent : AutoRawPointer<YWidget>) : cpp.RawPointer<YLayoutBox>; |
21 | + public function createHBox(parent : AutoRawPointer<YWidget>) : cpp.RawPointer<YLayoutBox>; | |
21 | 22 | |
22 | 23 | public function createLabel (parent : AutoRawPointer<YWidget>, text : AutoStdString, isHeading : Bool = false, isOutputField : Bool = false) : cpp.RawPointer<YLabel>; |
23 | 24 | public function createPushButton (parent : AutoRawPointer<YWidget>, label : AutoStdString) : cpp.RawPointer<YPushButton>; |