For the display of the text or alternate text, the ButtonCell depends
on functionality inherited from the Cell
.
const IMG_HOR_SPACE = 5.0;
const STATE_SHIFT = 0;
reflection
ivar.
const HIGHLIGHT_SHIFT = 4;
Image image;
public mutable Image alternate_image;
public mutable tom.String alternate_title;
byte reflection;
byte image_position;
id init;
int highlightsBy;
Image image;
image
.
void set_image Image im;
image
.
void setButtonType int button_type;
reflection
according to the
button_type
. Directly modifies reflection
; does not call
setHighlightsBy
or setShowsStateBy
.
void setHighlightsBy int h;
void setImagePosition int position pre position >= BUTTONCELL_IMAGE_NONE && position <= BUTTONCELL_IMAGE_OVERLAP;
void setShowsStateBy int h;
int showsStateBy;
(float, float) (res_x, res_y) cellSize;
void drawInside (float, float, float, float) (x, y, w, h) inView View view;
void drawSelf (float, float, float, float) (x, y, w, h) inView View view;
void encodeUsingCoder tom.Encoder coder;
void initWithCoder tom.Decoder coder;