public int size;
public weak Gdk.Visual visual;
public void* windowing_data;
+ [CCode (has_construct_function = false)]
+ public Colormap (Gdk.Visual visual, bool allocate);
public bool alloc_color (Gdk.Color color, bool writeable, bool best_match);
public int alloc_colors (Gdk.Color[] colors, bool writeable, bool best_match, bool success);
public void change (int ncolors);
public unowned Gdk.Screen get_screen ();
public static unowned Gdk.Colormap get_system ();
public unowned Gdk.Visual get_visual ();
- [CCode (has_construct_function = false)]
- public Colormap (Gdk.Visual visual, bool allocate);
public void query_color (ulong pixel, out Gdk.Color _result);
}
[Compact]
public uint ref_count;
public Gdk.CursorType type;
[CCode (has_construct_function = false)]
+ public Cursor (Gdk.CursorType cursor_type);
+ [CCode (has_construct_function = false)]
public Cursor.for_display (Gdk.Display display, Gdk.CursorType cursor_type);
[CCode (has_construct_function = false)]
public Cursor.from_name (Gdk.Display display, string name);
public Cursor.from_pixmap (Gdk.Pixmap source, Gdk.Pixmap mask, Gdk.Color fg, Gdk.Color bg, int x, int y);
public unowned Gdk.Display get_display ();
public unowned Gdk.Pixbuf get_image ();
- [CCode (has_construct_function = false)]
- public Cursor (Gdk.CursorType cursor_type);
}
[CCode (cheader_filename = "gdk/gdk.h")]
public class Device : GLib.Object {
public Gdk.EventType type;
public Gdk.EventVisibility visibility;
public Gdk.EventWindowState window_state;
+ [CCode (has_construct_function = false)]
+ public Event (Gdk.EventType type);
public Gdk.Event copy ();
public static unowned Gdk.Event @get ();
public bool get_axis (Gdk.AxisUse axis_use, out double value);
public bool get_state (out Gdk.ModifierType state);
public uint32 get_time ();
public static void handler_set (owned Gdk.EventFunc func);
- [CCode (has_construct_function = false)]
- public Event (Gdk.EventType type);
public static unowned Gdk.Event peek ();
public void put ();
public static void request_motions (Gdk.EventMotion event);
public weak Gdk.Colormap colormap;
public int ts_x_origin;
public int ts_y_origin;
+ [CCode (has_construct_function = false)]
+ public GC (Gdk.Drawable drawable);
public void copy (Gdk.GC src_gc);
public unowned Gdk.Colormap get_colormap ();
public unowned Gdk.Screen get_screen ();
public virtual void get_values (Gdk.GCValues values);
- [CCode (has_construct_function = false)]
- public GC (Gdk.Drawable drawable);
public void offset (int x_offset, int y_offset);
public void set_background (Gdk.Color color);
public void set_clip_mask (Gdk.Bitmap mask);
public weak Gdk.Visual visual;
public int width;
public void* windowing_data;
- public unowned Gdk.Colormap get_colormap ();
- public uint32 get_pixel (int x, int y);
[CCode (has_construct_function = false)]
public Image (Gdk.ImageType type, Gdk.Visual visual, int width, int height);
+ public unowned Gdk.Colormap get_colormap ();
+ public uint32 get_pixel (int x, int y);
public void put_pixel (int x, int y, uint32 pixel);
public void set_colormap (Gdk.Colormap colormap);
}
}
[CCode (cheader_filename = "gdk/gdk.h")]
public class PangoRenderer : Pango.Renderer {
- public static unowned Pango.Renderer get_default (Gdk.Screen screen);
[CCode (type = "PangoRenderer*", has_construct_function = false)]
public PangoRenderer (Gdk.Screen screen);
+ public static unowned Pango.Renderer get_default (Gdk.Screen screen);
public void set_drawable (Gdk.Drawable drawable);
public void set_gc (Gdk.GC gc);
public void set_override_color (Pango.RenderPart part, Gdk.Color color);
}
[CCode (cheader_filename = "gdk/gdk.h")]
public class Pixmap : Gdk.Drawable {
+ [CCode (has_construct_function = false)]
+ public Pixmap (Gdk.Drawable? drawable, int width, int height, int depth);
public static unowned Gdk.Pixmap colormap_create_from_xpm (Gdk.Drawable drawable, Gdk.Colormap colormap, out unowned Gdk.Bitmap mask, Gdk.Color transparent_color, string filename);
public static unowned Gdk.Pixmap colormap_create_from_xpm_d (Gdk.Drawable drawable, Gdk.Colormap colormap, out unowned Gdk.Bitmap mask, Gdk.Color transparent_color, string data);
public static unowned Gdk.Pixmap create_from_data (Gdk.Drawable drawable, string data, int width, int height, int depth, Gdk.Color fg, Gdk.Color bg);
public static unowned Gdk.Pixmap foreign_new_for_screen (Gdk.Screen screen, Gdk.NativeWindow anid, int width, int height, int depth);
public static unowned Gdk.Pixmap lookup (Gdk.NativeWindow anid);
public static unowned Gdk.Pixmap lookup_for_display (Gdk.Display display, Gdk.NativeWindow anid);
- [CCode (has_construct_function = false)]
- public Pixmap (Gdk.Drawable? drawable, int width, int height, int depth);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
[Compact]
[CCode (copy_function = "gdk_region_copy", free_function = "gdk_region_destroy", cheader_filename = "gdk/gdk.h")]
public class Region {
+ [CCode (has_construct_function = false)]
+ public Region ();
public Gdk.Region copy ();
public bool empty ();
public bool equal (Gdk.Region region2);
public void get_clipbox (out Gdk.Rectangle rectangle);
public void get_rectangles (Gdk.Rectangle[] rectangles);
public void intersect (Gdk.Region source2);
- [CCode (has_construct_function = false)]
- public Region ();
public void offset (int dx, int dy);
public bool point_in (int x, int y);
public static Gdk.Region polygon (Gdk.Point[] points, Gdk.FillRule fill_rule);
}
[CCode (cheader_filename = "gdk/gdk.h")]
public class Window : Gdk.Drawable {
+ [CCode (has_construct_function = false)]
+ public Window (Gdk.Window? parent, Gdk.WindowAttr attributes, int attributes_mask);
public void add_filter (Gdk.FilterFunc function);
public static unowned Gdk.Window at_pointer (out int win_x, out int win_y);
public void beep ();
public void move (int x, int y);
public void move_region (Gdk.Region region, int dx, int dy);
public void move_resize (int x, int y, int width, int height);
- [CCode (has_construct_function = false)]
- public Window (Gdk.Window parent, Gdk.WindowAttr attributes, int attributes_mask);
public unowned GLib.List peek_children ();
public static void process_all_updates ();
public void process_updates (bool update_children);
public weak uint32[] colors;
public int n_colors;
public weak GLib.SList info_list;
- public void free ();
[CCode (cname = "gdk_rgb_cmap_new", has_construct_function = false)]
public RgbCmap (uint32[] colors);
+ public void free ();
}
[CCode (type_id = "GDK_TYPE_SEGMENT", cheader_filename = "gdk/gdk.h")]
public struct Segment {