|  | 
|  | IlvButton (IlvDisplay *display, const char *label, const IlvRect &rect, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | 
|  | Constructor.  More... 
 | 
|  | 
|  | IlvButton (IlvDisplay *display, const IlvPoint &point, const char *label, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | 
|  | Constructor.  More... 
 | 
|  | 
|  | IlvButton (IlvDisplay *display, const IlvPoint &point, IlvBitmap *bitmap, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | 
|  | Constructor.  More... 
 | 
|  | 
|  | IlvButton (IlvDisplay *display, IlvBitmap *bitmap, const IlvRect &rect, IlUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0) | 
|  | Constructor.  More... 
 | 
|  | 
| virtual void | activate () | 
|  | Is called when the button is released after having been pressed.  More... 
 | 
|  | 
| virtual void | drawGadgetItem (const IlvGadgetItem *, IlvPort *, const IlvRect &, const IlvTransformer *=0, const IlvRegion *=0) const | 
|  | Draws a specific gadget item.  More... 
 | 
|  | 
| IlvBitmap * | getHighlightedBitmap () const | 
|  | Returns the bitmap associated with the highlighted state of the button.  More... 
 | 
|  | 
| IlUInt | getPeriod () const | 
|  | Returns the repeat period of the button.  More... 
 | 
|  | 
| IlvBitmap * | getSelectedBitmap () const | 
|  | Returns the bitmap associated with the selected state of the button.  More... 
 | 
|  | 
| IlBoolean | isRepeat () const | 
|  | Indicates whether the button is in auto-repeat mode.  More... 
 | 
|  | 
| void | setHighlightedBitmap (IlvBitmap *bitmap) | 
|  | Sets the highlighted bitmap of the button.  More... 
 | 
|  | 
| void | setPeriod (IlUInt period) | 
|  | Sets the repeat period of the button.  More... 
 | 
|  | 
| void | setRepeat (IlBoolean value) | 
|  | Specifies whether the button should be in auto-repeat mode.  More... 
 | 
|  | 
| void | setSelectedBitmap (IlvBitmap *bitmap) | 
|  | Sets the selected bitmap of the button.  More... 
 | 
|  | 
|  | IlvMessageLabel (IlvDisplay *display, const char *message, const IlvRect &rect, IlvAlignment alignment=IlvLeft, IlUShort thickness=0, IlvPalette *palette=0, IlBoolean copy=IlTrue) | 
|  | Constructor.  More... 
 | 
|  | 
|  | IlvMessageLabel (IlvDisplay *display, const IlvPoint &at, const char *message, IlvAlignment alignment=IlvLeft, IlUShort thickness=0, IlvPalette *palette=0, IlBoolean copy=IlTrue) | 
|  | Constructor.  More... 
 | 
|  | 
| virtual IlvGadgetItem * | applyToItems (IlvApplyGadgetItem f, IlAny arg) | 
|  | Applies the specified function to all the items of the holder.  More... 
 | 
|  | 
| virtual IlvAlignment | getAlignment () const | 
|  | Returns the alignment of the message label.  More... 
 | 
|  | 
| IlvBitmap * | getBitmap () const | 
|  | Returns the bitmap associated with the message label.  More... 
 | 
|  | 
| IlvBitmap * | getInsensitiveBitmap () const | 
|  | Returns the insensitive bitmap of the message label.  More... 
 | 
|  | 
| const char * | getLabel () const | 
|  | Returns the label stored in the message label.  More... 
 | 
|  | 
| virtual void | getLabelOrientation (IlvOrientation &orientation, IlBoolean &flip) const | 
|  | Returns the orientation of the label.  More... 
 | 
|  | 
| virtual IlvPosition | getLabelPosition () const | 
|  | Returns the position of the label relative to the bitmap of the message label.  More... 
 | 
|  | 
| const char * | getMessage () const | 
|  | Returns the translated message of the message label.  More... 
 | 
|  | 
| char | getMnemonic () const | 
|  | Returns the mnemonic associated with the message label.  More... 
 | 
|  | 
| virtual const IlvPalette * | getNormalTextPalette () const | 
|  | Returns the default palette used to draw an item.  More... 
 | 
|  | 
| virtual const IlvPalette * | getOpaquePalette () const | 
|  | Returns the opaque palette used to draw opaque items.  More... 
 | 
|  | 
| IlUShort | getSpacing () const | 
|  | Returns the spacing between the label and the bitmap of the message label.  More... 
 | 
|  | 
| virtual void | setAlignment (IlvAlignment alignment) | 
|  | Sets the alignment of this message label.  More... 
 | 
|  | 
| void | setBitmap (IlvBitmap *bitmap) | 
|  | Sets the bitmap of the message label.  More... 
 | 
|  | 
| void | setInsensitiveBitmap (IlvBitmap *bitmap) | 
|  | Sets the insensitive bitmap of the message label.  More... 
 | 
|  | 
| void | setLabel (const char *label, IlBoolean copy=IlTrue) | 
|  | Sets the label of the message label.  More... 
 | 
|  | 
| void | setLabelOrientation (IlvOrientation orientation, IlBoolean flip=IlFalse, IlBoolean redraw=IlTrue) | 
|  | Sets the orientation of the label.  More... 
 | 
|  | 
| void | setLabelPosition (IlvPosition pos, IlBoolean redraw=IlTrue) | 
|  | Sets the position of the label relative to the bitmap of the message label.  More... 
 | 
|  | 
| void | setSpacing (IlUShort spacing, IlBoolean redraw=IlTrue) | 
|  | Sets the spacing between the label and the bitmap of the message label.  More... 
 | 
|  | 
| virtual IlvGadgetItem * | createItem (const char *label, IlvGraphic *graphic=0, IlvBitmap *bitmap=0, IlvBitmap *selbitmap=0, IlBoolean copy=IlTrue) const | 
|  | Returns a new gadget item.  More... 
 | 
|  | 
| IlvGadgetItem * | getCallbackItem () const | 
|  | Returns the item that triggered a callback.  More... 
 | 
|  | 
| IlvGadgetItem * | getDragDropTarget () const | 
|  | Returns the target item of a drag-and-drop operation.  More... 
 | 
|  | 
| IlvGraphic * | getDraggedImage () const | 
|  | Returns the graphic object used to draw the ghost image during a drag-and-drop operation.  More... 
 | 
|  | 
| IlvGadgetItem * | getDraggedItem () const | 
|  | Returns the item that is being dragged during a drag-and-drop operation.  More... 
 | 
|  | 
| IlvGadgetItem * | getEditedItem () const | 
|  | Returns the item that is being edited.  More... 
 | 
|  | 
| virtual const IlvPalette * | getHighlightTextPalette () const | 
|  | Returns the highlight palette used to draw the label of highlighted items.  More... 
 | 
|  | 
| virtual IlvGadgetItem * | getItemByName (const char *name) const | 
|  | Returns the item whose name is specified.  More... 
 | 
|  | 
| IlvGadgetItem * | getToolTipItem () const | 
|  | Returns the item that is displaying a tooltip.  More... 
 | 
|  | 
| virtual void | initReDrawItems () | 
|  | Begins a redraw session.  More... 
 | 
|  | 
| virtual void | recomputeAllItems () | 
|  | Recomputes the size of all the items managed by the holder.  More... 
 | 
|  | 
| virtual void | reDrawItems () | 
|  | Ends a redraw session.  More... 
 | 
|  | 
| void | setDragDropTarget (IlvGadgetItem *item) | 
|  | Sets the target item of a drag-and-drop operation.  More... 
 | 
|  | 
| void | setDraggedImage (IlvGraphic *graphic) | 
|  | Sets the graphic object used to draw the ghost image during a drag-and-drop operation.  More... 
 | 
|  | 
| void | setDraggedItem (IlvGadgetItem *item) | 
|  | Sets the dragged item.  More... 
 | 
|  | 
Gadget class. 
Library: ilvgadgt
The IlvButton class is one of the simplest gadgets provided in the library. It displays a label and a bitmap inside a rectangle with a three-dimensional look. 

 - IlvButton - 
- See also
- IlvToggle
Accessors\nAccessors provide a scriptable and uniform way to inspect and modify an object by using its base class methods <tt>IlvValueInterface::queryValue()</tt>, <tt>IlvValueInterface::queryValues()</tt>, <tt>IlvValueInterface::changeValue()</tt>, <tt>IlvValueInterface::changeValues()</tt>.\n\n\nThis class inherits the accessors of its superclass \c IlvMessageLabel and adds the following ones:
Styling\nThis class supports the following CSS properties:
| Graphic property | CSS property | Type | 
| Background color | background-color | Color | 
| Text color | color | Color |