ImpsEngine  1.0.0
A software library collection for end user applications.
IAButton Class Reference
Inheritance diagram for IAButton:
IADrawableRect IADrawable

Public Member Functions

IA_CONSTRUCTOR void IAButton_init (IAButton *, const IAButtonAttributes *attributes)
 
void IAButton_setIsClickable (IAButton *, bool isClickable)
 
bool IAButton_isTouched (const IAButton *)
 
void IAButton_drawButtonNormal (const IAButton *)
 
void IAButton_drawButtonTouched (const IAButton *)
 
static float IAButton_getRectExtensionForTouchBeganLeft (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchBeganTop (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchBeganRight (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchBeganBottom (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchMovedOutsideLeft (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchMovedOutsideTop (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchMovedOutsideRight (const IAButton *this)
 
static float IAButton_getRectExtensionForTouchMovedOutsideBottom (const IAButton *this)
 
static bool IAButton_isClickable (const IAButton *this)
 
static int IAButton_getTag (const IAButton *this)
 
IA_DESTRUCTOR void IAButton_deinit (IAButton *)
 
- Public Member Functions inherited from IADrawableRect
IA_CONSTRUCTOR void IADrawableRect_make (IADrawableRect *, void(*drawFunction)(const IADrawable *), void(*setRect)(IADrawableRect *, IARect), IASize(*getMinSizeNeededNullable)(IADrawableRect *))
 
IA_CONSTRUCTOR void IADrawableRect_makeCopy (IADrawableRect *, const IADrawableRect *drawableRectToCopy)
 
void IADrawableRect_setLeftTopPoint (IADrawableRect *, IAPoint point)
 
void IADrawableRect_setCenterPoint (IADrawableRect *, IAPoint point)
 
void IADrawableRect_setSize (IADrawableRect *, IASize size)
 
void IADrawableRect_setRect (IADrawableRect *, IARect rect)
 
void IADrawableRect_setLeftTopRightBottom (IADrawableRect *, float left, float top, float right, float bottom)
 
IAPoint IADrawableRect_getLeftTopPoint (const IADrawableRect *)
 
IAPoint IADrawableRect_getCenterPoint (const IADrawableRect *)
 
float IADrawableRect_getWidth (const IADrawableRect *)
 
float IADrawableRect_getHeight (const IADrawableRect *)
 
IASize IADrawableRect_getSize (const IADrawableRect *)
 
IARect IADrawableRect_getRect (const IADrawableRect *)
 
IASize IADrawableRect_getMinSizeNeeded (const IADrawableRect *)
 
- Public Member Functions inherited from IADrawable
IA_CONSTRUCTOR void IADrawable_make (IADrawable *, void(*drawFunction)(const IADrawable *))
 
IA_CONSTRUCTOR void IADrawable_makeCopy (IADrawable *, const IADrawable *drawableToCopy)
 
void IADrawable_draw (const IADrawable *)
 
static void IADrawable_setIsVisible (IADrawable *this, bool isVisible)
 
static bool IADrawable_isVisible (const IADrawable *this)
 

Data Fields

IADrawableRect drawableRect
 
IADrawableRectnormal
 
IADrawableRecttouched
 
IATouchDelegate touchDelegate
 
IAStructArrayList_IATouch * validTouches
 
float rectExtensionForTouchBeganLeft
 
float rectExtensionForTouchBeganTop
 
float rectExtensionForTouchBeganRight
 
float rectExtensionForTouchBeganBottom
 
float rectExtensionForTouchMovedOutsideLeft
 
float rectExtensionForTouchMovedOutsideTop
 
float rectExtensionForTouchMovedOutsideRight
 
float rectExtensionForTouchMovedOutsideBottom
 
bool isClickable
 
void * correspondingObject
 
void(* onClick )(void *correspondingObject, IAButton *button)
 
void(* onIsTouchedChanged )(void *correspondingObject, IAButton *button, bool isTouched)
 
int tag
 
- Data Fields inherited from IADrawableRect
IADrawable drawable
 
void(* setRect )(IADrawableRect *, IARect)
 
IASize(* getMinSizeNeededNullable )(IADrawableRect *)
 
IARect rect
 
- Data Fields inherited from IADrawable
IAObject base
 
void(* drawFunction )(const IADrawable *)
 
bool isVisible
 

Member Function Documentation

◆ IAButton_init()

IA_CONSTRUCTOR void IAButton_init ( IAButton ,
const IAButtonAttributes attributes 
)

◆ IAButton_setIsClickable()

void IAButton_setIsClickable ( IAButton ,
bool  isClickable 
)

◆ IAButton_isTouched()

bool IAButton_isTouched ( const IAButton )

◆ IAButton_drawButtonNormal()

void IAButton_drawButtonNormal ( const IAButton )

◆ IAButton_drawButtonTouched()

void IAButton_drawButtonTouched ( const IAButton )

◆ IAButton_getRectExtensionForTouchBeganLeft()

static float IAButton_getRectExtensionForTouchBeganLeft ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchBeganTop()

static float IAButton_getRectExtensionForTouchBeganTop ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchBeganRight()

static float IAButton_getRectExtensionForTouchBeganRight ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchBeganBottom()

static float IAButton_getRectExtensionForTouchBeganBottom ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchMovedOutsideLeft()

static float IAButton_getRectExtensionForTouchMovedOutsideLeft ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchMovedOutsideTop()

static float IAButton_getRectExtensionForTouchMovedOutsideTop ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchMovedOutsideRight()

static float IAButton_getRectExtensionForTouchMovedOutsideRight ( const IAButton this)
inline

◆ IAButton_getRectExtensionForTouchMovedOutsideBottom()

static float IAButton_getRectExtensionForTouchMovedOutsideBottom ( const IAButton this)
inline

◆ IAButton_isClickable()

static bool IAButton_isClickable ( const IAButton this)
inline

◆ IAButton_getTag()

static int IAButton_getTag ( const IAButton this)
inline

◆ IAButton_deinit()

IA_DESTRUCTOR void IAButton_deinit ( IAButton )

Field Documentation

◆ drawableRect

IADrawableRect IAButton::drawableRect

◆ normal

IADrawableRect* IAButton::normal

◆ touched

IADrawableRect* IAButton::touched

◆ touchDelegate

IATouchDelegate IAButton::touchDelegate

◆ validTouches

IAStructArrayList_IATouch* IAButton::validTouches

◆ rectExtensionForTouchBeganLeft

float IAButton::rectExtensionForTouchBeganLeft

◆ rectExtensionForTouchBeganTop

float IAButton::rectExtensionForTouchBeganTop

◆ rectExtensionForTouchBeganRight

float IAButton::rectExtensionForTouchBeganRight

◆ rectExtensionForTouchBeganBottom

float IAButton::rectExtensionForTouchBeganBottom

◆ rectExtensionForTouchMovedOutsideLeft

float IAButton::rectExtensionForTouchMovedOutsideLeft

◆ rectExtensionForTouchMovedOutsideTop

float IAButton::rectExtensionForTouchMovedOutsideTop

◆ rectExtensionForTouchMovedOutsideRight

float IAButton::rectExtensionForTouchMovedOutsideRight

◆ rectExtensionForTouchMovedOutsideBottom

float IAButton::rectExtensionForTouchMovedOutsideBottom

◆ isClickable

bool IAButton::isClickable

◆ correspondingObject

void* IAButton::correspondingObject

◆ onClick

void(* IAButton::onClick) (void *correspondingObject, IAButton *button)

◆ onIsTouchedChanged

void(* IAButton::onIsTouchedChanged) (void *correspondingObject, IAButton *button, bool isTouched)

◆ tag

int IAButton::tag

The documentation for this class was generated from the following files: