Top Description Fields Constructors Methods
org.eclipse.swt.internal.gtk4

public Class GTK4

extends Object
Class Inheritance
Imports
org.eclipse.swt.internal.gtk.*

This class contains native functions that are present in GTK4 only.

Field Summary

Modifier and TypeField and Description
public static final int

Constructor Summary

AccessConstructor and Description
public
GTK4()

Method Summary

Modifier and TypeMethod and Description
public static final native long
gdk_clipboard_get_content(long
cast=(GdkClipboard*)
clipboard
)

public static final native long
gdk_clipboard_get_formats(long
cast=(GdkClipboard*)
clipboard
)

public static final native void
gdk_clipboard_set(long
cast=(GdkClipboard*)
clipboard
,
long
cast=(GType)
type
,
long data)

public static final native boolean
gdk_clipboard_set_content(long
cast=(GdkClipboard*)
clipboard
,
long
cast=(GdkContentProvider*)
provider
)

public static final native void
gdk_clipboard_set_text(long
cast=(GdkClipboard*)
clipboard
,
byte[]
cast=(const char *)
text
)

public static final native void
gdk_content_formats_builder_add_mime_type(long
cast=(GdkContentFormatsBuilder *)
builder
,
byte[]
cast=(const char *)
mime_type
)

public static final native long
gdk_content_formats_builder_free_to_formats(long
cast=(GdkContentFormatsBuilder *)
builder
)

public static final native long
public static final native long
gdk_content_formats_to_string(long
cast=(GdkContentFormats *)
formats
)

public static final native boolean
gdk_content_provider_get_value(long
cast=(GdkContentProvider *)
provider
,
long
cast=(GValue *)
value
,
long[]
cast=(GError **)
error
)

public static final native long
gdk_content_provider_new_for_value(long
cast=(const GValue*)
value
)

public static final native long
gdk_content_provider_new_typed(long
cast=(GType)
type
,
long data)

public static final native long
gdk_content_provider_new_union(long[]
cast=(GdkContentProvider **)
providers
,
int
cast=(gsize)
n_providers
)

public static final native void
gdk_toplevel_focus(long
cast=(GdkToplevel *)
surface
,
int timestamp)

public static final native int
gdk_toplevel_get_state(long
cast=(GdkToplevel *)
toplevel
)

public static final native boolean
gdk_toplevel_lower(long
cast=(GdkToplevel *)
toplevel
)

public static final native void
gdk_toplevel_set_icon_list(long
cast=(GdkToplevel *)
toplevel
,
long
cast=(GList *)
textures
)

public static final native void
gdk_toplevel_size_get_bounds(long
cast=(GdkToplevelSize*)
size
,
int[]
cast=(int *)
bounds_width
,
int[]
cast=(int *)
bounds_height
)

public static final native void
gdk_toplevel_size_set_min_size(long
cast=(GdkToplevelSize*)
size
,
int
cast=(int)
min_width
,
int
cast=(int)
min_height
)

public static final native void
gdk_toplevel_size_set_size(long
cast=(GdkToplevelSize*)
size
,
int
cast=(int)
width
,
int
cast=(int)
height
)

public static final native void
gtk_box_append(long
cast=(GtkBox *)
box
,
long
cast=(GtkWidget *)
child
)

public static final native void
gtk_box_insert_child_after(long
cast=(GtkBox *)
box
,
long
cast=(GtkWidget *)
child
,
long
cast=(GtkWidget *)
sibling
)

public static final native void
gtk_box_prepend(long
cast=(GtkBox *)
box
,
long
cast=(GtkWidget *)
child
)

public static final native long
gtk_button_new_from_icon_name(byte[]
cast=(const gchar *)
icon_name
)

public static final native void
gtk_button_set_child(long
cast=(GtkButton *)
button
,
long
cast=(GtkWidget *)
child
)

public static final native long
gtk_calendar_get_date(long
cast=(GtkCalendar *)
calendar
)

public static final native void
gtk_calendar_select_day(long
cast=(GtkCalendar *)
calendar
,
long
cast=(GDateTime *)
date
)

public static final native void
gtk_calendar_set_show_day_names(long
cast=(GtkCalendar *)
calendar
,
boolean
cast=(gboolean)
value
)

public static final native void
gtk_calendar_set_show_heading(long
cast=(GtkCalendar *)
calendar
,
boolean
cast=(gboolean)
value
)

public static final native void
gtk_calendar_set_show_week_numbers(long
cast=(GtkCalendar *)
calendar
,
boolean
cast=(gboolean)
value
)

public static final native boolean
gtk_check_button_get_active(long
cast=(GtkCheckButton *)
check_button
)

