display.contentWidthとdisplay.viewableContentWidthの違いにつきまして

71 views
Skip to first unread message

Takafumi Watanabe

unread,
Oct 31, 2013, 3:51:36 AM10/31/13
to coro...@googlegroups.com
初めて投稿させていただきます。


質問なのですが、
『display.contentWidth』と『display.viewableContentWidth』の違いがよくわかりません。

どういった場面で使い分ければよいのか良いのでしょうか?


基礎的な質問で大変恐縮ですが、ご教授いただけますと幸いです。

何卒、よろしくお願い申し上げます。

naoya yamamoto

unread,
Nov 1, 2013, 1:33:29 AM11/1/13
to 日本コロナの会
取り急ぎで英語ですが、こんな感じです。config.luaのスケーリングと関係しています。

http://forums.coronalabs.com/topic/36688-actualcontentwidth-and-actualcontentheight-problem/

The properties display.actualContentWidth and Height return different values depending on the content scaling that you use.

  • zoomEven: Returns the same values as display.viewableContentWidth and display.viewableContentHeight.  Note that one of these lengths can extend beyond the bounds of the screen.
  • zoomStretch: Returns the same values as display.contentWidth and display.contentHeight.
  • letterbox: Returns the content width and height, including the letterbox area.
  • none: Returns the pixel width and height of the screen.

 

Note that the display.actualContentWidth and Height values are relative to portrait orientation and will not match the orientation of your app.  Our display.pixelWidth and Height properties are relative to portrait as well.


山本


2013年10月31日 16:51 Takafumi Watanabe <sanag...@gmail.com>:
--
--
このメールは次の Google グループの参加者に送られています: 日本コロナの会
このグループにメールで投稿: coro...@googlegroups.com
このグループから退会する: coronaja+u...@googlegroups.com
その他のオプションについては、次の URL からグループにアクセスしてくださ
い。 http://groups.google.co.jp/group/coronaja?hl=ja
--------------------------------------------------------------------------
http://twitter.com/JapanCoronaGrp
 
---
このメールは Google グループのグループ「日本コロナの会」の登録者に送られています。
このグループから退会し、メールの受信を停止するには、coronaja+u...@googlegroups.com にメールを送信します。
その他のオプションについては、https://groups.google.com/groups/opt_out にアクセスしてください。

Takafumi Watanabe

unread,
Nov 1, 2013, 1:40:36 AM11/1/13
to coro...@googlegroups.com
山本様

ご返信ありがとうございます。
頂戴したアドレスのログを読んでみたいと思います。


とりいそぎ御礼まで。

2013年11月1日金曜日 14時33分29秒 UTC+9 ymmtny:
このグループから退会し、メールの受信を停止するには、coronaja+unsubscribe@googlegroups.com にメールを送信します。
その他のオプションについては、https://groups.google.com/groups/opt_out にアクセスしてください。

Reply all
Reply to author
Forward
0 new messages