Class: Miyako::LayoutSpace
- Extended by:
- Forwardable
- Includes:
- Animation, Layout, SpriteBase, SingleEnumerable
- Defined in:
- lib/Miyako/API/layout.rb
Overview
レイアウト空間クラス
画像を持たず、レイアウト空間のみを持つインスタンス 画像同士が離れているレイアウト構成を構築する際に用いる
Instance Attribute Summary collapse
-
#dp ⇒ Object
Returns the value of attribute dp.
-
#visible ⇒ Object
Returns the value of attribute visible.
Instance Method Summary collapse
-
#dispose ⇒ Object
インスタンスを解放させる.
-
#initialize(size) ⇒ LayoutSpace
constructor
インスタンスを生成する size:: インスタンスの大きさ[w,h]で指定する 返却値:: 生成されたインスタンスを返す.
-
#initialize_copy(obj) ⇒ Object
:nodoc:.
Methods included from SingleEnumerable
Methods included from Layout
#add_snap_child, #bottom, #bottom!, #broad_rect, #center, #center!, #centering, #centering!, #copy_layout, #delete_snap_child, #get_snap_children, #get_snap_sprite, #h, #include_snap_child?, #init_layout, #layout_dispose, #left, #left!, #middle, #middle!, #move, #move!, #move_to, #move_to!, #on_move, #outside_bottom, #outside_bottom!, #outside_left, #outside_left!, #outside_right, #outside_right!, #outside_top, #outside_top!, #pos, #rect, #relative_move_to, #relative_move_to!, #reset_snap, #right, #right!, #segment, #set_layout_size, #set_snap_children, #set_snap_sprite, #size, #snap, #top, #top!, #update_layout, #update_layout_position, #w, #x, #y
Methods included from Animation
[], []=, anim_hash, #reset, reset, start, #start, #stop, stop, update, update_animation, #update_animation
Methods included from SpriteBase
#bitmap, #hide, #image_rect, #image_size, #oh, #ow, #ox, #oy, #part_rect, #rect, #render, #render_to, #render_xy, #render_xy_to, #show, #to_sprite, #to_unit, #update
Constructor Details
#initialize(size) ⇒ LayoutSpace
インスタンスを生成する
- size
-
インスタンスの大きさ[w,h]で指定する
- 返却値
-
生成されたインスタンスを返す
641 642 643 644 |
# File 'lib/Miyako/API/layout.rb', line 641 def initialize(size) init_layout set_layout_size(*(size.to_a)) end |