public static final native void
gtk_check_button_set_active(long
cast=(GtkCheckButton *)
check_button
,
boolean setting)

public static final native void
gtk_check_button_set_group(long
cast=(GtkCheckButton *)
check_button
,
long
cast=(GtkCheckButton *)
group
)

public static final native void
gtk_check_button_set_inconsistent(long
cast=(GtkCheckButton *)
check_button
,
boolean inconsistent)

public static final native void
gtk_check_button_set_use_underline(long
cast=(GtkCheckButton *)
check_button
,
boolean use_underline)

public static final native long
gtk_combo_box_get_child(long
cast=(GtkComboBox *)
combo_box
)

public static final native void
gtk_css_provider_load_from_data(long
cast=(GtkCssProvider *)
css_provider
,
byte[]
cast=(const gchar *)
data
,
long
cast=(gssize)
length
)

public static final native long
public static final native void
gtk_drag_source_set_actions(long
cast=(GtkDragSource *)
source
,
int
cast=(GdkDragAction)
actions
)

public static final native void
gtk_drag_source_set_icon(long
cast=(GtkDragSource *)
source
,
long
cast=(GdkPaintable *)
paintable
,
int hot_x, int hot_y)

public static final native long
gtk_drop_target_async_new(long
cast=(GdkContentFormats *)
formats
,
int
cast=(GdkDragAction)
actions
)

public static final native void
gtk_drop_target_async_set_formats(long
cast=(GtkDropTargetAsync *)
target
,
long
cast=(GdkContentFormats *)
formats
)

public static final native long
gtk_editable_get_delegate(long
cast=(GtkEditable *)
editable
)

public static final native long
gtk_editable_get_text(long
cast=(GtkEditable *)
editable
)

public static final native long
gtk_entry_get_buffer(long
cast=(GtkEntry *)
entry
)

public static final native int
gtk_entry_get_text_length(long
cast=(GtkEntry *)
entry
)

public static final native void
gtk_entry_set_buffer(long
cast=(GtkEntry *)
entry
,
long
cast=(GtkEntryBuffer *)
buffer
)

public static final native long
public static final native long
gtk_event_controller_get_current_event(long
cast=(GtkEventController *)
controller
)

public static final native int
gtk_event_controller_get_current_event_state(long
cast=(GtkEventController *)
controller
)

public static final native long
public static final native long
public static final native long
gtk_event_controller_scroll_new(int
cast=(GtkEventControllerScrollFlags)
flag
)

public static final native void
gtk_expander_set_child(long
cast=(GtkExpander *)
expander
,
long
cast=(GtkWidget *)
child
)

public static final native long
gtk_file_chooser_get_file(long
cast=(GtkFileChooser *)
chooser
)

public static final native long
gtk_file_chooser_get_files(long
cast=(GtkFileChooser *)
chooser
)

public static final native boolean
gtk_file_chooser_set_current_folder(long
cast=(GtkFileChooser *)
chooser
,
long
cast=(GFile *)
file
,
long
cast=(GError **)
error
)

public static final native boolean
gtk_file_chooser_set_file(long
cast=(GtkFileChooser *)
chooser
,
long
cast=(GFile *)
file
,
long
cast=(GError **)
error
)

public static final native void
gtk_frame_set_child(long
cast=(GtkFrame *)
frame
,
long
cast=(GtkWidget *)
child
)

public static final native long
public static final native void
gtk_hsv_to_rgb(float h, float s, float v, float[]
cast=(float *)
r
,
float[]
cast=(float *)
g
,
float[]
cast=(float *)
b
)

public static final native long
gtk_icon_paintable_get_file(long
cast=(GtkIconPaintable *)
paintable
)

public static final native long
gtk_icon_theme_get_for_display(long
cast=(GdkDisplay *)
display
)

public static final native long
gtk_icon_theme_lookup_by_gicon(long
cast=(GtkIconTheme *)
self
,
long
cast=(GIcon *)
icon
,
int size, int scale, int
cast=(GtkTextDirection)
direction
,
int
cast=(GtkIconLookupFlags)
flags
)

public static final native long
gtk_icon_theme_lookup_icon(long
cast=(GtkIconTheme *)
self
,
byte[]
cast=(const char *)
icon_name
,
long
cast=(const char **)
fallbacks
,
int size, int scale, int
cast=(GtkTextDirection)
direction
,
int
cast=(GtkIconLookupFlags)
flags
)

public static final native boolean
gtk_im_context_filter_keypress(long
cast=(GtkIMContext *)
context
,
long
cast=(GdkEvent *)
event
)

public static final native void
gtk_image_clear(long
cast=(GtkImage *)
image
)

public static final native long
gtk_image_new_from_icon_name(byte[]
cast=(const char *)
icon_name
)

