Skip to content

Instantly share code, notes, and snippets.

@Groogy
Created November 23, 2017 18:16
Show Gist options
  • Save Groogy/ec5638606e36ce4871523f43d6a16f21 to your computer and use it in GitHub Desktop.
Save Groogy/ec5638606e36ce4871523f43d6a16f21 to your computer and use it in GitHub Desktop.
class Boleite::GUI
class Window < Container
# ...
Cute.signal header_drag(pos : Vector2f)
def initialize
# ...
state_change.on &->update_header_size
header_drag.on &->move(Vector2f)
@input.register_instance WindowHeaderDrag.new(self), header_drag
end
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment