Created
November 23, 2017 18:16
-
-
Save Groogy/ec5638606e36ce4871523f43d6a16f21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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