public static final native void
gtk_image_set_from_icon_name(long
cast=(GtkImage *)
image
,
byte[]
cast=(const gchar *)
icon_name
)

public static final native void
gtk_image_set_from_paintable(long
cast=(GtkImage *)
image
,
long
cast=(GdkPaintable *)
paintable
)

public static final native boolean
public static final native long
gtk_keyval_trigger_new(int
cast=(guint)
keyval
,
int
cast=(GdkModifierType)
modifiers
)

public static final native void
gtk_label_set_wrap(long
cast=(GtkLabel *)
label
,
boolean
cast=(gboolean)
wrap
)

public static final native void
gtk_label_set_wrap_mode(long
cast=(GtkLabel *)
label
,
int
cast=(PangoWrapMode)
wrap_mode
)

public static final native void
gtk_menu_button_set_use_underline(long
cast=(GtkMenuButton *)
menu_button
,
boolean use_underline)

public static final native long
gtk_named_action_new(byte[]
cast=(const char *)
name
)

public static final native long
gtk_native_get_surface(long
cast=(GtkNative *)
self
)

public static final native long
public static final native void
gtk_picture_set_can_shrink(long
cast=(GtkPicture *)
picture
,
boolean can_shrink)

public static final native void
gtk_picture_set_paintable(long
cast=(GtkPicture *)
picture
,
long
cast=(GdkPaintable *)
paintable
)

public static final native long
gtk_popover_menu_bar_new_from_model(long
cast=(GMenuModel *)
model
)

public static final native long
gtk_popover_menu_new_from_model_full(long
cast=(GMenuModel *)
model
,
int
cast=(GtkPopoverMenuFlags)
flags
)

public static final native void
gtk_popover_menu_set_menu_model(long
cast=(GtkPopoverMenu *)
popover
,
long
cast=(GMenuModel *)
model
)

public static final native void
gtk_popover_set_has_arrow(long
cast=(GtkPopover *)
popover
,
boolean has_arrow)

public static final native void
gtk_rgb_to_hsv(float r, float g, float b, float[]
cast=(float *)
h
,
float[]
cast=(float *)
s
,
float[]
cast=(float *)
v
)

public static final native long
gtk_scrollbar_get_adjustment(long
cast=(GtkScrollbar *)
scrollbar
)

public static final native boolean
gtk_scrolled_window_get_has_frame(long
cast=(GtkScrolledWindow *)
scrolled_window
)

public static final native long
public static final native void
gtk_scrolled_window_set_child(long
cast=(GtkScrolledWindow *)
scrolled_window
,
long
cast=(GtkWidget *)
child
)

public static final native void
gtk_scrolled_window_set_has_frame(long
cast=(GtkScrolledWindow *)
scrolled_window
,
boolean has_frame)

public static final native void
gtk_shortcut_controller_add_shortcut(long
cast=(GtkShortcutController *)
controller
,
long
cast=(GtkShortcut *)
shortcut
)

public static final native long
public static final native void
gtk_shortcut_controller_remove_shortcut(long
cast=(GtkShortcutController *)
controller
,
long
cast=(GtkShortcut *)
shortcut
)

public static final native void
gtk_shortcut_controller_set_scope(long
cast=(GtkShortcutController *)
controller
,
int
cast=(GtkShortcutScope)
scope
)

public static final native long
gtk_shortcut_new(long
cast=(GtkShortcutTrigger *)
trigger
,
long
cast=(GtkShortcutAction *)
action
)

public static final native long
gtk_snapshot_append_cairo(long
cast=(GtkSnapshot *)
snapshot
,
long
cast=(const graphene_rect_t *)
rect
)

public static final native void
gtk_style_context_add_provider_for_display(long
cast=(GdkDisplay *)
display
,
long
cast=(GtkStyleProvider *)
provider
,
int
cast=(guint)
priority
)

public static final native void
gtk_style_context_get_border(long
cast=(GtkStyleContext *)
context
,
GtkBorder
cast=(GtkBorder *),flags=no_in
padding
)

public static final native void
gtk_style_context_get_color(long
cast=(GtkStyleContext *)
context
,
GdkRGBA
cast=(GdkRGBA *)
color
)

public static final native void
gtk_style_context_get_margin(long
cast=(GtkStyleContext *)
context
,
GtkBorder
cast=(GtkBorder *),flags=no_in
margin
)

public static final native void
gtk_style_context_get_padding(long
cast=(GtkStyleContext *)
context
,
GtkBorder
cast=(GtkBorder *),flags=no_in
padding
)

public static final native long
gtk_text_get_buffer(long
cast=(GtkText *)
self
)

