scar
main
Scar
Action
Actions
Timed
App
Assets
Asset
Font
Json
Music
Sound
Text
Texture
Tilemap
Yaml
Component
Components
AnimatedSprite
Drawable
Sprite
Text
Tilemap
Config
Drawable
Easing
CubicBezier
EaseInCubic
EaseInOutCubic
EaseInOutQuad
EaseInOutQuart
EaseInOutQuint
EaseInQuad
EaseInQuart
EaseInQuint
EaseOutCubic
EaseOutQuad
EaseOutQuart
EaseOutQuint
EasingDefinition
Linear
Entity
Event
Closed
Event
GainedFocus
JoystickButtonPressed
JoystickButtonReleased
JoystickConnected
JoystickDisconnected
KeyPressed
KeyReleased
LostFocus
MouseButtonPressed
MouseButtonReleased
MouseEntered
MouseLeft
MouseMoved
MouseWheelScrolled
Resized
TextEntered
TouchBegan
TouchEnded
TouchMoved
Input
Logger
Music
Object
Objects
Camera
Scene
Space
System
Systems
AnimateSprites
Tiled
Chunk
ColorConverter
Compression
CompressionConverter
DrawOrder
Ellipse
Encoding
Frame
Grid
Group
HAlign
ImageLayer
Layer
Map
Object
ObjectAlignment
ObjectGroup
ObjectTemplate
Orientation
Point
PointObject
Polygon
Polyline
Property
Rectangle
RenderOrder
StaggerAxis
StaggerIndex
TemplateInstance
Terrain
Text
TextObject
Tile
TileLayer
TileObject
TileOffset
Tileset
Transformations
VAlign
WangColor
WangSet
WangSetType
WangTile
Tween
Util
Vec
SF
Vector2
struct
Scar::Event::MouseButtonPressed
Scar::Event::MouseButtonPressed
Scar::Event::Event
Struct
Value
Object
Overview
A mouse button was pressed
Defined in:
scar/event.cr
Constructors
.new
(button : SF::Mouse::Button, x : Int32, y : Int32)
Instance Method Summary
#button
: SF::Mouse::Button
#x
: Int32
#y
: Int32
Instance methods inherited from struct
Scar::Event::Event
initialize
initialize
Constructor methods inherited from struct
Scar::Event::Event
new
new
Constructor Detail
def self.
new
(button : SF::Mouse::Button, x : Int32, y : Int32)
#
[
View source
]
Instance Method Detail
def
button
: SF::Mouse::Button
#
[
View source
]
def
x
: Int32
#
[
View source
]
def
y
: Int32
#
[
View source
]