Class: Teacup::Autoresize

Inherits:
Object
  • Object
show all
Defined in:
lib/teacup-osx/style_extensions/autoresize.rb,
lib/teacup-ios/stylesheet_extensions/autoresize.rb

Instance Method Summary collapse

Instance Method Details

#fillObject

| | FILL |



95
96
97
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 95

def fill
  flexible_width | flexible_height
end

#fill_bottomObject



103
104
105
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 103

def fill_bottom
  flexible_width | flexible_top
end

#fill_leftObject



107
108
109
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 107

def fill_left
  flexible_height | flexible_right
end

#fill_rightObject



111
112
113
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 111

def fill_right
  flexible_height | flexible_left
end

#fill_topObject



99
100
101
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 99

def fill_top
  flexible_width | flexible_bottom
end

#fixed_bottom_leftObject



143
144
145
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 143

def fixed_bottom_left
  flexible_right | flexible_top
end

#fixed_bottom_middleObject



147
148
149
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 147

def fixed_bottom_middle
  flexible_left | flexible_right | flexible_top
end

#fixed_bottom_rightObject



151
152
153
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 151

def fixed_bottom_right
  flexible_left | flexible_top
end

#fixed_middleObject



135
136
137
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 135

def fixed_middle
  flexible_top | flexible_bottom | flexible_left | flexible_right
end

#fixed_middle_leftObject



131
132
133
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 131

def fixed_middle_left
  flexible_top | flexible_bottom | flexible_right
end

#fixed_middle_rightObject



139
140
141
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 139

def fixed_middle_right
  flexible_top | flexible_bottom | flexible_left
end

#fixed_top_leftObject

| | FIXED |



119
120
121
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 119

def fixed_top_left
  flexible_right | flexible_bottom
end

#fixed_top_middleObject



123
124
125
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 123

def fixed_top_middle
  flexible_left | flexible_right | flexible_bottom
end

#fixed_top_rightObject



127
128
129
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 127

def fixed_top_right
  flexible_left | flexible_bottom
end

#flexible_bottomObject



87
88
89
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 87

def flexible_bottom
  NSViewMinYMargin
end

#flexible_heightObject



83
84
85
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 83

def flexible_height
  NSViewHeightSizable
end

#flexible_leftObject

| | FLEXIBLE |



67
68
69
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 67

def flexible_left
  NSViewMinXMargin
end

#flexible_rightObject



75
76
77
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 75

def flexible_right
  NSViewMaxXMargin
end

#flexible_topObject



79
80
81
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 79

def flexible_top
  NSViewMaxYMargin
end

#flexible_widthObject



71
72
73
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 71

def flexible_width
  NSViewWidthSizable
end

#float_horizontalObject

| | FLOAT |



159
160
161
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 159

def float_horizontal
  flexible_left | flexible_right
end

#float_verticalObject



163
164
165
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 163

def float_vertical
  flexible_top | flexible_bottom
end

#noneObject



59
60
61
# File 'lib/teacup-osx/style_extensions/autoresize.rb', line 59

def none
  NSViewNotSizable
end