Class: Clogs::Bg

Inherits:
TextDrawable show all
Defined in:
lib/clogs/drawables/text.rb

Instance Attribute Summary

Attributes inherited from Drawable

#abs_x, #abs_y, #children, #height, #parent, #shoes_linkable_id, #styles, #width, #x, #y

Instance Method Summary collapse

Methods inherited from TextDrawable

#emphasis_style, #own_style, #resolved_size, #runs, #truthy_underline?

Methods inherited from Drawable

#add_child, #app, #clickable?, #contains?, #destroy_self, #draw, #each_peer, #focus_gained, #focus_lost, #focusable?, for_shoes_class, #hidden?, #initialize, #margin, #measure, #needs_layout!, #notify, #on_click, #on_key, #on_mouse_move, #on_release, #paint, #positioned?, #properties_changed, #redraw!, #remove_child, #requested_height, #requested_width, #set_parent, #style

Constructor Details

This class inherits a constructor from Clogs::Drawable

Instance Method Details

#style_for_tag(base) ⇒ Object



81
# File 'lib/clogs/drawables/text.rb', line 81

def style_for_tag(base) = base.with(bg: Style.color(style(:fill), base.bg))