• R/O
  • SSH

提交

Frequently used words (click to add to your profile)

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

Haxe bindings for koreader


Commit MetaInfo

修訂98f22bb2eadbd4aae104f4d89b749542720ee3cc (tree)
時間2022-03-05 22:55:14
作者Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fast...>
CommiterJaime Marquínez Ferrándiz

Log Message

Define the Color8 type

Change Summary

差異

diff -r 300cc3491f26 -r 98f22bb2eadb demo/haxeplug/HaxePlugin.hx
--- a/demo/haxeplug/HaxePlugin.hx Sat Mar 05 14:44:55 2022 +0100
+++ b/demo/haxeplug/HaxePlugin.hx Sat Mar 05 14:55:14 2022 +0100
@@ -37,7 +37,7 @@
3737 widgets: [
3838 FrameContainer.create({
3939 widgets: [widget,],
40- background: Blitbuffer.COLOR_WHITE,
40+ background: Blitbuffer.COLOR_LIGHT_GRAY,
4141 }),
4242 ],
4343 }),
diff -r 300cc3491f26 -r 98f22bb2eadb src/koreader/ffi/Blitbuffer.lua.hx
--- a/src/koreader/ffi/Blitbuffer.lua.hx Sat Mar 05 14:44:55 2022 +0100
+++ b/src/koreader/ffi/Blitbuffer.lua.hx Sat Mar 05 14:55:14 2022 +0100
@@ -1,13 +1,15 @@
11 package koreader.ffi;
22
33 @:luaRequire("ffi/blitbuffer")
4-extern enum Blitbuffer {
5- COLOR_WHITE;
6- COLOR_GRAY_E;
7- COLOR_LIGHT_GRAY;
8- COLOR_GRAY;
9- COLOR_WEB_GRAY;
10- COLOR_DARK_GRAY;
11- COLOR_DIM_GRAY;
12- COLOR_BLACK;
13-}
\ No newline at end of file
4+extern class Blitbuffer {
5+ static var COLOR_WHITE : Color8;
6+ static var COLOR_GRAY_E : Color8;
7+ static var COLOR_LIGHT_GRAY : Color8;
8+ static var COLOR_GRAY : Color8;
9+ static var COLOR_WEB_GRAY : Color8;
10+ static var COLOR_DARK_GRAY : Color8;
11+ static var COLOR_DIM_GRAY : Color8;
12+ static var COLOR_BLACK : Color8;
13+}
14+
15+extern typedef Color8 = {}
\ No newline at end of file
diff -r 300cc3491f26 -r 98f22bb2eadb src/koreader/ui/widget/container/FrameContainer.lua.hx
--- a/src/koreader/ui/widget/container/FrameContainer.lua.hx Sat Mar 05 14:44:55 2022 +0100
+++ b/src/koreader/ui/widget/container/FrameContainer.lua.hx Sat Mar 05 14:55:14 2022 +0100
@@ -19,5 +19,5 @@
1919
2020 typedef FrameContainerParams = {
2121 > WidgetContainerParams,
22- ?background : Blitbuffer,
22+ ?background : Color8,
2323 }
\ No newline at end of file