- _getShell
Shell _getShell()
Undocumented in source. Be warned that the author may not have intended to support it.
- addControlListener
void addControlListener(ControlListener listener)
Adds the listener to the collection of listeners who will
be notified when the control is moved or resized, by sending
it one of the messages defined in the <code>ControlListener</code>
interface.
- addDragDetectListener
void addDragDetectListener(DragDetectListener listener)
Adds the listener to the collection of listeners who will
be notified when a drag gesture occurs, by sending it
one of the messages defined in the <code>DragDetectListener</code>
interface.
- addFocusListener
void addFocusListener(FocusListener listener)
Adds the listener to the collection of listeners who will
be notified when the control gains or loses focus, by sending
it one of the messages defined in the <code>FocusListener</code>
interface.
- addHelpListener
void addHelpListener(HelpListener listener)
Adds the listener to the collection of listeners who will
be notified when help events are generated for the control,
by sending it one of the messages defined in the
<code>HelpListener</code> interface.
- addKeyListener
void addKeyListener(KeyListener listener)
Adds the listener to the collection of listeners who will
be notified when keys are pressed and released on the system keyboard, by sending
it one of the messages defined in the <code>KeyListener</code>
interface.
<p>
When a key listener is added to a control, the control
will take part in widget traversal. By default, all
traversal keys (such as the tab key and so on) are
delivered to the control. In order for a control to take
part in traversal, it should listen for traversal events.
Otherwise, the user can traverse into a control but not
out. Note that native controls such as table and tree
implement key traversal in the operating system. It is
not necessary to add traversal listeners for these controls,
unless you want to override the default traversal.
</p>
@param listener the listener which should be notified
- addMenuDetectListener
void addMenuDetectListener(MenuDetectListener listener)
Adds the listener to the collection of listeners who will
be notified when the platform-specific context menu trigger
has occurred, by sending it one of the messages defined in
the <code>MenuDetectListener</code> interface.
- addMouseListener
void addMouseListener(MouseListener listener)
Adds the listener to the collection of listeners who will
be notified when mouse buttons are pressed and released, by sending
it one of the messages defined in the <code>MouseListener</code>
interface.
- addMouseMoveListener
void addMouseMoveListener(MouseMoveListener listener)
Adds the listener to the collection of listeners who will
be notified when the mouse moves, by sending it one of the
messages defined in the <code>MouseMoveListener</code>
interface.
- addMouseTrackListener
void addMouseTrackListener(MouseTrackListener listener)
Adds the listener to the collection of listeners who will
be notified when the mouse passes or hovers over controls, by sending
it one of the messages defined in the <code>MouseTrackListener</code>
interface.
- addMouseWheelListener
void addMouseWheelListener(MouseWheelListener listener)
Adds the listener to the collection of listeners who will
be notified when the mouse wheel is scrolled, by sending
it one of the messages defined in the
<code>MouseWheelListener</code> interface.
- addPaintListener
void addPaintListener(PaintListener listener)
Adds the listener to the collection of listeners who will
be notified when the receiver needs to be painted, by sending it
one of the messages defined in the <code>PaintListener</code>
interface.
- addRelation
void addRelation(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
- addTraverseListener
void addTraverseListener(TraverseListener listener)
Adds the listener to the collection of listeners who will
be notified when traversal events occur, by sending it
one of the messages defined in the <code>TraverseListener</code>
interface.
- checkBackground
void checkBackground()
Undocumented in source. Be warned that the author may not have intended to support it.
- checkBorder
void checkBorder()
Undocumented in source. Be warned that the author may not have intended to support it.
- checkBuffered
void checkBuffered()
Undocumented in source. Be warned that the author may not have intended to support it.
- checkMirrored
void checkMirrored()
Undocumented in source. Be warned that the author may not have intended to support it.
- childStyle
GtkStyle* childStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
- computeNativeSize
Point computeNativeSize(GtkWidget* h, int wHint, int hHint, bool changed)
Undocumented in source. Be warned that the author may not have intended to support it.
- computeSize
Point computeSize(int wHint, int hHint)
Returns the preferred size of the receiver.
<p>
The <em>preferred size</em> of a control is the size that it would
best be displayed at. The width hint and height hint arguments
allow the caller to ask a control questions such as "Given a particular
width, how high does the control need to be to show all of the contents?"
To indicate that the caller does not wish to constrain a particular
dimension, the constant <code>SWT.DEFAULT</code> is passed for the hint.
</p>
- computeSize
Point computeSize(int wHint, int hHint, bool changed)
Returns the preferred size of the receiver.
<p>
The <em>preferred size</em> of a control is the size that it would
best be displayed at. The width hint and height hint arguments
allow the caller to ask a control questions such as "Given a particular
width, how high does the control need to be to show all of the contents?"
To indicate that the caller does not wish to constrain a particular
dimension, the constant <code>SWT.DEFAULT</code> is passed for the hint.
</p><p>
If the changed flag is <code>true</code>, it indicates that the receiver's
<em>contents</em> have changed, therefore any caches that a layout manager
containing the control may have been keeping need to be flushed. When the
control is resized, the changed flag will be <code>false</code>, so layout
manager caches can be retained.
</p>
- computeTabGroup
Control computeTabGroup()
Undocumented in source. Be warned that the author may not have intended to support it.
- computeTabList
Control[] computeTabList()
Undocumented in source. Be warned that the author may not have intended to support it.
- computeTabRoot
Control computeTabRoot()
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.
- defaultFont
Font defaultFont()
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.
- dragDetect
bool dragDetect(int x, int y, bool filter, bool* consume)
Undocumented in source. Be warned that the author may not have intended to support it.
- dragDetect
bool dragDetect(int button, int count, int stateMask, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- dragDetect
bool dragDetect(MouseEvent event)
Detects a drag and drop gesture. This method is used
to detect a drag gesture when called from within a mouse
down listener.
- dragDetect
bool dragDetect(Event event)
Detects a drag and drop gesture. This method is used
to detect a drag gesture when called from within a mouse
down listener.
- drawGripper
bool drawGripper(int x, int y, int width, int height, bool vertical)
Undocumented in source. Be warned that the author may not have intended to support it.
- enableWidget
void enableWidget(bool enabled)
Undocumented in source. Be warned that the author may not have intended to support it.
- enterExitHandle
GtkWidget* enterExitHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- eventHandle
GtkWidget* eventHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- eventWindow
GdkWindow* eventWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
- filterKey
bool filterKey(int keyval, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- findBackgroundControl
Control findBackgroundControl()
Undocumented in source. Be warned that the author may not have intended to support it.
- findMenus
Menu[] findMenus(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixChildren
void fixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixFocus
void fixFocus(Control focusControl)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixModal
void fixModal(GtkWidget* group, GtkWidget* modalGroup)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixStyle
void fixStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
- fixStyle
void fixStyle(GtkWidget* handle)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixedMapProc
int fixedMapProc(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- focusHandle
GtkWidget* focusHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- fontHandle
GtkWidget* fontHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- forceFocus
bool forceFocus(GtkWidget* focusHandle_)
Undocumented in source. Be warned that the author may not have intended to support it.
- forceFocus
bool forceFocus()
Forces the receiver to have the <em>keyboard focus</em>, causing
all keyboard events to be delivered to it.
- forceResize
void forceResize()
Undocumented in source. Be warned that the author may not have intended to support it.
- getAccessible
Accessible getAccessible()
Returns the accessible object for the receiver.
If this is the first time this object is requested,
then the object is created and returned.
- getBackground
Color getBackground()
Returns the receiver's background color.
- getBackgroundColor
GdkColor* getBackgroundColor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getBackgroundImage
Image getBackgroundImage()
Returns the receiver's background image.
- getBaseColor
GdkColor* getBaseColor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getBgColor
GdkColor* getBgColor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getBorderWidth
int getBorderWidth()
Returns the receiver's border width.
- getBounds
Rectangle getBounds()
Returns a rectangle describing the receiver's size and location
relative to its parent (or its display if its parent is null),
unless the receiver is a shell. In this case, the location is
relative to the display.
- getClientWidth
int getClientWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- getCursor
Cursor getCursor()
Returns the receiver's cursor, or null if it has not been set.
<p>
When the mouse pointer passes over a control its appearance
is changed to match the control's cursor.
</p>
- getDragDetect
bool getDragDetect()
Returns <code>true</code> if the receiver is detecting
drag gestures, and <code>false</code> otherwise.
- getEnabled
bool getEnabled()
Returns <code>true</code> if the receiver is enabled, and
<code>false</code> otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
- getFgColor
GdkColor* getFgColor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getFont
Font getFont()
Returns the font that the receiver will use to paint textual information.
- getFontDescription
PangoFontDescription* getFontDescription()
Undocumented in source. Be warned that the author may not have intended to support it.
- getForeground
Color getForeground()
Returns the foreground color that the receiver will use to draw.
- getForegroundColor
GdkColor* getForegroundColor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getIMCaretPos
Point getIMCaretPos()
Undocumented in source. Be warned that the author may not have intended to support it.
- getLayoutData
Object getLayoutData()
Returns layout data which is associated with the receiver.
- getLocation
Point getLocation()
Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
- getMenu
Menu getMenu()
Returns the receiver's pop up menu if it has one, or null
if it does not. All controls may optionally have a pop up
menu that is displayed when the user requests one for
the control. The sequence of key strokes, button presses
and/or button releases that are used to request a pop up
menu is platform specific.
- getMonitor
org.eclipse.swt.widgets.Monitor.Monitor getMonitor()
Returns the receiver's monitor.
- getParent
Composite getParent()
Returns the receiver's parent, which must be a <code>Composite</code>
or null when the receiver is a shell that was created with null or
a display for a parent.
- getPath
Control[] getPath()
Undocumented in source. Be warned that the author may not have intended to support it.
- getRegion
Region getRegion()
Returns the region that defines the shape of the control,
or null if the control has the default shape.
- getShell
Shell getShell()
Returns the receiver's shell. For all controls other than
shells, this simply returns the control's nearest ancestor
shell. Shells return themselves, even if they are children
of other shells.
- getSize
Point getSize()
Returns a point describing the receiver's size. The
x coordinate of the result is the width of the receiver.
The y coordinate of the result is the height of the
receiver.
- getTextColor
GdkColor* getTextColor()
Undocumented in source. Be warned that the author may not have intended to support it.
- getToolTipText
String getToolTipText()
Returns the receiver's tool tip text, or null if it has
not been set.
- getVisible
bool getVisible()
Returns <code>true</code> if the receiver is visible, and
<code>false</code> otherwise.
<p>
If one of the receiver's ancestors is not visible or some
other condition makes the receiver not visible, this method
may still indicate that it is considered visible even though
it may not actually be showing.
</p>
- gtk_button_press_event
int gtk_button_press_event(GtkWidget* widget, GdkEventButton* gdkEvent, bool sendMouseDown)
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_button_release_event
int gtk_button_release_event(GtkWidget* widget, GdkEventButton* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_commit
int gtk_commit(GtkIMContext* imcontext, char* text)
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* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_event_after
int gtk_event_after(GtkWidget* widget, GdkEvent* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_expose_event
int gtk_expose_event(GtkWidget* widget, GdkEventExpose* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_focus
int gtk_focus(GtkWidget* widget, ptrdiff_t directionType)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_focus_in_event
int gtk_focus_in_event(GtkWidget* widget, GdkEventFocus* 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_key_press_event
int gtk_key_press_event(GtkWidget* widget, GdkEventKey* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_key_release_event
int gtk_key_release_event(GtkWidget* widget, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_leave_notify_event
int gtk_leave_notify_event(GtkWidget* widget, GdkEventCrossing* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_mnemonic_activate
int gtk_mnemonic_activate(GtkWidget* widget, ptrdiff_t arg1)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_motion_notify_event
int gtk_motion_notify_event(GtkWidget* widget, GdkEventMotion* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_popup_menu
int gtk_popup_menu(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_preedit_changed
int gtk_preedit_changed(GtkIMContext* imcontext)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_realize
int gtk_realize(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_scroll_event
int gtk_scroll_event(GtkWidget* widget, GdkEventScroll* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_setCursor
void gtk_setCursor(GdkCursor* cursor)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_show_help
int gtk_show_help(GtkWidget* widget, ptrdiff_t helpType)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_style_set
int gtk_style_set(GtkWidget* widget, ptrdiff_t previousStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_unrealize
int gtk_unrealize(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_visibility_notify_event
int gtk_visibility_notify_event(GtkWidget* widget, GdkEventVisibility* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_widget_size_request
void gtk_widget_size_request(GtkWidget* widget, GtkRequisition* requisition)
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.
- hoverProc
int hoverProc(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- imHandle
GtkIMContext* imHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- internal_dispose_GC
void internal_dispose_GC(GdkGC* gdkGC, GCData data)
Invokes platform specific functionality to dispose a GC handle.
<p>
<b>IMPORTANT:</b> This method is <em>not</em> part of the public
API for <code>Control</code>. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
</p>
- internal_new_GC
GdkGC* internal_new_GC(GCData data)
Invokes platform specific functionality to allocate a new GC handle.
<p>
<b>IMPORTANT:</b> This method is <em>not</em> part of the public
API for <code>Control</code>. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
</p>
- isDescribedByLabel
bool isDescribedByLabel()
Undocumented in source. Be warned that the author may not have intended to support it.
- isEnabled
bool isEnabled()
Returns <code>true</code> if the receiver is enabled and all
ancestors up to and including the receiver's nearest ancestor
shell are enabled. Otherwise, <code>false</code> is returned.
A disabled control is typically not selectable from the user
interface and draws with an inactive or "grayed" look.
- isFocusAncestor
bool isFocusAncestor(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
- isFocusControl
bool isFocusControl()
Returns <code>true</code> if the receiver has the user-interface
focus, and <code>false</code> otherwise.
- isFocusHandle
bool isFocusHandle(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- isReparentable
bool isReparentable()
Returns <code>true</code> if the underlying operating
system supports this reparenting, otherwise <code>false</code>
- isShowing
bool isShowing()
Undocumented in source. Be warned that the author may not have intended to support it.
- isTabGroup
bool isTabGroup()
Undocumented in source. Be warned that the author may not have intended to support it.
- isTabItem
bool isTabItem()
Undocumented in source. Be warned that the author may not have intended to support it.
- isVisible
bool isVisible()
Returns <code>true</code> if the receiver is visible and all
ancestors up to and including the receiver's nearest ancestor
shell are visible. Otherwise, <code>false</code> is returned.
- markLayout
void markLayout(bool changed, bool all)
Undocumented in source. Be warned that the author may not have intended to support it.
- menuShell
Decorations menuShell()
Undocumented in source. Be warned that the author may not have intended to support it.
- mnemonicHit
bool mnemonicHit(wchar key)
Undocumented in source. Be warned that the author may not have intended to support it.
- mnemonicMatch
bool mnemonicMatch(wchar key)
Undocumented in source. Be warned that the author may not have intended to support it.
- modifyStyle
void modifyStyle(GtkWidget* handle, GtkRcStyle* style)
Undocumented in source. Be warned that the author may not have intended to support it.
- moveAbove
void moveAbove(Control control)
Moves the receiver above the specified control in the
drawing order. If the argument is null, then the receiver
is moved to the top of the drawing order. The control at
the top of the drawing order will not be covered by other
controls even if they occupy intersecting areas.
- moveBelow
void moveBelow(Control control)
Moves the receiver below the specified control in the
drawing order. If the argument is null, then the receiver
is moved to the bottom of the drawing order. The control at
the bottom of the drawing order will be covered by all other
controls which occupy intersecting areas.
- moveChildren
void moveChildren(int oldWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
- moveHandle
void moveHandle(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- pack
void pack(bool changed)
Causes the receiver to be resized to its preferred size.
For a composite, this involves computing the preferred size
from its layout, if there is one.
<p>
If the changed flag is <code>true</code>, it indicates that the receiver's
<em>contents</em> have changed, therefore any caches that a layout manager
containing the control may have been keeping need to be flushed. When the
control is resized, the changed flag will be <code>false</code>, so layout
manager caches can be retained.
</p>
- pack
void pack()
Causes the receiver to be resized to its preferred size.
For a composite, this involves computing the preferred size
from its layout, if there is one.
- paintHandle
GtkWidget* paintHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- paintWindow
GdkWindow* paintWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
- print
bool print(GC gc)
Prints the receiver and all children.
- printWidget
void printWidget(GC gc, GdkDrawable* drawable, int depth, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- printWindow
void printWindow(bool first, Control control, GdkGC* gc, GdkDrawable* drawable, int depth, GdkDrawable* window, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- redraw
void redraw()
Causes the entire bounds of the receiver to be marked
as needing to be redrawn. The next time a paint request
is processed, the control will be completely painted,
including the background.
- redraw
void redraw(bool all)
Undocumented in source. Be warned that the author may not have intended to support it.
- redraw
void redraw(int x, int y, int width, int height, bool all)
Causes the rectangular area of the receiver specified by
the arguments to be marked as needing to be redrawn.
The next time a paint request is processed, that area of
the receiver will be painted, including the background.
If the <code>all</code> flag is <code>true</code>, any
children of the receiver which intersect with the specified
area will also paint their intersecting areas. If the
<code>all</code> flag is <code>false</code>, the children
will not be painted.
- redrawChildren
void redrawChildren()
Undocumented in source. Be warned that the author may not have intended to support it.
- redrawWidget
void redrawWidget(int x, int y, int width, int height, bool redrawAll, bool all, bool trim)
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.
- release
void release(bool destroy)
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.
- releaseParent
void releaseParent()
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.
- removeControlListener
void removeControlListener(ControlListener listener)
Removes the listener from the collection of listeners who will
be notified when the control is moved or resized.
- removeDragDetectListener
void removeDragDetectListener(DragDetectListener listener)
Removes the listener from the collection of listeners who will
be notified when a drag gesture occurs.
- removeFocusListener
void removeFocusListener(FocusListener listener)
Removes the listener from the collection of listeners who will
be notified when the control gains or loses focus.
- removeHelpListener
void removeHelpListener(HelpListener listener)
Removes the listener from the collection of listeners who will
be notified when the help events are generated for the control.
- removeKeyListener
void removeKeyListener(KeyListener listener)
Removes the listener from the collection of listeners who will
be notified when keys are pressed and released on the system keyboard.
- removeMenuDetectListener
void removeMenuDetectListener(MenuDetectListener listener)
Removes the listener from the collection of listeners who will
be notified when the platform-specific context menu trigger has
occurred.
- removeMouseListener
void removeMouseListener(MouseListener listener)
Removes the listener from the collection of listeners who will
be notified when mouse buttons are pressed and released.
- removeMouseMoveListener
void removeMouseMoveListener(MouseMoveListener listener)
Removes the listener from the collection of listeners who will
be notified when the mouse moves.
- removeMouseTrackListener
void removeMouseTrackListener(MouseTrackListener listener)
Removes the listener from the collection of listeners who will
be notified when the mouse passes or hovers over controls.
- removeMouseWheelListener
void removeMouseWheelListener(MouseWheelListener listener)
Removes the listener from the collection of listeners who will
be notified when the mouse wheel is scrolled.
- removePaintListener
void removePaintListener(PaintListener listener)
Removes the listener from the collection of listeners who will
be notified when the receiver needs to be painted.
- removeRelation
void removeRelation()
Undocumented in source. Be warned that the author may not have intended to support it.
- removeTraverseListener
void removeTraverseListener(TraverseListener listener)
Removes the listener from the collection of listeners who will
be notified when traversal events occur.
- resizeHandle
void resizeHandle(int width, int height)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendDragEvent
bool sendDragEvent(int button, int stateMask, int x, int y, bool isStateMask)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendFocusEvent
void sendFocusEvent(int type)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendHelpEvent
bool sendHelpEvent(ptrdiff_t helpType)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendLeaveNotify
bool sendLeaveNotify()
Undocumented in source. Be warned that the author may not have intended to support it.
- sendMouseEvent
bool sendMouseEvent(int type, int button, int count, int detail, bool send, int time, double x, double y, bool is_hint, int state)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendMouseEvent
bool sendMouseEvent(int type, int button, int time, double x, double y, bool is_hint, int state)
Undocumented in source. Be warned that the author may not have intended to support it.
- setBackground
void setBackground(Color color)
Sets the receiver's background color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
<p>
Note: This operation is a hint and may be overridden by the platform.
For example, on Windows the background of a Button cannot be changed.
</p>
@param color the new color (or null)
- setBackground
void setBackground()
Undocumented in source. Be warned that the author may not have intended to support it.
- setBackgroundColor
void setBackgroundColor(GdkColor* color)
Undocumented in source. Be warned that the author may not have intended to support it.
- setBackgroundColor
void setBackgroundColor(GtkWidget* handle, GdkColor* color)
Undocumented in source. Be warned that the author may not have intended to support it.
- setBackgroundImage
void setBackgroundImage(Image image)
Sets the receiver's background image to the image specified
by the argument, or to the default system color for the control
if the argument is null. The background image is tiled to fill
the available space.
<p>
Note: This operation is a hint and may be overridden by the platform.
For example, on Windows the background of a Button cannot be changed.
</p>
@param image the new image (or null)
- setBackgroundPixmap
void setBackgroundPixmap(GdkDrawable* pixmap)
Undocumented in source. Be warned that the author may not have intended to support it.
- setBounds
void setBounds(Rectangle rect)
Sets the receiver's size and location to the rectangular
area specified by the argument. The <code>x</code> and
<code>y</code> fields of the rectangle are relative to
the receiver's parent (or its display if its parent is null).
<p>
Note: Attempting to set the width or height of the
receiver to a negative number will cause that
value to be set to zero instead.
</p>
- setBounds
void setBounds(int x, int y, int width, int height)
Sets the receiver's size and location to the rectangular
area specified by the arguments. The <code>x</code> and
<code>y</code> arguments are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the <code>x</code>
and <code>y</code> arguments are relative to the display.
<p>
Note: Attempting to set the width or height of the
receiver to a negative number will cause that
value to be set to zero instead.
</p>
- setBounds
int setBounds(int x, int y, int width, int height, bool move, bool resize)
Undocumented in source. Be warned that the author may not have intended to support it.
- setCapture
void setCapture(bool capture)
If the argument is <code>true</code>, causes the receiver to have
all mouse events delivered to it until the method is called with
<code>false</code> as the argument. Note that on some platforms,
a mouse button must currently be down for capture to be assigned.
- setCursor
void setCursor(Cursor cursor)
Sets the receiver's cursor to the cursor specified by the
argument, or to the default cursor for that kind of control
if the argument is null.
<p>
When the mouse pointer passes over a control its appearance
is changed to match the control's cursor.
</p>
- setDragDetect
void setDragDetect(bool dragDetect)
Sets the receiver's drag detect state. If the argument is
<code>true</code>, the receiver will detect drag gestures,
otherwise these gestures will be ignored.
- setEnabled
void setEnabled(bool enabled)
Enables the receiver if the argument is <code>true</code>,
and disables it otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
- setFocus
bool setFocus()
Causes the receiver to have the <em>keyboard focus</em>,
such that all keyboard events will be delivered to it. Focus
reassignment will respect applicable platform constraints.
- setFont
void setFont(Font font)
Sets the font that the receiver will use to paint textual information
to the font specified by the argument, or to the default font for that
kind of control if the argument is null.
- setFontDescription
void setFontDescription(PangoFontDescription* font)
Undocumented in source. Be warned that the author may not have intended to support it.
- setForeground
void setForeground(Color color)
Sets the receiver's foreground color to the color specified
by the argument, or to the default system color for the control
if the argument is null.
<p>
Note: This operation is a hint and may be overridden by the platform.
</p>
@param color the new color (or null)
- setForegroundColor
void setForegroundColor(GdkColor* color)
Undocumented in source. Be warned that the author may not have intended to support it.
- setInitialBounds
void setInitialBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
- setLayoutData
void setLayoutData(Object layoutData)
Sets the layout data associated with the receiver to the argument.
- setLocation
void setLocation(Point location)
Sets the receiver's location to the point specified by
the arguments which are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
- setLocation
void setLocation(int x, int y)
Sets the receiver's location to the point specified by
the arguments which are relative to the receiver's
parent (or its display if its parent is null), unless
the receiver is a shell. In this case, the point is
relative to the display.
- setMenu
void setMenu(Menu menu)
Sets the receiver's pop up menu to the argument.
All controls may optionally have a pop up
menu that is displayed when the user requests one for
the control. The sequence of key strokes, button presses
and/or button releases that are used to request a pop up
menu is platform specific.
<p>
Note: Disposing of a control that has a pop up menu will
dispose of the menu. To avoid this behavior, set the
menu to null before the control is disposed.
</p>
- setOrientation
void setOrientation()
Undocumented in source. Be warned that the author may not have intended to support it.
- setParent
bool setParent(Composite parent)
Changes the parent of the widget to be the one provided if
the underlying operating system supports this feature.
Returns <code>true</code> if the parent is successfully changed.
- setParentBackground
void setParentBackground()
Undocumented in source. Be warned that the author may not have intended to support it.
- setParentWindow
void setParentWindow(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRadioSelection
bool setRadioSelection(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRedraw
void setRedraw(bool redraw)
If the argument is <code>false</code>, causes subsequent drawing
operations in the receiver to be ignored. No drawing of any kind
can occur in the receiver until the flag is set to true.
Graphics operations that occurred while the flag was
<code>false</code> are lost. When the flag is set to <code>true</code>,
the entire widget is marked as needing to be redrawn. Nested calls
to this method are stacked.
<p>
Note: This operation is a hint and may not be supported on some
platforms or for some widgets.
</p>
- setRegion
void setRegion(Region region)
Sets the shape of the control to the region specified
by the argument. When the argument is null, the
default shape of the control is restored.
- setRelations
void setRelations()
Undocumented in source. Be warned that the author may not have intended to support it.
- setSize
void setSize(int width, int height)
Sets the receiver's size to the point specified by the arguments.
<p>
Note: Attempting to set the width or height of the
receiver to a negative number will cause that
value to be set to zero instead.
</p>
- setSize
void setSize(Point size)
Sets the receiver's size to the point specified by the argument.
<p>
Note: Attempting to set the width or height of the
receiver to a negative number will cause them to be
set to zero instead.
</p>
- setTabGroupFocus
bool setTabGroupFocus(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
- setTabItemFocus
bool setTabItemFocus(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
- setToolTipText
void setToolTipText(String str)
Sets the receiver's tool tip text to the argument, which
may be null indicating that no tool tip text should be shown.
- setToolTipText
void setToolTipText(Shell shell, String newString)
Undocumented in source. Be warned that the author may not have intended to support it.
- setVisible
void setVisible(bool visible)
Marks the receiver as visible if the argument is <code>true</code>,
and marks it invisible otherwise.
<p>
If one of the receiver's ancestors is not visible or some
other condition makes the receiver not visible, marking
it visible may not actually cause it to be displayed.
</p>
- setWidgetBackground
void setWidgetBackground()
Undocumented in source. Be warned that the author may not have intended to support it.
- setZOrder
void setZOrder(Control sibling, bool above, bool fixRelations)
Undocumented in source. Be warned that the author may not have intended to support it.
- setZOrder
void setZOrder(Control sibling, bool above, bool fixRelations, bool fixChildren)
Undocumented in source. Be warned that the author may not have intended to support it.
- showMenu
bool showMenu(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
- showWidget
void showWidget()
Undocumented in source. Be warned that the author may not have intended to support it.
- sort
void sort(int[] items)
Undocumented in source. Be warned that the author may not have intended to support it.
- toControl
Point toControl(Point point)
Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver.
<p>
@param point the point to be translated (must not be null)
@return the translated coordinates
- toControl
Point toControl(int x, int y)
Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver.
<p>
@param x the x coordinate to be translated
@param y the y coordinate to be translated
@return the translated coordinates
- toDisplay
Point toDisplay(Point point)
Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates.
<p>
@param point the point to be translated (must not be null)
@return the translated coordinates
- toDisplay
Point toDisplay(int x, int y)
Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates.
<p>
@param x the x coordinate to be translated
@param y the y coordinate to be translated
@return the translated coordinates
- topHandle
GtkWidget* topHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- translateMnemonic
bool translateMnemonic(Event event, Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
- translateMnemonic
bool translateMnemonic(int keyval, GdkEventKey* gdkEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- translateTraversal
bool translateTraversal(GdkEventKey* keyEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- traversalCode
int traversalCode(int key, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- traverse
bool traverse(int traversal)
Based on the argument, perform one of the expected platform
traversal action. The argument should be one of the constants:
<code>SWT.TRAVERSE_ESCAPE</code>, <code>SWT.TRAVERSE_RETURN</code>,
<code>SWT.TRAVERSE_TAB_NEXT</code>, <code>SWT.TRAVERSE_TAB_PREVIOUS</code>,
<code>SWT.TRAVERSE_ARROW_NEXT</code> and <code>SWT.TRAVERSE_ARROW_PREVIOUS</code>.
- traverse
bool traverse(Event event)
Undocumented in source. Be warned that the author may not have intended to support it.
- traverseEscape
bool traverseEscape()
Undocumented in source. Be warned that the author may not have intended to support it.
- traverseGroup
bool traverseGroup(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
- traverseItem
bool traverseItem(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
- traverseMnemonic
bool traverseMnemonic(char key)
Undocumented in source. Be warned that the author may not have intended to support it.
- traversePage
bool traversePage(bool next)
Undocumented in source. Be warned that the author may not have intended to support it.
- traverseReturn
bool traverseReturn()
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update()
Forces all outstanding paint requests for the widget
to be processed before this method returns. If there
are no outstanding paint request, this method does
nothing.
<p>
Note: This method does not cause a redraw.
</p>
- update
void update(bool all, bool flush)
Undocumented in source. Be warned that the author may not have intended to support it.
- updateBackgroundMode
void updateBackgroundMode()
Undocumented in source. Be warned that the author may not have intended to support it.
- updateLayout
void updateLayout(bool all)
Undocumented in source. Be warned that the author may not have intended to support it.
- windowProc
int windowProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- handle
GtkWidget* handle;
the handle to the OS resource
(Warning: This field is platform dependent)
<p>
<b>IMPORTANT:</b> This field is <em>not</em> part of the SWT
public API. It is marked public only so that it can be shared
within the packages provided by SWT. It is not available on all
platforms and should never be accessed from application code.
</p>
- style
int style;
- state
int state;
Undocumented in source.
- display
Display display;
Undocumented in source.
- eventTable
EventTable eventTable;
Undocumented in source.
- data
Object data;
Undocumented in source.
- DISPOSED
int DISPOSED;
Undocumented in source.
- CANVAS
int CANVAS;
Undocumented in source.
- KEYED_DATA
int KEYED_DATA;
Undocumented in source.
- HANDLE
int HANDLE;
Undocumented in source.
- DISABLED
int DISABLED;
Undocumented in source.
- MENU
int MENU;
Undocumented in source.
- OBSCURED
int OBSCURED;
Undocumented in source.
- MOVED
int MOVED;
Undocumented in source.
- RESIZED
int RESIZED;
Undocumented in source.
- ZERO_WIDTH
int ZERO_WIDTH;
Undocumented in source.
- ZERO_HEIGHT
int ZERO_HEIGHT;
Undocumented in source.
- HIDDEN
int HIDDEN;
Undocumented in source.
- FOREGROUND
int FOREGROUND;
Undocumented in source.
- BACKGROUND
int BACKGROUND;
Undocumented in source.
- FONT
int FONT;
Undocumented in source.
- PARENT_BACKGROUND
int PARENT_BACKGROUND;
Undocumented in source.
- THEME_BACKGROUND
int THEME_BACKGROUND;
Undocumented in source.
- LAYOUT_NEEDED
int LAYOUT_NEEDED;
Undocumented in source.
- LAYOUT_CHANGED
int LAYOUT_CHANGED;
Undocumented in source.
- LAYOUT_CHILD
int LAYOUT_CHILD;
Undocumented in source.
- RELEASED
int RELEASED;
Undocumented in source.
- DISPOSE_SENT
int DISPOSE_SENT;
Undocumented in source.
- FOREIGN_HANDLE
int FOREIGN_HANDLE;
Undocumented in source.
- DRAG_DETECT
int DRAG_DETECT;
Undocumented in source.
- DEFAULT_WIDTH
int DEFAULT_WIDTH;
Undocumented in source.
- DEFAULT_HEIGHT
int DEFAULT_HEIGHT;
Undocumented in source.
- ACTIVATE
int ACTIVATE;
Undocumented in source.
- BUTTON_PRESS_EVENT
int BUTTON_PRESS_EVENT;
Undocumented in source.
- BUTTON_PRESS_EVENT_INVERSE
int BUTTON_PRESS_EVENT_INVERSE;
Undocumented in source.
- BUTTON_RELEASE_EVENT
int BUTTON_RELEASE_EVENT;
Undocumented in source.
- BUTTON_RELEASE_EVENT_INVERSE
int BUTTON_RELEASE_EVENT_INVERSE;
Undocumented in source.
- CHANGED
int CHANGED;
Undocumented in source.
- CHANGE_VALUE
int CHANGE_VALUE;
Undocumented in source.
- CLICKED
int CLICKED;
Undocumented in source.
- COMMIT
int COMMIT;
Undocumented in source.
- CONFIGURE_EVENT
int CONFIGURE_EVENT;
Undocumented in source.
- DELETE_EVENT
int DELETE_EVENT;
Undocumented in source.
- DELETE_RANGE
int DELETE_RANGE;
Undocumented in source.
- DELETE_TEXT
int DELETE_TEXT;
Undocumented in source.
- ENTER_NOTIFY_EVENT
int ENTER_NOTIFY_EVENT;
Undocumented in source.
- EVENT
int EVENT;
Undocumented in source.
- EVENT_AFTER
int EVENT_AFTER;
Undocumented in source.
- EXPAND_COLLAPSE_CURSOR_ROW
int EXPAND_COLLAPSE_CURSOR_ROW;
Undocumented in source.
- EXPOSE_EVENT
int EXPOSE_EVENT;
Undocumented in source.
- EXPOSE_EVENT_INVERSE
int EXPOSE_EVENT_INVERSE;
Undocumented in source.
- FOCUS
int FOCUS;
Undocumented in source.
- FOCUS_IN_EVENT
int FOCUS_IN_EVENT;
Undocumented in source.
- FOCUS_OUT_EVENT
int FOCUS_OUT_EVENT;
Undocumented in source.
- GRAB_FOCUS
int GRAB_FOCUS;
Undocumented in source.
- HIDE
int HIDE;
Undocumented in source.
- INPUT
int INPUT;
Undocumented in source.
- INSERT_TEXT
int INSERT_TEXT;
Undocumented in source.
- KEY_PRESS_EVENT
int KEY_PRESS_EVENT;
Undocumented in source.
- KEY_RELEASE_EVENT
int KEY_RELEASE_EVENT;
Undocumented in source.
- LEAVE_NOTIFY_EVENT
int LEAVE_NOTIFY_EVENT;
Undocumented in source.
- MAP
int MAP;
Undocumented in source.
- MAP_EVENT
int MAP_EVENT;
Undocumented in source.
- MNEMONIC_ACTIVATE
int MNEMONIC_ACTIVATE;
Undocumented in source.
- MOTION_NOTIFY_EVENT
int MOTION_NOTIFY_EVENT;
Undocumented in source.
- MOTION_NOTIFY_EVENT_INVERSE
int MOTION_NOTIFY_EVENT_INVERSE;
Undocumented in source.
- MOVE_FOCUS
int MOVE_FOCUS;
Undocumented in source.
- OUTPUT
int OUTPUT;
Undocumented in source.
- POPULATE_POPUP
int POPULATE_POPUP;
Undocumented in source.
- POPUP_MENU
int POPUP_MENU;
Undocumented in source.
- PREEDIT_CHANGED
int PREEDIT_CHANGED;
Undocumented in source.
- REALIZE
int REALIZE;
Undocumented in source.
- ROW_ACTIVATED
int ROW_ACTIVATED;
Undocumented in source.
- SCROLL_CHILD
int SCROLL_CHILD;
Undocumented in source.
- SCROLL_EVENT
int SCROLL_EVENT;
Undocumented in source.
- SELECT
int SELECT;
Undocumented in source.
- SHOW
int SHOW;
Undocumented in source.
- SHOW_HELP
int SHOW_HELP;
Undocumented in source.
- SIZE_ALLOCATE
int SIZE_ALLOCATE;
Undocumented in source.
- STYLE_SET
int STYLE_SET;
Undocumented in source.
- SWITCH_PAGE
int SWITCH_PAGE;
Undocumented in source.
- TEST_COLLAPSE_ROW
int TEST_COLLAPSE_ROW;
Undocumented in source.
- TEST_EXPAND_ROW
int TEST_EXPAND_ROW;
Undocumented in source.
- TEXT_BUFFER_INSERT_TEXT
int TEXT_BUFFER_INSERT_TEXT;
Undocumented in source.
- TOGGLED
int TOGGLED;
Undocumented in source.
- UNMAP
int UNMAP;
Undocumented in source.
- UNMAP_EVENT
int UNMAP_EVENT;
Undocumented in source.
- UNREALIZE
int UNREALIZE;
Undocumented in source.
- VALUE_CHANGED
int VALUE_CHANGED;
Undocumented in source.
- VISIBILITY_NOTIFY_EVENT
int VISIBILITY_NOTIFY_EVENT;
Undocumented in source.
- WINDOW_STATE_EVENT
int WINDOW_STATE_EVENT;
Undocumented in source.
- ACTIVATE_INVERSE
int ACTIVATE_INVERSE;
Undocumented in source.
- DAY_SELECTED
int DAY_SELECTED;
Undocumented in source.
- MONTH_CHANGED
int MONTH_CHANGED;
Undocumented in source.
- LAST_SIGNAL
int LAST_SIGNAL;
Undocumented in source.
- UD_Getter
String UD_Getter()
Undocumented in source. Be warned that the author may not have intended to support it.
- _addListener
void _addListener(int eventType, Listener listener)
Undocumented in source. Be warned that the author may not have intended to support it.
- addListener
void addListener(int eventType, Listener listener)
Adds the listener to the collection of listeners who will
be notified when an event of the given type occurs. When the
event does occur in the widget, the listener is notified by
sending it the <code>handleEvent()</code> message. The event
type is one of the event constants defined in class <code>SWT</code>.
- addDisposeListener
void addDisposeListener(DisposeListener listener)
Adds the listener to the collection of listeners who will
be notified when the widget is disposed. When the widget is
disposed, the listener is notified by sending it the
<code>widgetDisposed()</code> message.
- paintWindow
GdkWindow* paintWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
- checkBits
int checkBits(int style, int int0, int int1, int int2, int int3, int int4, int int5)
Undocumented in source. Be warned that the author may not have intended to support it.
- cellDataProc
void cellDataProc(GtkTreeViewColumn* tree_column, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, void* data)
Undocumented in source. Be warned that the author may not have intended to support it.
- checkOpen
void checkOpen()
Undocumented in source. Be warned that the author may not have intended to support it.
- checkOrientation
void checkOrientation(Widget parent)
Undocumented in source. Be warned that the author may not have intended to support it.
- checkParent
void checkParent(Widget parent)
Throws an exception if the specified widget can not be
used as a parent for the receiver.
- checkSubclass
void checkSubclass()
Checks that this class can be subclassed.
<p>
The SWT class library is intended to be subclassed
only at specific, controlled points (most notably,
<code>Composite</code> and <code>Canvas</code> when
implementing new widgets). This method enforces this
rule unless it is overridden.
</p><p>
<em>IMPORTANT:</em> By providing an implementation of this
method that allows a subclass of a class which does not
normally allow subclassing to be created, the implementer
agrees to be fully responsible for the fact that any such
subclass will likely fail between SWT releases and will be
strongly platform specific. No support is provided for
user-written classes which are implemented in this fashion.
</p><p>
The ability to subclass outside of the allowed SWT classes
is intended purely to enable those not on the SWT development
team to implement patches in order to get around specific
limitations in advance of when those limitations can be
addressed by the team. Subclassing should not be attempted
without an intimate and detailed understanding of the hierarchy.
</p>
- checkWidget
void checkWidget()
Throws an <code>SWTException</code> if the receiver can not
be accessed by the caller. This may include both checks on
the state of the receiver and more generally on the entire
execution context. This method <em>should</em> be called by
widget implementors to enforce the standard SWT invariants.
<p>
Currently, it is an error to invoke any method (other than
<code>isDisposed()</code>) on a widget that has had its
<code>dispose()</code> method called. It is also an error
to call widget methods from any thread that is different
from the thread that created the widget.
</p><p>
In future releases of SWT, there may be more or fewer error
checks and exceptions may be thrown for different reasons.
</p>
- 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.
- dispose
void dispose()
Disposes of the operating system resources associated with
the receiver and all its descendants. After this method has
been invoked, the receiver and all descendants will answer
<code>true</code> when sent the message <code>isDisposed()</code>.
Any internal connections between the widgets in the tree will
have been removed to facilitate garbage collection.
<p>
NOTE: This method is not called recursively on the descendants
of the receiver. This means that, widget implementers can not
detect when a widget is being disposed of by re-implementing
this method, but should instead listen for the <code>Dispose</code>
event.
</p>
- error
void error(int code)
Undocumented in source. Be warned that the author may not have intended to support it.
- getData
Object getData()
Returns the application defined widget data associated
with the receiver, or null if it has not been set. The
<em>widget data</em> is a single, unnamed field that is
stored with every widget.
<p>
Applications may put arbitrary objects in this field. If
the object stored in the widget data needs to be notified
when the widget is disposed of, it is the application's
responsibility to hook the Dispose event on the widget and
do so.
</p>
- getDataStr
String getDataStr()
Undocumented in source. Be warned that the author may not have intended to support it.
- getData
Object getData(String key)
Returns the application defined property of the receiver
with the specified name, or null if it has not been set.
<p>
Applications may have associated arbitrary objects with the
receiver in this fashion. If the objects stored in the
properties need to be notified when the widget is disposed
of, it is the application's responsibility to hook the
Dispose event on the widget and do so.
</p>
- getDataStr
String getDataStr(String key)
Undocumented in source. Be warned that the author may not have intended to support it.
- getDisplay
Display getDisplay()
Returns the <code>Display</code> that is associated with
the receiver.
<p>
A widget's display is either provided when it is created
(for example, top level <code>Shell</code>s) or is the
same as its parent's display.
</p>
- getListeners
Listener[] getListeners(int eventType)
Returns an array of listeners who will be notified when an event
of the given type occurs. The event type is one of the event constants
defined in class <code>SWT</code>.
- getName
String getName()
Undocumented in source. Be warned that the author may not have intended to support it.
- getNameText
String getNameText()
Undocumented in source. Be warned that the author may not have intended to support it.
- getStyle
int getStyle()
Returns the receiver's style information.
<p>
Note that the value which is returned by this method <em>may
not match</em> the value which was provided to the constructor
when the receiver was created. This can occur when the underlying
operating system does not support a particular combination of
requested styles. For example, if the platform widget used to
implement a particular SWT widget always has scroll bars, the
result of calling this method would always have the
<code>SWT.H_SCROLL</code> and <code>SWT.V_SCROLL</code> bits set.
</p>
- 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_button_release_event
int gtk_button_release_event(GtkWidget* widget, GdkEventButton* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_changed
int gtk_changed(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_change_value
int gtk_change_value(GtkWidget* widget, int scroll, double value1, void* user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_clicked
int gtk_clicked(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_commit
int gtk_commit(GtkIMContext* imcontext, char* text)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_configure_event
int gtk_configure_event(GtkWidget* widget, ptrdiff_t event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_day_selected
int gtk_day_selected(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_delete_event
int gtk_delete_event(GtkWidget* widget, ptrdiff_t event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_delete_range
int gtk_delete_range(GtkWidget* widget, ptrdiff_t iter1, ptrdiff_t iter2)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_delete_text
int gtk_delete_text(GtkWidget* widget, ptrdiff_t start_pos, ptrdiff_t end_pos)
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_event
int gtk_event(GtkWidget* widget, GdkEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_event_after
int gtk_event_after(GtkWidget* widget, GdkEvent* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_expand_collapse_cursor_row
int gtk_expand_collapse_cursor_row(GtkWidget* widget, ptrdiff_t logical, ptrdiff_t expand, ptrdiff_t open_all)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_expose_event
int gtk_expose_event(GtkWidget* widget, GdkEventExpose* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_focus
int gtk_focus(GtkWidget* widget, ptrdiff_t directionType)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_focus_in_event
int gtk_focus_in_event(GtkWidget* widget, GdkEventFocus* 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_grab_focus
int gtk_grab_focus(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_hide
int gtk_hide(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_input
int gtk_input(GtkWidget* widget, ptrdiff_t arg1)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_insert_text
int gtk_insert_text(GtkEditable* widget, char* new_text, ptrdiff_t new_text_length, ptrdiff_t position)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_key_press_event
int gtk_key_press_event(GtkWidget* widget, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_key_release_event
int gtk_key_release_event(GtkWidget* widget, GdkEventKey* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_leave_notify_event
int gtk_leave_notify_event(GtkWidget* widget, GdkEventCrossing* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_map
int gtk_map(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_map_event
int gtk_map_event(GtkWidget* widget, ptrdiff_t event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_mnemonic_activate
int gtk_mnemonic_activate(GtkWidget* widget, ptrdiff_t arg1)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_month_changed
int gtk_month_changed(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_motion_notify_event
int gtk_motion_notify_event(GtkWidget* widget, GdkEventMotion* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_move_focus
int gtk_move_focus(GtkWidget* widget, ptrdiff_t directionType)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_output
int gtk_output(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_populate_popup
int gtk_populate_popup(GtkWidget* widget, GtkWidget* menu)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_popup_menu
int gtk_popup_menu(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_preedit_changed
int gtk_preedit_changed(GtkIMContext* imcontext)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_realize
int gtk_realize(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_row_activated
void gtk_row_activated(GtkTreeView* tree, GtkTreePath* path, GtkTreeViewColumn* column)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_scroll_child
int gtk_scroll_child(GtkWidget* widget, ptrdiff_t scrollType, ptrdiff_t horizontal)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_scroll_event
int gtk_scroll_event(GtkWidget* widget, GdkEventScroll* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_select
int gtk_select(int item)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_show
int gtk_show(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_show_help
int gtk_show_help(GtkWidget* widget, ptrdiff_t helpType)
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.
- gtk_style_set
int gtk_style_set(GtkWidget* widget, ptrdiff_t previousStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_switch_page
int gtk_switch_page(GtkWidget* widget, ptrdiff_t page, ptrdiff_t page_num)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_test_collapse_row
int gtk_test_collapse_row(GtkTreeView* tree_view, GtkTreeIter* iter, GtkTreePath* path)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_test_expand_row
int gtk_test_expand_row(GtkTreeView* tree_view, GtkTreeIter* iter, GtkTreePath* path)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_text_buffer_insert_text
int gtk_text_buffer_insert_text(GtkTextBuffer* buffer, GtkTextIter* iter, char* text, ptrdiff_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_timer
int gtk_timer()
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_toggled
int gtk_toggled(int renderer, char* pathStr)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_unmap
int gtk_unmap(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_unmap_event
int gtk_unmap_event(GtkWidget* widget, ptrdiff_t event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_unrealize
int gtk_unrealize(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_value_changed
int gtk_value_changed(int adjustment)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_visibility_notify_event
int gtk_visibility_notify_event(GtkWidget* widget, GdkEventVisibility* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- gtk_window_state_event
int gtk_window_state_event(GtkWidget* widget, GdkEventWindowState* event)
Undocumented in source. Be warned that the author may not have intended to support it.
- fontHeight
int fontHeight(PangoFontDescription* font, GtkWidget* widgetHandle)
Undocumented in source. Be warned that the author may not have intended to support it.
- filterProc
int filterProc(XEvent* xEvent, GdkEvent* gdkEvent, void* data)
Undocumented in source. Be warned that the author may not have intended to support it.
- filters
bool filters(int eventType)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixedMapProc
int fixedMapProc(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixedSizeAllocateProc
void fixedSizeAllocateProc(GtkWidget* widget, GtkAllocation* allocationPtr)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixMnemonic
char[] fixMnemonic(String str)
Undocumented in source. Be warned that the author may not have intended to support it.
- fixMnemonic
char[] fixMnemonic(String str, bool replace)
Undocumented in source. Be warned that the author may not have intended to support it.
- isDisposed
bool isDisposed()
Returns <code>true</code> if the widget has been disposed,
and <code>false</code> otherwise.
<p>
This method gets the dispose state for the widget.
When a widget has been disposed, it is an error to
invoke any other method using the widget.
</p>
- isListening
bool isListening(int eventType)
Returns <code>true</code> if there are any listeners
for the specified event type associated with the receiver,
and <code>false</code> otherwise. The event type is one of
the event constants defined in class <code>SWT</code>.
- isValidThread
bool isValidThread()
Undocumented in source. Be warned that the author may not have intended to support it.
- isValidSubclass
bool isValidSubclass()
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.
- hooks
bool hooks(int eventType)
Undocumented in source. Be warned that the author may not have intended to support it.
- hoverProc
int hoverProc(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- menuPositionProc
void menuPositionProc(GtkMenu* menu, int* x, int* y, int* push_in, void* user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- mnemonicHit
bool mnemonicHit(GtkWidget* mnemonicHandle, wchar key)
Undocumented in source. Be warned that the author may not have intended to support it.
- mnemonicMatch
bool mnemonicMatch(GtkWidget* mnemonicHandle, wchar key)
Undocumented in source. Be warned that the author may not have intended to support it.
- modifyStyle
void modifyStyle(GtkWidget* handle, GtkRcStyle* style)
Undocumented in source. Be warned that the author may not have intended to support it.
- notifyListeners
void notifyListeners(int eventType, Event event)
Notifies all of the receiver's listeners for events
of the given type that one such event has occurred by
invoking their <code>handleEvent()</code> method. The
event type is one of the event constants defined in class
<code>SWT</code>.
- postEvent
void postEvent(int eventType)
Undocumented in source. Be warned that the author may not have intended to support it.
- postEvent
void postEvent(int eventType, Event event)
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.
- release
void release(bool destroy)
Undocumented in source. Be warned that the author may not have intended to support it.
- releaseChildren
void releaseChildren(bool destroy)
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.
- releaseParent
void releaseParent()
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.
- removeListener
void removeListener(int eventType, Listener handler)
Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs. The event
type is one of the event constants defined in class <code>SWT</code>.
- removeListener
void removeListener(int eventType, SWTEventListener handler)
Removes the listener from the collection of listeners who will
be notified when an event of the given type occurs.
<p>
<b>IMPORTANT:</b> This method is <em>not</em> part of the SWT
public API. It is marked public only so that it can be shared
within the packages provided by SWT. It should never be
referenced from application code.
</p>
- rendererGetSizeProc
void rendererGetSizeProc(GtkCellRenderer* cell, GtkWidget* widget, GdkRectangle* cell_area, int* x_offset, int* y_offset, int* width, int* height)
Undocumented in source. Be warned that the author may not have intended to support it.
- rendererRenderProc
void rendererRenderProc(GtkCellRenderer* cell, GdkDrawable* window, GtkWidget* widget, GdkRectangle* background_area, GdkRectangle* cell_area, GdkRectangle* expose_area, int flags)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeDisposeListener
void removeDisposeListener(DisposeListener listener)
Removes the listener from the collection of listeners who will
be notified when the widget is disposed.
- sendEvent
void sendEvent(Event event)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendEvent
void sendEvent(int eventType)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendEvent
void sendEvent(int eventType, Event event)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendEvent
void sendEvent(int eventType, Event event, bool send)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendKeyEvent
bool sendKeyEvent(int type, GdkEventKey* keyEvent)
Undocumented in source. Be warned that the author may not have intended to support it.
- sendIMKeyEvent
char[] sendIMKeyEvent(int type, GdkEventKey* keyEvent, char[] chars)
Undocumented in source. Be warned that the author may not have intended to support it.
- setData
void setData(Object data)
Sets the application defined widget data associated
with the receiver to be the argument. The <em>widget
data</em> is a single, unnamed field that is stored
with every widget.
<p>
Applications may put arbitrary objects in this field. If
the object stored in the widget data needs to be notified
when the widget is disposed of, it is the application's
responsibility to hook the Dispose event on the widget and
do so.
</p>
- setDataStr
void setDataStr(String data)
Undocumented in source. Be warned that the author may not have intended to support it.
- setData
void setData(String key, Object value)
Sets the application defined property of the receiver
with the specified name to the given value.
<p>
Applications may associate arbitrary objects with the
receiver in this fashion. If the objects stored in the
properties need to be notified when the widget is disposed
of, it is the application's responsibility to hook the
Dispose event on the widget and do so.
</p>
- setDataStr
void setDataStr(String key, String value)
Undocumented in source. Be warned that the author may not have intended to support it.
- setForegroundColor
void setForegroundColor(GtkWidget* handle, GdkColor* color)
Undocumented in source. Be warned that the author may not have intended to support it.
- setInputState
bool setInputState(Event event, int state)
Undocumented in source. Be warned that the author may not have intended to support it.
- setKeyState
bool setKeyState(Event event, GdkEventKey* keyEvent)
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.
- shellMapProc
int shellMapProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- sizeAllocateProc
int sizeAllocateProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- sizeRequestProc
int sizeRequestProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- toString
String toString()
Returns a string containing a concise, human-readable
description of the receiver.
- topHandle
GtkWidget* topHandle()
Undocumented in source. Be warned that the author may not have intended to support it.
- timerProc
int timerProc(GtkWidget* widget)
Undocumented in source. Be warned that the author may not have intended to support it.
- treeSelectionProc
void treeSelectionProc(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, int[] selection, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
- translateTraversal
bool translateTraversal(int event)
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.
- windowProc
int windowProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- windowProc
int windowProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t arg1, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
- windowProc
int windowProc(GtkWidget* handle, ptrdiff_t arg0, ptrdiff_t arg1, ptrdiff_t arg2, ptrdiff_t user_data)
Undocumented in source. Be warned that the author may not have intended to support it.
Control is the abstract superclass of all windowed user interface classes. <p> <dl> <dt><b>Styles:</b> <dd>BORDER</dd> <dd>LEFT_TO_RIGHT, RIGHT_TO_LEFT</dd> <dt><b>Events:</b> <dd>DragDetect, FocusIn, FocusOut, Help, KeyDown, KeyUp, MenuDetect, MouseDoubleClick, MouseDown, MouseEnter, MouseExit, MouseHover, MouseUp, MouseMove, Move, Paint, Resize, Traverse</dd> </dl> </p><p> Only one of LEFT_TO_RIGHT or RIGHT_TO_LEFT may be specified. </p><p> IMPORTANT: This class is intended to be subclassed <em>only</em> within the SWT implementation. </p>
@see <a href="http://www.eclipse.org/swt/snippets/#control">Control snippets</a> @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: ControlExample</a> @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>