ExpandItem

Instances of this class represent a selectable user interface object that represents a expandable item in a expand bar. <p> <dl> <dt><b>Styles:</b></dt> <dd>(none)</dd> <dt><b>Events:</b></dt> <dd>(none)</dd> </dl> </p><p> IMPORTANT: This class is <em>not</em> intended to be subclassed. </p>

@see ExpandBar @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

@since 3.2

class ExpandItem : Item {}

Constructors

this
this(ExpandBar parent, int style)

Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. <p> The style value is either one of the style constants defined in class <code>SWT</code> which is applicable to instances of this class, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>SWT</code> style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses. </p>

this
this(ExpandBar parent, int style, int index)

Constructs a new instance of this class given its parent, a style value describing its behavior and appearance, and the index at which to place it in the items maintained by its parent. <p> The style value is either one of the style constants defined in class <code>SWT</code> which is applicable to instances of this class, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>SWT</code> style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses. </p>

Members

Aliases

setForegroundColor
alias setForegroundColor = Item.setForegroundColor
Undocumented in source.
setForegroundColor
alias setForegroundColor = Item.setForegroundColor
Undocumented in source.
windowProc
alias windowProc = Item.windowProc
Undocumented in source.

Functions

checkSubclass
void checkSubclass()
Undocumented in source. Be warned that the author may not have intended to support it.
createHandle
void createHandle(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
createWidget
void createWidget(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
deregister
void deregister()
Undocumented in source. Be warned that the author may not have intended to support it.
destroyWidget
void destroyWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
drawChevron
void drawChevron(GC gc, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
drawItem
void drawItem(GC gc, bool drawFocus)
Undocumented in source. Be warned that the author may not have intended to support it.
getControl
Control getControl()

Returns the control that is shown when the item is expanded. If no control has been set, return <code>null</code>.

getExpanded
bool getExpanded()

Returns <code>true</code> if the receiver is expanded, and false otherwise.

getHeaderHeight
int getHeaderHeight()

Returns the height of the receiver's header

getHeight
int getHeight()

Gets the height of the receiver.

getParent
ExpandBar getParent()

Returns the receiver's parent, which must be a <code>ExpandBar</code>.

getPreferredWidth
int getPreferredWidth(GC gc)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_activate
int gtk_activate(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_button_press_event
int gtk_button_press_event(GtkWidget* widget, GdkEventButton* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_enter_notify_event
int gtk_enter_notify_event(GtkWidget* widget, GdkEventCrossing* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_focus_out_event
int gtk_focus_out_event(GtkWidget* widget, GdkEventFocus* event)
Undocumented in source. Be warned that the author may not have intended to support it.
gtk_size_allocate
int gtk_size_allocate(GtkWidget* widget, ptrdiff_t allocation)
Undocumented in source. Be warned that the author may not have intended to support it.
hasFocus
bool hasFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
hookEvents
void hookEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
redraw
void redraw()
Undocumented in source. Be warned that the author may not have intended to support it.
register
void register()
Undocumented in source. Be warned that the author may not have intended to support it.
releaseHandle
void releaseHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
releaseWidget
void releaseWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeControl
void resizeControl(int yScroll)
Undocumented in source. Be warned that the author may not have intended to support it.
setBounds
void setBounds(int x, int y, int width, int height, bool move, bool size)
Undocumented in source. Be warned that the author may not have intended to support it.
setControl
void setControl(Control control)

Sets the control that is shown when the item is expanded.

setExpanded
void setExpanded(bool expanded)

Sets the expanded state of the receiver.

setFocus
bool setFocus()
Undocumented in source. Be warned that the author may not have intended to support it.
setFontDescription
void setFontDescription(PangoFontDescription* font)
Undocumented in source. Be warned that the author may not have intended to support it.
setForegroundColor
void setForegroundColor(GdkColor* color)
Undocumented in source. Be warned that the author may not have intended to support it.
setHeight
void setHeight(int height)

Sets the height of the receiver. This is height of the item when it is expanded, excluding the height of the header.

setImage
void setImage(Image image)
Undocumented in source. Be warned that the author may not have intended to support it.
setOrientation
void setOrientation()
Undocumented in source. Be warned that the author may not have intended to support it.
setText
void setText(String string)
Undocumented in source. Be warned that the author may not have intended to support it.
showWidget
void showWidget(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
windowProc
int windowProc(GtkWidget* handle, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

BORDER
int BORDER;
Undocumented in source.
CHEVRON_SIZE
int CHEVRON_SIZE;
Undocumented in source.
TEXT_INSET
int TEXT_INSET;
boxHandle
GtkWidget* boxHandle;
Undocumented in source.

Variables

clientHandle
GtkWidget* clientHandle;
Undocumented in source.
control
Control control;
Undocumented in source.
expanded
bool expanded;
height
int height;
imageHandle
GtkWidget* imageHandle;
Undocumented in source.
imageHeight
int imageHeight;
Undocumented in source.
imageList
ImageList imageList;
imageWidth
int imageWidth;
labelHandle
GtkWidget* labelHandle;
Undocumented in source.
parent
ExpandBar parent;
width
int width;
Undocumented in source.
x
int x;
y
int y;
Undocumented in source.

Inherited Members

From Item

text
String text;
Undocumented in source.
image
Image image;
Undocumented in source.
checkSubclass
void checkSubclass()
Undocumented in source. Be warned that the author may not have intended to support it.
getImage
Image getImage()

Returns the receiver's image if it has one, or null if it does not.

getNameText
String getNameText()
Undocumented in source. Be warned that the author may not have intended to support it.
getText
String getText()

Returns the receiver's text, which will be an empty string if it has never been set.

releaseWidget
void releaseWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
setImage
void setImage(Image image)

Sets the receiver's image to the argument, which may be null indicating that no image should be displayed.

setText
void setText(String string)

Sets the receiver's text.

Meta