Class: Raylib::NPatchInfo
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Raylib::NPatchInfo
- Defined in:
- lib/raylib/core/structs/n_patch_info.rb
Overview
NPatchInfo, n-patch layout info
Class Method Summary collapse
Instance Method Summary collapse
-
#bottom ⇒ Integer
Bottom border offset.
-
#bottom=(new_bottom) ⇒ Object
Sets Bottom border offset.
-
#layout ⇒ Integer
Layout of the n-patch: 3x3, 1x3 or 3x1.
-
#layout=(new_layout) ⇒ Object
Sets Layout of the n-patch: 3x3, 1x3 or 3x1.
-
#left ⇒ Integer
Left border offset.
-
#left=(new_left) ⇒ Object
Sets Left border offset.
-
#right ⇒ Integer
Right border offset.
-
#right=(new_right) ⇒ Object
Sets Right border offset.
-
#source ⇒ Rectangle
Texture source rectangle.
-
#source=(new_source) ⇒ Object
Sets Texture source rectangle.
- #to_s ⇒ Object
-
#top ⇒ Integer
Top border offset.
-
#top=(new_top) ⇒ Object
Sets Top border offset.
Class Method Details
.create(source, left, top, right, bottom, layout) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 13 def self.create(source, left, top, right, bottom, layout) new.tap do |instance| instance[:source] = source instance[:left] = left instance[:top] = top instance[:right] = right instance[:bottom] = bottom instance[:layout] = layout end end |
Instance Method Details
#bottom ⇒ Integer
Bottom border offset
66 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 66 def bottom = self[:bottom] |
#bottom=(new_bottom) ⇒ Object
Sets Bottom border offset
69 70 71 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 69 def bottom=(new_bottom) self[:bottom] = new_bottom end |
#layout ⇒ Integer
Layout of the n-patch: 3x3, 1x3 or 3x1
75 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 75 def layout = self[:layout] |
#layout=(new_layout) ⇒ Object
Sets Layout of the n-patch: 3x3, 1x3 or 3x1
78 79 80 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 78 def layout=(new_layout) self[:layout] = new_layout end |
#left ⇒ Integer
Left border offset
39 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 39 def left = self[:left] |
#left=(new_left) ⇒ Object
Sets Left border offset
42 43 44 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 42 def left=(new_left) self[:left] = new_left end |
#right ⇒ Integer
Right border offset
57 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 57 def right = self[:right] |
#right=(new_right) ⇒ Object
Sets Right border offset
60 61 62 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 60 def right=(new_right) self[:right] = new_right end |
#source ⇒ Rectangle
Texture source rectangle
30 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 30 def source = self[:source] |
#source=(new_source) ⇒ Object
Sets Texture source rectangle
33 34 35 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 33 def source=(new_source) self[:source] = new_source end |
#to_s ⇒ Object
24 25 26 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 24 def to_s "Raylib::NPatchInfo##{object_id} source=#{source} left=#{left} top=#{top} right=#{right} bottom=#{bottom} layout=#{layout}" end |
#top ⇒ Integer
Top border offset
48 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 48 def top = self[:top] |
#top=(new_top) ⇒ Object
Sets Top border offset
51 52 53 |
# File 'lib/raylib/core/structs/n_patch_info.rb', line 51 def top=(new_top) self[:top] = new_top end |