Class: UnderOs::UI::Style
- Includes:
- Fonts, Margins, Outlining, Positioning
- Defined in:
- lib/under_os/ui/style.rb,
lib/under_os/ui/style/fonts.rb,
lib/under_os/ui/style/margins.rb,
lib/under_os/ui/style/outlining.rb,
lib/under_os/ui/style/positioning.rb
Overview
The view styles handling wrapper
The idea here is to provide a DOM like ‘style` object, which can take similar to DOM properties and translate them into iOS equivalents
Defined Under Namespace
Modules: Fonts, Margins, Outlining, Positioning
Constant Summary
Constants included from Fonts
Fonts::BUTTONS_ALIGMENTS_MAP, Fonts::TEXTNODES_ALIGMENTS_MAP
Instance Attribute Summary collapse
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(view, type) ⇒ Style
constructor
A new instance of Style.
Methods included from Positioning
#bottom, #bottom=, #contentHeight, #contentHeight=, #contentWidth, #contentWidth=, #height, #height=, #left, #left=, #overflow, #overflow=, #overflowX, #overflowX=, #overflowY, #overflowY=, #right, #right=, #top, #top=, #width, #width=, #zIndex, #zIndex=
Methods included from Outlining
#backgroundColor, #backgroundColor=, #backgroundImage, #backgroundImage=, #borderColor, #borderColor=, #borderRadius, #borderRadius=, #borderWidth, #borderWidth=, #boxShadow, #boxShadow=, #color, #color=, #opacity, #opacity=, #textShadow, #textShadow=
Methods included from Margins
#display, #display=, #margin, #margin=, #marginBottom, #marginBottom=, #marginLeft, #marginLeft=, #marginRight, #marginRight=, #marginTop, #marginTop=, #padding, #padding=, #paddingBottom, #paddingBottom=, #paddingLeft, #paddingLeft=, #paddingRight, #paddingRight=, #paddingTop, #paddingTop=
Methods included from Fonts
#fontFamily, #fontFamily=, #fontSize, #fontSize=, #textAlign, #textAlign=
Constructor Details
#initialize(view, type) ⇒ Style
Returns a new instance of Style.
16 17 18 19 |
# File 'lib/under_os/ui/style.rb', line 16 def initialize(view, type) @view = view @type = type end |
Instance Attribute Details
#view ⇒ Object (readonly)
Returns the value of attribute view.
14 15 16 |
# File 'lib/under_os/ui/style.rb', line 14 def view @view end |