• R/O
  • SSH

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Haxe bindings for koreader


Commit MetaInfo

修訂2813401abb3cb72e22baece5bd5ee2470052fe1a (tree)
時間2022-03-28 15:00:43
作者Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fast...>
CommiterJaime Marquínez Ferrándiz

Log Message

Add method to containers for adding widgets

Change Summary

差異

diff -r ed6745a432ba -r 2813401abb3c src/koreader/ui/widget/container/WidgetContainer.lua.hx
--- a/src/koreader/ui/widget/container/WidgetContainer.lua.hx Sat Mar 05 16:12:20 2022 +0100
+++ b/src/koreader/ui/widget/container/WidgetContainer.lua.hx Mon Mar 28 08:00:43 2022 +0200
@@ -1,12 +1,15 @@
11 package koreader.ui.widget.container;
22
3+import koreader.hxutils.Tables;
34 import koreader.ui.widget.Widget.WidgetParams;
45 import KoreaderMacros;
56
67 @:luaRequire("ui/widget/container/widgetcontainer")
78 @:build(KoreaderMacros.setupKoreaderExternClass())
89 extern class WidgetContainer extends Widget {
9-
10+ public inline function addWidget(w : Widget) : Void {
11+ Tables.addArray(untyped this, [w]);
12+ }
1013 }
1114
1215 typedef WidgetContainerParams = {