Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
Glass
master
Top Level Namespace
Glass
AbsolutContainer
Container
Example
HorizontalContainer
ImageClip
Percent
Point
VerticalContainer
Widget
Window
SF
Color
Built with Crystal 1.9.2
2023-10-08 05:50:39 UTC
struct
Glass::Point
Glass::Point
Struct
Value
Object
Defined in:
Point/Point.cr
Constructors
.new
(x : Int32, y : Int32)
Instance Method Summary
#*
(s) : Point
#+
(p : Point) : Point
#-
(p : Point) : Point
#abs
: Point
#x
: Int32
#x=
(x : Int32)
#y
: Int32
#y=
(y : Int32)
Constructor Detail
def self.
new
(x : Int32, y : Int32)
#
[
View source
]
Instance Method Detail
def
*
(s) :
Point
#
[
View source
]
def
+
(p :
Point
) :
Point
#
[
View source
]
def
-
(p :
Point
) :
Point
#
[
View source
]
def
abs
:
Point
#
[
View source
]
def
x
: Int32
#
[
View source
]
def
x=
(x : Int32)
#
[
View source
]
def
y
: Int32
#
[
View source
]
def
y=
(y : Int32)
#
[
View source
]