Mike Austin's Blog

Wednesday, March 15, 2006

Paragraphs with half-spaced newlines

I've been working on my Inertia UI ideas again, this time in Ruby. I was walking home from the train today and remembered an idea I had for a code editor: paragraphs with half spaced newlines, i.e. blank lines that are only half height. You know sometimes when you want to space out your code, but a full newline is just too big? Bingo.

class Button < View

  attr :caption, true
  attr :action, true

  # ---------------------------------- #

  def initialize()
    super
    self.extent = [100, 25]
    self.caption = "Click Me!"
  end

  # ---------------------------------- #

  def mouse_up( origin )
    action.call() if action
  end

end

1 Comments:

  • This post has been removed by a blog administrator.

    By Anonymous Anonymous, at 11:53 PM  

Post a Comment

<< Home