org.gnu.gdk
Class GdkCairo
public class GdkCairo
extends Context
// Not implemented.
native static final private void gdk_threads_set_lock_functions(GCallback enter_fn, GCallback leave_fn);
// Deprecated or undocumented functions.
native static final private void gdk_add_option_entries_libgtk_only(GOptionGroup* group);
native static final private void gdk_pre_parse_libgtk_only();
native static final private boolean gdk_pointer_grab_info_libgtk_only(Handle display, Handle grab_window, gboolean* owner_events);
native static final private boolean gdk_keyboard_grab_info_libgtk_only(Handle display, Handle grab_window, gboolean* owner_events);
native static final private void gdk_add_option_entries_libgtk_only(GOptionGroup* group);
native static final private void gdk_pre_parse_libgtk_only();
native static final private void gdk_exit(int error_code);
native static final private void gdk_set_use_xshm(boolean use_xshm);
native static final private boolean gdk_get_use_xshm();
native static final private boolean gdk_pointer_grab_info_libgtk_only(Handle display, Handle grab_window, gboolean* owner_events);
native static final private boolean gdk_keyboard_grab_info_libgtk_only(Handle display, Handle grab_window, gboolean* owner_events);
native static final private String gdk_wcstombs(constGdkWChar* src);
native static final private int gdk_mbstowcs(Handle dest, String src, int dest_max);
native static final private int gdk_input_add_full(int source, int condition, int function, gpointer data, int destroy);
native static final private int gdk_input_add(int source, int condition, int function, gpointer data);
native static final private void gdk_input_remove(int tag);
GdkCairo(Drawable drawable) - Create a cairo Context from drawing to the Drawable.
|
void | rectangle(Rectangle rect) - Adds the given rectangle to the current path.
|
void | region(Region reg) - Adds the given region to the current path.
|
void | setSourceColor(Color color) - Sets the specified color as the source color of the cairo Context.
|
void | setSourcePixbuf(Pixbuf pixbuf, double pixbufX, double pixbufY) - Sets the given pixbuf as the source pattern for the cairo Context.
|
GdkCairo
public GdkCairo(Drawable drawable)
Create a cairo Context from drawing to the Drawable.
drawable
-
rectangle
public void rectangle(Rectangle rect)
Adds the given rectangle to the current path.
region
public void region(Region reg)
Adds the given region to the current path.
setSourceColor
public void setSourceColor(Color color)
Sets the specified color as the source color of the cairo Context.
color
-
setSourcePixbuf
public void setSourcePixbuf(Pixbuf pixbuf,
double pixbufX,
double pixbufY)
Sets the given pixbuf as the source pattern for the cairo Context.
The pattern has an extend mode of NONE and is aligned
so that the origin of pixbuf is pixbufX, pixbufY.
pixbuf
- pixbufX
- pixbufY
-