Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXTableItem Class Reference

Item in table. More...

#include <FXTable.h>

Inheritance diagram for FX::FXTableItem:

FX::FXObject FX::FXComboTableItem List of all members.

Public Types

enum  {
  SELECTED = 0x00000001,
  FOCUS = 0x00000002,
  DISABLED = 0x00000004,
  DRAGGABLE = 0x00000008,
  RESERVED1 = 0x00000010,
  RESERVED2 = 0x00000020,
  ICONOWNED = 0x00000040,
  RIGHT = 0x00002000,
  LEFT = 0x00004000,
  CENTER_X = 0,
  TOP = 0x00008000,
  BOTTOM = 0x00010000,
  CENTER_Y = 0,
  BEFORE = 0x00020000,
  AFTER = 0x00040000,
  ABOVE = 0x00080000,
  BELOW = 0x00100000,
  LBORDER = 0x00200000,
  RBORDER = 0x00400000,
  TBORDER = 0x00800000,
  BBORDER = 0x01000000

Public Member Functions

 FXTableItem (const FXString &text, FXIcon *ic=NULL, void *ptr=NULL)
virtual void setText (const FXString &txt)
virtual FXString getText () const
virtual void setIcon (FXIcon *icn, FXbool owned=FALSE)
virtual FXIcongetIcon () const
void setData (void *ptr)
void * getData () const
virtual void setFocus (FXbool focus)
FXbool hasFocus () const
virtual void setSelected (FXbool selected)
FXbool isSelected () const
virtual void setEnabled (FXbool enabled)
FXbool isEnabled () const
virtual void setDraggable (FXbool draggable)
FXbool isDraggable () const
virtual void setJustify (FXuint justify=RIGHT|CENTER_Y)
FXuint getJustify () const
virtual void setIconPosition (FXuint mode)
FXuint getIconPosition () const
virtual void setBorders (FXuint borders=0)
FXuint getBorders () const
virtual void setStipple (FXStipplePattern pattern)
FXStipplePattern getStipple () const
virtual FXWindowgetControlFor (FXTable *table)
virtual void setFromControl (FXWindow *control)
virtual FXint getWidth (const FXTable *table) const
virtual FXint getHeight (const FXTable *table) const
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXTableItem ()


class FXTable

Detailed Description

Item in table.

See also:

Member Enumeration Documentation

anonymous enum

Enumeration values:
FOCUS  Selected.
DRAGGABLE  Disabled.
RESERVED1  Draggable.
RESERVED2  Reserved.
ICONOWNED  Reserved.
RIGHT  Icon owned by table item.
LEFT  Align on right (default).
CENTER_X  Align on left.
TOP  Aling centered horizontally.
BOTTOM  Align on top.
CENTER_Y  Align on bottom.
BEFORE  Aling centered vertically (default).
AFTER  Icon before the text.
ABOVE  Icon after the text.
BELOW  Icon above the text.
LBORDER  Icon below the text.
RBORDER  Draw left border.
TBORDER  Draw right border.
BBORDER  Draw top border.

Constructor & Destructor Documentation

FX::FXTableItem::FXTableItem const FXString text,
FXIcon ic = NULL,
void *  ptr = NULL

Construct new table item.

virtual FX::FXTableItem::~FXTableItem  )  [virtual]

Destroy item and free icon if owned.

Member Function Documentation

virtual void FX::FXTableItem::setText const FXString txt  )  [virtual]

Change item's text label.

virtual FXString FX::FXTableItem::getText  )  const [inline, virtual]

Return item's text label.

virtual void FX::FXTableItem::setIcon FXIcon icn,
FXbool  owned = FALSE

Change item's icon, deleting the old icon if it was owned.

virtual FXIcon* FX::FXTableItem::getIcon  )  const [inline, virtual]

Return item's icon.

void FX::FXTableItem::setData void *  ptr  )  [inline]

Change item's user data.

void* FX::FXTableItem::getData  )  const [inline]

Get item's user data.

virtual void FX::FXTableItem::setFocus FXbool  focus  )  [virtual]

Make item draw as focused.

FXbool FX::FXTableItem::hasFocus  )  const [inline]

Return true if item has focus.

virtual void FX::FXTableItem::setSelected FXbool  selected  )  [virtual]

Select item.

FXbool FX::FXTableItem::isSelected  )  const [inline]

Return true if this item is selected.

virtual void FX::FXTableItem::setEnabled FXbool  enabled  )  [virtual]

Enable or disable item.

FXbool FX::FXTableItem::isEnabled  )  const [inline]

Return true if this item is enabled.

virtual void FX::FXTableItem::setDraggable FXbool  draggable  )  [virtual]

Make item draggable.

FXbool FX::FXTableItem::isDraggable  )  const [inline]

Return true if this item is draggable.

virtual void FX::FXTableItem::setJustify FXuint  justify = RIGHT|CENTER_Y  )  [virtual]

Change item content justification.

FXuint FX::FXTableItem::getJustify  )  const [inline]

Return item content justification.

virtual void FX::FXTableItem::setIconPosition FXuint  mode  )  [virtual]

Change item icon position.

FXuint FX::FXTableItem::getIconPosition  )  const [inline]

Return item icon position.

virtual void FX::FXTableItem::setBorders FXuint  borders = 0  )  [virtual]

Change item borders.

FXuint FX::FXTableItem::getBorders  )  const [inline]

Return item borders.

virtual void FX::FXTableItem::setStipple FXStipplePattern  pattern  )  [virtual]

Change item background stipple.

FXStipplePattern FX::FXTableItem::getStipple  )  const

Return item background stipple.

virtual FXWindow* FX::FXTableItem::getControlFor FXTable table  )  [virtual]

Create input control for editing this item.

Reimplemented in FX::FXComboTableItem.

virtual void FX::FXTableItem::setFromControl FXWindow control  )  [virtual]

Set value from input control.

Reimplemented in FX::FXComboTableItem.

virtual FXint FX::FXTableItem::getWidth const FXTable table  )  const [virtual]

Return width of item.

virtual FXint FX::FXTableItem::getHeight const FXTable table  )  const [virtual]

Return height of item.

virtual void FX::FXTableItem::create  )  [virtual]

Create server-side resources.

virtual void FX::FXTableItem::detach  )  [virtual]

Detach server-side resources.

virtual void FX::FXTableItem::destroy  )  [virtual]

Destroy server-side resources.

virtual void FX::FXTableItem::save FXStream store  )  const [virtual]

Save to stream.

Reimplemented from FX::FXObject.

virtual void FX::FXTableItem::load FXStream store  )  [virtual]

Load from stream.

Reimplemented from FX::FXObject.

Friends And Related Function Documentation

friend class FXTable [friend]

Copyright © 1997-2005 Jeroen van der Zijp