Class: Clogs::Sub
- Inherits:
-
TextDrawable
- Object
- Shoes::Linkable
- Drawable
- TextDrawable
- Clogs::Sub
- 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
71 |
# File 'lib/clogs/drawables/text.rb', line 71 def style_for_tag(base) = base.with(size: (base.size * 0.7).round) |