-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,908 additions
and
2,319 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,30 +1,29 @@ | |||
|
|
||
|
|
||
module type S = sig | |||
|
|
||
module D : DisplayObjectT.S; | |||
|
|
||
class c: [ Texture.c ] -> | class _c: [ Texture.c ] -> | ||
object | object | ||
inherit D.c; | inherit DisplayObject.c; | ||
method texture: Texture.c; | method texture: Texture.c; | ||
method filters: list Filters.t; | method filters: list Filters.t; | ||
method setFilters: list Filters.t -> unit; | method setFilters: list Filters.t -> unit; | ||
method private render': ?alpha:float -> ~transform:bool -> option Rectangle.t -> unit; | method private render': ?alpha:float -> ~transform:bool -> option Rectangle.t -> unit; | ||
method boundsInSpace: !'space. option (<asDisplayObject: D.c; .. > as 'space) -> Rectangle.t; | method boundsInSpace: !'space. option (<asDisplayObject: DisplayObject.c; .. > as 'space) -> Rectangle.t; | ||
method addChild: ?index:int -> AtlasNode.t -> unit; | method addChild: ?index:int -> AtlasNode.t -> unit; | ||
method children: Enum.t AtlasNode.t; | method children: Enum.t AtlasNode.t; | ||
method clearChildren: unit -> unit; | method clearChildren: unit -> unit; | ||
method getChildAt: int -> AtlasNode.t; | method getChildAt: int -> AtlasNode.t; | ||
method numChildren: int; | method numChildren: int; | ||
method updateChild: int -> AtlasNode.t -> unit; | method updateChild: int -> AtlasNode.t -> unit; | ||
method removeChild: int -> unit; | method removeChild: int -> unit; | ||
method setChildIndex: int -> int -> unit; | method setChildIndex: int -> int -> unit; | ||
end; | end; | ||
|
|
||
|
class c: [ Texture.c ] -> | ||
value create: Texture.c -> c; | object | ||
|
inherit _c; | ||
end; | method ccast: [= `Atlas of c ]; | ||
|
end; | ||
module Make(D:DisplayObjectT.S) : S with module D = D; |
|
||
value create: Texture.c -> c; |
Oops, something went wrong.