LoginSignup
3
1

More than 5 years have passed since last update.

Haxe heaps Component Styleの適応

Posted at

Haxe heapsとは

https://github.com/HeapsIO/heaps
Haxe創始者謹製ゲームフレームワークライブラリ。
JavaScript・Swf・HashLinkによく対応してあります。
その他のプラットフォームはLime経由での対応のようなのですが、
モバイル対応などこれからのようです。

heaps component

現在は

  • Box
  • Label
  • Button

など、基本的なコンポーネントが用意されています

スタイルの設定

var button = new Button();
var style = new h2d.css.Style();
style.backgroundColor = Color(0xff000000);
style.borderColor = Color(0xffffffff);
style.borderSize = 1;
style.borderRadius = 10;
button.setStyle(style);
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1