C# Class Blink.GUI.ImageButton

A button with text
Show file Open project: dah6ce/Blink Class Usage Examples

Public Properties

Property Type Description
selectionOverlay Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
ImageButton ( Microsoft.Xna.Framework.Graphics.Texture2D thumbnail, Vector2 pos, String mapName ) : System
ImageButton ( Microsoft.Xna.Framework.Graphics.Texture2D thumbnail, Vector2 pos, String mapName, Microsoft.Xna.Framework.Graphics.Texture2D selectOverlays ) : System
hover ( int p ) : void
isSelected ( ) : bool
select ( ) : void
select ( int p ) : void
setPosition ( Vector2 pos ) : void
setSize ( Vector2 size ) : void
unhover ( int p ) : void
unlock ( ) : void
unselect ( ) : void
unselect ( int p ) : void
useMultiSelect ( ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

ImageButton() public method

public ImageButton ( Microsoft.Xna.Framework.Graphics.Texture2D thumbnail, Vector2 pos, String mapName ) : System
thumbnail Microsoft.Xna.Framework.Graphics.Texture2D
pos Vector2
mapName String
return System

ImageButton() public method

public ImageButton ( Microsoft.Xna.Framework.Graphics.Texture2D thumbnail, Vector2 pos, String mapName, Microsoft.Xna.Framework.Graphics.Texture2D selectOverlays ) : System
thumbnail Microsoft.Xna.Framework.Graphics.Texture2D
pos Vector2
mapName String
selectOverlays Microsoft.Xna.Framework.Graphics.Texture2D
return System

hover() public method

public hover ( int p ) : void
p int
return void

isSelected() public method

public isSelected ( ) : bool
return bool

select() public method

public select ( ) : void
return void

select() public method

public select ( int p ) : void
p int
return void

setPosition() public method

public setPosition ( Vector2 pos ) : void
pos Vector2
return void

setSize() public method

public setSize ( Vector2 size ) : void
size Vector2
return void

unhover() public method

public unhover ( int p ) : void
p int
return void

unlock() public method

public unlock ( ) : void
return void

unselect() public method

public unselect ( ) : void
return void

unselect() public method

public unselect ( int p ) : void
p int
return void

useMultiSelect() public method

public useMultiSelect ( ) : void
return void

Property Details

selectionOverlay public property

public Texture2D,Microsoft.Xna.Framework.Graphics selectionOverlay
return Microsoft.Xna.Framework.Graphics.Texture2D