Important Note
This class is intended to be subclassed only within the SWT implementation. However, it has not been marked final to allow those outside of the SWT development team to implement patched versions of the class in order to get around specific limitations in advance of when those limitations can be addressed by the team. Any class built using subclassing to access the internals of this class will likely fail to compile or run between releases and may be strongly platform specific. Subclassing should not be attempted without an intimate and detailed understanding of the workings of the hierarchy. No support is provided for user-written classes which are implemented as subclasses of this class.
checkSubclass, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv Object | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv Display | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv EventTable | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static Callback | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public long | handle
the handle to the OS resource (Warning: This field is platform dependent) Important Note This field is not part of the SWT public API. |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public void | addDisposeListener(DisposeListener
the listener which should be notified when the receiver is disposed listener)Adds the listener to the collection of listeners who will be notified when the widget is disposed. |
| public void | addListener(int
the type of event to listen for eventType, Listener the listener which should be notified when the event occurs listener)Adds the listener to the collection of listeners who will be notified when an event of the given type occurs. |
| pack-priv long | |
| pack-priv static int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | checkParent(Widget parent)
Throws an exception if the specified widget can not be used as a parent for the receiver. |
| protected void | |
| protected void | |
| pack-priv String | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| pack-priv void | |
| public void | dispose()
Disposes of the operating system resources associated with the receiver and all its descendants. |
| pack-priv long | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv char[] | |
| pack-priv char[] | |
| pack-priv char[] | |
| pack-priv void | |
| pack-priv int | |
| pack-priv void | gdk_event_free(long
the event to be freed event)GTK4 does not hand out copies of events anymore, only references. |
| pack-priv int | Returns: the keymask to be used with constants like OS.GDK_SHIFT_MASK / OS.GDK_CONTROL_MASK / OS.GDK_MOD1_MASK etc..pointer to the GdkEvent. event)Wrapper function for gdk_event_get_state() |
| pack-priv long | Returns: the GdkWindow or GdkSurface associated with the eventthe event whose window or surface to fetch event)Wrapper function for gdk_event_get_surface() on GTK4, and gdk_event_get_window() on GTK3. |
| pack-priv int | gdk_pointer_grab(long gdkResource, int grab_ownership, boolean owner_events, int event_mask, long confine_to, long cursor, int time_)
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static long | |
| pack-priv void | |
| public Object | Returns: the widget dataReturns the application defined widget data associated with the receiver, or null if it has not been set. |
| public Object | |
| public Display | Returns: the receiver's displayReturns the |
| public Listener[] | Returns: an array of listeners that will be notified when the event occursthe type of event to listen for eventType)Returns an array of listeners who will be notified when an event of the given type occurs. |
| pack-priv String | |
| pack-priv String | |
| public int | |
| pack-priv long | |
| pack-priv void | |
| pack-priv void | gtk4_enter_event(long
the corresponding controller responsible for capturing the event controller, double x coordinate of pointer location x, double y coordinate of pointer location y, long the GdkEvent captured event)
|
| pack-priv void | gtk4_focus_enter_event(long
the corresponding controller responsible for capturing the event controller, long the GdkEvent captured event)
|
| pack-priv void | gtk4_focus_leave_event(long
the corresponding controller responsible for capturing the event controller, long the GdkEvent captured event)
|
| pack-priv void | gtk4_focus_window_event(long
the handle of the window that caused the event handle, long the type of event, should be FocusIn or FocusOut event)
|
| pack-priv boolean | Returns: TRUE if the event has been fully/properly handled, otherwise FALSEthe corresponding controller responsible for capturing the event controller, int the pressed key keyval, int raw code of the pressed key keycode, int the bitmask, representing the state of the modifier keys and pointer buttons state, long the GdkEvent captured event)
|
| pack-priv void | gtk4_key_release_event(long
the corresponding controller responsible for capturing the event controller, int the released key keyval, int raw code of the released key keycode, int the bitmask, representing the state of the modifier keys and pointer buttons state, long the GdkEvent captured event)
|
| pack-priv void | gtk4_leave_event(long
the corresponding controller responsible for capturing the event controller, long the GdkEvent captured event)
|
| pack-priv void | gtk4_motion_event(long
the corresponding controller responsible for capturing the event controller, double the x coordinate x, double the y coordinate y, long the GdkEvent captured event)
|
| pack-priv boolean | Returns: TRUE if the scroll event was handled, FALSE otherwisethe corresponding controller responsible for capturing the event controller, double x delta dx, double y delta dy, long the GdkEvent captured event)
|
| pack-priv long | |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| pack-priv void | gtk_box_set_child_packing(long box, long child, boolean expand, boolean fill, int padding, int pack_type)
|
| pack-priv long | |
| pack-priv long | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv int | Returns: amount of space around the outside of the container.Retrieves the amount of space around the outside of the container. |
| pack-priv void | gtk_container_set_border_width(long handle, int border_width)
Sets the border width of the container to all sides of the container. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv void | gtk_gesture_press_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)
|
| pack-priv void | gtk_gesture_release_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)
|
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | gtk_menu_popped_up(long
the memory address of the menu which was popped up widget, long a pointer to the GdkRectangle containing the flipped location and size of the menu flipped_rect, long a pointer to the GdkRectangle containing the final (after all internal adjustments)
location and size of the menu final_rect, long a boolean flag indicating whether the menu has been inverted along the X-axis flipped_x, long a boolean flag indicating whether the menu has been inverted along the Y-axis flipped_y)GTK3.22+ has API which allows clients of GTK to connect a menu to the "popped-up" signal. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv boolean | gtk_tree_view_column_cell_get_position(long column, long cell_renderer, int[] start_pos, int[] width)
|
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv boolean | |
| public boolean | Returns: true when the widget has auto direction and false otherwiseReturns |
| public boolean | Returns: true when the widget is disposed and false otherwiseReturns |
| public boolean | Returns: true if the event is hookedthe type of event eventType)Returns |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| public void | notifyListeners(int
the type of event which has occurred eventType, Event the event data event)Notifies all of the receiver's listeners for events
of the given type that one such event has occurred by
invoking their |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeDisposeListener(DisposeListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the widget is disposed. |
| public void | removeListener(int
the type of event to listen for eventType, Listener the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when an event of the given type occurs. |
| protected void | removeListener(int
the type of event to listen for eventType, SWTEventListener the listener which should no longer be notified handler)Removes the listener from the collection of listeners who will be notified when an event of the given type occurs. |
| pack-priv long | |
| pack-priv long | rendererRenderProc(long cell, long cr, long handle, long background_area, long cell_area, long flags)
|
| pack-priv long | rendererSnapshotProc(long cell, long snapshot, long handle, long background_area, long cell_area, long flags)
|
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv char[] | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | |
| pack-priv void | setFontDescription(long widget, long
Font description in the form of
fontDescription)PangoFontDescription*. This pointer
will never be used by GTK after calling this
function, so it's safe to free it as soon as the
function completes.
|
| pack-priv boolean | |
| pack-priv boolean | setKeyState(Event javaEvent, long event)
On Linux, the most common way to handle keyboard input is XKB. |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv void | snapshotToDraw(long
the widget receiving the snapshot handle, long the actual GtkSnapshot snapshot)Converts an incoming snapshot into a gtk_draw() call, complete with a Cairo context. |
| pack-priv long | |
| pack-priv long | |
| public String | Returns: a string representation of the receiverOverrides java. |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long |