Class: Fidgit::ColorWell
- Inherits:
- RadioButton show all
- Defined in:
- lib/fidgit/elements/color_well.rb
Constant Summary
Constants inherited from Label
Constants inherited from Composite
Fidgit::Composite::DEBUG_BORDER_COLOR
Constants inherited from Element
Element::DEFAULT_SCHEMA_FILE, Element::VALID_ALIGN_H, Element::VALID_ALIGN_V
Instance Attribute Summary
Attributes inherited from RadioButton
Attributes inherited from Label
#background_color, #border_color, #icon_position
Attributes inherited from Packer
Attributes inherited from Element
#align_h, #align_v, #background_color, #border_thickness, #font, #padding_bottom, #padding_left, #padding_right, #padding_top, #parent, #tip, #z
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ ColorWell
constructor
A new instance of ColorWell.
Methods inherited from RadioButton
#check, #checked?, #clicked_left_mouse_button, #uncheck
Methods inherited from Button
#activate, #clicked_left_mouse_button, #enabled=, #enter, #leave, #parent=, #text=
Methods inherited from Label
Methods inherited from Container
#add, #button, #clear, #color_picker, #color_well, #combo_box, #file_browser, #grid, #group, #hit_element, #horizontal, #image_frame, #insert, #label, #list, #radio_button, #remove, #scroll_area, #scroll_window, #slider, #text_area, #to_s, #toggle_button, #update, #vertical, #write_tree, #x=, #y=
Methods inherited from Element
#default, #drag?, #draw, #draw_frame, #draw_rect, #enabled=, #enabled?, #height, #height=, #hit?, #max_height, #max_width, #min_height, #min_width, new, original_new, #outer_height, #outer_width, #recalc, schema, #to_s, #update, #width, #width=, #with, #x, #x=, #y, #y=
Methods included from Event
#events, included, new_event_handlers, #publish, #subscribe, #unsubscribe
Constructor Details
#initialize(options = {}, &block) ⇒ ColorWell
Returns a new instance of ColorWell.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fidgit/elements/color_well.rb', line 9 def initialize( = {}, &block) = { width: default(:width), height: default(:height), color: default(:color), outline_color: default(:outline_color), checked_border_color: default(:checked, :border_color), }.merge! @outline_color = [:outline_color].dup super('', ([:color] || [:value]).dup, ) end |