public static final native void
gtk_text_set_placeholder_text(long
cast=(GtkText *)
self
,
byte[]
cast=(const gchar *)
text
)

public static final native void
gtk_text_set_tabs(long
cast=(GtkText *)
entry
,
long
cast=(PangoTabArray *)
tabs
)

public static final native void
gtk_text_set_visibility(long
cast=(GtkText *)
self
,
boolean visible)

public static final native void
gtk_tree_view_column_cell_get_size(long
cast=(GtkTreeViewColumn *)
tree_column
,
int[]
cast=(int *)
x_offset
,
int[]
cast=(int *)
y_offset
,
int[]
cast=(int *)
width
,
int[]
cast=(int *)
height
)

public static final native void
gtk_widget_action_set_enabled(long
cast=(GtkWidget *)
widget
,
byte[]
cast=(const char *)
action_name
,
boolean enabled)

public static final native boolean
gtk_widget_activate_action(long
cast=(GtkWidget *)
widget
,
byte[]
cast=(const char *)
name
,
byte[]
cast=(const char *)
format_string
)

public static final native void
gtk_widget_add_controller(long
cast=(GtkWidget *)
widget
,
long
cast=(GtkEventController *)
controller
)

public static final native void
gtk_widget_class_add_binding_signal(long
cast=(GtkWidgetClass *)
widget_class
,
int keyval, int
cast=(GdkModifierType)
mods
,
byte[]
cast=(const char *)
signal
,
byte[]
cast=(const char *)
format_string
,
boolean arg1, boolean arg2, boolean arg3)

public static final native long
gtk_widget_get_clipboard(long
cast=(GtkWidget *)
widget
)

public static final native long
gtk_widget_get_first_child(long
cast=(GtkWidget *)
widget
)

public static final native long
gtk_widget_get_last_child(long
cast=(GtkWidget *)
widget
)

public static final native long
gtk_widget_get_native(long
cast=(GtkWidget *)
widget
)

public static final native long
gtk_widget_get_next_sibling(long
cast=(GtkWidget *)
widget
)

public static final native long
gtk_widget_get_prev_sibling(long
cast=(GtkWidget *)
widget
)

public static final native boolean
gtk_widget_get_receives_default(long
cast=(GtkWidget *)
widget
)

public static final native long
gtk_widget_get_root(long
cast=(GtkWidget *)
widget
)

public static final native void
gtk_widget_measure(long
cast=(GtkWidget *)
widget
,
int
cast=(GtkOrientation)
orientation
,
int
cast=(int)
for_size
,
int[]
cast=(int *)
minimum
,
int[]
cast=(int *)
natural
,
int[]
cast=(int *)
minimum_baseline
,
int[]
cast=(int *)
natural_baseline
)

public static final native void
gtk_widget_set_cursor(long
cast=(GtkWidget *)
widget
,
long
cast=(GdkCursor *)
cursor
)

public static final native void
gtk_widget_set_focusable(long
cast=(GtkWidget *)
widget
,
boolean
cast=(gboolean)
focusable
)

public static final native void
gtk_widget_size_allocate(long
cast=(GtkWidget *)
widget
,
GtkAllocation
cast=(GtkAllocation *),flags=no_out
allocation
,
int baseline)

public static final native void
gtk_widget_snapshot_child(long
cast=(GtkWidget *)
widget
,
long
cast=(GtkWidget *)
child
,
long
cast=(GtkSnapshot *)
snapshot
)

public static final native boolean
gtk_widget_translate_coordinates(long
cast=(GtkWidget *)
src_widget
,
long
cast=(GtkWidget *)
dest_widget
,
double src_x, double src_y, double[]
cast=(double *)
dest_x
,
double[]
cast=(double *)
dest_y
)

public static final native void
gtk_window_destroy(long
cast=(GtkWindow *)
window
)

public static final native long
gtk_window_get_icon_name(long
cast=(GtkWindow *)
window
)

public static final native boolean
gtk_window_is_maximized(long
cast=(GtkWindow *)
window
)

public static final native void
gtk_window_maximize(long
cast=(GtkWindow *)
window
)

public static final native void
gtk_window_minimize(long
cast=(GtkWindow *)
window
)

public static final native long
public static final native void
gtk_window_set_child(long
cast=(GtkWindow *)
window
,
long
cast=(GtkWidget *)
child
)

public static final native void
gtk_window_set_default_widget(long
cast=(GtkWindow *)
window
,
long
cast=(GtkWidget *)
default_widget
)

public static final native void
gtk_window_set_icon_name(long
cast=(GtkWindow *)
window
,
long
cast=(const char *)
name
)

public static final native void
gtk_window_unminimize(long
cast=(GtkWindow *)
window
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait