File tag/ButtonCell


class tag.ButtonCell

A ButtonCell is an ActionCell.

For the display of the text or alternate text, the ButtonCell depends on functionality inherited from the Cell.

Inherits

State supers
ActionCell

variables

const IMG_HOR_SPACE = 5.0;
The horizontal space between the image and its surroundings.
const STATE_SHIFT = 0;
Definition of how the reflection constants are stuffed in the reflection ivar.
const HIGHLIGHT_SHIFT = 4;

instance tag.ButtonCell

variables

Image image;
The image we display in the normal state.
public mutable Image alternate_image;
The alternative image employed by this ButtonCell.
public mutable tom.String alternate_title;
The alternative text.
byte reflection;
Stuffed information on how to highlight and how to reflect state.
byte image_position;
Where the image is displayed.

methods

id
  init;
Designated initializer.

int
  highlightsBy;
Undocumented.

Image
  image;
Overridden to return the image.

void
  set_image Image im;
Overridden to manipulate the image.

void
  setButtonType int button_type;
Set the kind of button, by setting the reflection according to the button_type. Directly modifies reflection; does not call setHighlightsBy or setShowsStateBy.

void
  setHighlightsBy int h;
Undocumented.

void
  setImagePosition int position
pre
  position >= BUTTONCELL_IMAGE_NONE && position <= BUTTONCELL_IMAGE_OVERLAP;
Undocumented.

void
  setShowsStateBy int h;
Undocumented.

int
  showsStateBy;
Undocumented.

(float, float) (res_x, res_y)
  cellSize;
Return the natural size for this cell.

void
  drawInside (float, float, float, float) (x, y, w, h)
      inView View view;
Undocumented.

void
  drawSelf (float, float, float, float) (x, y, w, h)
    inView View view;
Undocumented.

void
  encodeUsingCoder tom.Encoder coder;

Archiving

void
  initWithCoder tom.Decoder coder;
Undocumented.


Generated by tm 1.01.