Class ButtonSprite

#include <Geode/binding/ButtonSprite.hpp>
classButtonSprite:publiccocos2d::CCSprite{ ... }
No description provided
Examples0
Public static methods12
staticButtonSprite*create(
charconst*caption
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create()

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,
floatscale
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,,
charconst*texture
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,,
charconst*texture
,
floatscale
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,
intwidth
,
intminWidth
,
floatscale
,
boolabsolute
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(,
intwidth
,
boolabsolute
,
floatheight
,
charconst*texture
,
floatscale
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

Create a ButtonSprite with a top sprite and a texture.

Parameters

topSprite

The top sprite to add on top of the sprite

width

Sprite width; ignored if `absolute` is false

absolute

Whether to use absolute width or not

texture

The name of the background sprite file (can't be in a spritesheet)

height

The height of the button, leave 0 for automatic

scale

Scale of top spri *
staticButtonSprite*create(,
intwidth
,
intminWidth
,
floatheight
,
floatscale
,
boolabsolute
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,
intwidth
,
intminWidth
,
floatscale
,
boolabsolute
,,)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

No description provided
staticButtonSprite*create(
charconst*caption
,
intwidth
,
boolabsolute
,,
charconst*texture
,
floatheight
,
floatscale
)

MacOS (ARM): Out of line

MacOS (Intel): Out of line

Windows: Out of line

iOS: Out of line

Android: Out of line

Create a ButtonSprite with text, a font and a texture.

Parameters

caption

The text of the ButtonSprite

width

Sprite width; ignored if `absolute` is false

absolute

Whether to use absolute width or not

font

The name of the BM font file to use

texture

The name of the background sprite file (can't be in a spritesheet)

height

The height of the button, leave 0 for automatic

scale

Scale of text
Return value
Pointer to the created ButtonSprite, or nullptr on err *
staticButtonSprite*create(
charconst*caption
,
intwidth
,
intminWidth
,
floatscale
,
boolabsolute
,,,
floatheight
)

MacOS (ARM): 0x83b30

MacOS (Intel): 0x92ab0

Windows: 0x3f1c0

iOS: 0x5f2d4

Android

No description provided
staticButtonSprite*create(,
intwidth
,
intminWidth
,
floatheight
,
floatscale
,
boolabsolute
,
charconst*bgSprite
,
boolnoScaleSpriteForBG
)

MacOS (ARM): 0x83370

MacOS (Intel): 0x92220

Windows: 0x3eeb0

iOS: 0x5ebbc

Android

No description provided
Public member functions7
boolinit(
charconst*caption
,
intwidth
,
intminWidth
,
floatscale
,
boolabsolute
,,,
floatheight
)

MacOS (ARM): 0x83c6c

MacOS (Intel): 0x92c00

Windows: 0x3f290

iOS: 0x5f3a8

Android

No description provided
boolinit(,
intwidth
,
intminWidth
,
floatheight
,
floatscale
,
boolabsolute
,
charconst*bgSprite
,
boolnoScaleSpriteForBG
)

MacOS (ARM): 0x834a4

MacOS (Intel): 0x92370

Windows: 0x3ef60

iOS: 0x5ec88

Android

No description provided
voidsetColor()

MacOS (ARM): 0x843bc

MacOS (Intel): 0x933c0

Windows: Out of line

iOS: 0x5fac0

Android

No description provided
voidsetString()

MacOS (ARM): 0x83ed4

MacOS (Intel): 0x92ea0

Windows: 0x3fb50

iOS: 0x5f5e4

Android

No description provided
voidupdateBGImage(
charconst*filename
)

MacOS (ARM): 0x84278

MacOS (Intel): 0x93280

Windows: 0x3f590

iOS: 0x5f988

Android

No description provided
voidupdateSpriteBGSize()

MacOS (ARM): 0x836f8

MacOS (Intel): 0x92600

Windows: 0x3f6d0

iOS: 0x5eedc

Android

No description provided
voidupdateSpriteOffset()

MacOS (ARM): 0x84394

MacOS (Intel): 0x93390

Windows: Out of line

iOS: 0x5fa98

Android

No description provided
Fields13
intm_mode
;
No description provided
floatm_width
;
No description provided
floatm_minWidth
;
No description provided
floatm_scale
;
No description provided
floatm_height
;
No description provided
boolm_absolute
;
No description provided
;
No description provided
;
No description provided
cocos2d::CCSprite*m_subBGSprite
;
No description provided
;
No description provided
cocos2d::CCPointm_textOffset
;
No description provided
cocos2d::CCPointm_spritePosition
;
No description provided
gd::stringm_caption
;
No description provided
Protected member functions0
Protected fields0
Derived classes0