-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor imports and add class wrappers
- Loading branch information
Showing
35 changed files
with
601 additions
and
70 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module UIng | ||
class Area | ||
def initialize(@ref_ptr : Pointer(LibUI::Area)) | ||
end | ||
|
||
def initialize | ||
@ref_ptr = LibUI.new_area | ||
end | ||
|
||
forward_missing_to(@ref_ptr) | ||
|
||
def to_unsafe | ||
@ref_ptr | ||
end | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module UIng | ||
class Attribute | ||
def initialize(@ref_ptr : Pointer(LibUI::Attribute)) | ||
end | ||
|
||
def initialize | ||
@ref_ptr = LibUI.new_attribute | ||
end | ||
|
||
forward_missing_to(@ref_ptr) | ||
|
||
def to_unsafe | ||
@ref_ptr | ||
end | ||
end | ||
end |
Oops, something went wrong.