Class: Shoes::Border

Inherits:
Common::BackgroundElement show all
Includes:
Common::Stroke
Defined in:
shoes-core/lib/shoes/border.rb

Constant Summary collapse

STYLES =
{ angle: 0, curve: 0 }.freeze

Constants included from Common::Style

Common::Style::DEFAULT_STYLES, Common::Style::STYLE_GROUPS

Instance Attribute Summary

Attributes inherited from Common::UIElement

#app, #dimensions, #gui, #parent

Instance Method Summary collapse

Methods included from Common::Stroke

#update_stroke

Methods inherited from Common::BackgroundElement

#create_dimensions, #needs_positioning?, #painted?, #takes_up_space?, #translate_left, #translate_top

Methods inherited from Common::UIElement

#add_to_parent, #after_initialize, #create_backend, #create_dimensions, #handle_block, #initialize, #needs_rotate?, #painted?, #redraw_height, #redraw_left, #redraw_top, #redraw_width, #update_fill, #update_stroke

Methods included from Common::Style

#applicable_app_styles, #create_style_hash, included, #style, #style_init

Methods included from Common::SafelyEvaluate

#safely_evaluate

Methods included from Common::Remove

#remove

Methods included from Common::Positioning

#_position, #displace, #move

Methods included from Common::Visibility

#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?

Methods included from Common::Inspect

#inspect, #to_s

Methods included from Common::Attachable

#attached_to

Constructor Details

This class inherits a constructor from Shoes::Common::UIElement

Instance Method Details

#before_initialize(styles, color) ⇒ Object


10
11
12
# File 'shoes-core/lib/shoes/border.rb', line 10

def before_initialize(styles, color)
  styles[:stroke] = color
end