Skip to content

Instantly share code, notes, and snippets.

@alexnask
Created May 6, 2012 15:32
Show Gist options
  • Select an option

  • Save alexnask/2622957 to your computer and use it in GitHub Desktop.

Select an option

Save alexnask/2622957 to your computer and use it in GitHub Desktop.
A portion of the code generated by gooc-gen for Gtk-2.0
/**
NAMESPACE GLib
Generated by gooc-gen
Please report any bugs at http://github.com/shamanas/gooc-gen/issues
**/
ALLOCATOR_LIST : extern(G_ALLOCATOR_LIST) const Int32
ALLOCATOR_NODE : extern(G_ALLOCATOR_NODE) const Int32
ALLOCATOR_SLIST : extern(G_ALLOCATOR_SLIST) const Int32
ALLOC_AND_FREE : extern(G_ALLOC_AND_FREE) const Int32
ALLOC_ONLY : extern(G_ALLOC_ONLY) const Int32
ASCII_DTOSTR_BUF_SIZE : extern(G_ASCII_DTOSTR_BUF_SIZE) const Int32
ATOMIC_OP_MEMORY_BARRIER_NEEDED : extern(G_ATOMIC_OP_MEMORY_BARRIER_NEEDED) const Int32
Allocator: cover from GAllocator* {
free: extern(g_allocator_free) func
}
Array: cover from GArray {
}
AsciiType: extern(GAsciiType) enum {
alnum: extern(G_ASCII_ALNUM),
alpha: extern(G_ASCII_ALPHA),
cntrl: extern(G_ASCII_CNTRL),
digit: extern(G_ASCII_DIGIT),
graph: extern(G_ASCII_GRAPH),
lower: extern(G_ASCII_LOWER),
print: extern(G_ASCII_PRINT),
punct: extern(G_ASCII_PUNCT),
space: extern(G_ASCII_SPACE),
upper: extern(G_ASCII_UPPER),
xdigit: extern(G_ASCII_XDIGIT)
}
AsyncQueue: cover from GAsyncQueue* {
length: extern(g_async_queue_length) func -> Int32
lengthUnlocked: extern(g_async_queue_length_unlocked) func -> Int32
lock: extern(g_async_queue_lock) func
push: extern(g_async_queue_push) func (data : Pointer)
pushUnlocked: extern(g_async_queue_push_unlocked) func (data : Pointer)
refUnlocked: extern(g_async_queue_ref_unlocked) func
unlock: extern(g_async_queue_unlock) func
unref: extern(g_async_queue_unref) func
unrefAndUnlock: extern(g_async_queue_unref_and_unlock) func
}
BIG_ENDIAN : extern(G_BIG_ENDIAN) const Int32
BookmarkFile: cover from GBookmarkFile* {
addApplication: extern(g_bookmark_file_add_application) func (uri, name, exec : CString)
addGroup: extern(g_bookmark_file_add_group) func (uri, group : CString)
free: extern(g_bookmark_file_free) func
getAdded: extern(g_bookmark_file_get_added) func (uri : CString, error : Error*) -> Int32
getAppInfo: extern(g_bookmark_file_get_app_info) func (uri, name, exec : CString, count : UInt32*, stamp : Int32*, error : Error*) -> Bool
getDescription: extern(g_bookmark_file_get_description) func (uri : CString, error : Error*) -> CString
getIcon: extern(g_bookmark_file_get_icon) func (uri, href, mime_type : CString, error : Error*) -> Bool
getIsPrivate: extern(g_bookmark_file_get_is_private) func (uri : CString, error : Error*) -> Bool
getMimeType: extern(g_bookmark_file_get_mime_type) func (uri : CString, error : Error*) -> CString
getModified: extern(g_bookmark_file_get_modified) func (uri : CString, error : Error*) -> Int32
getSize: extern(g_bookmark_file_get_size) func -> Int32
getTitle: extern(g_bookmark_file_get_title) func (uri : CString, error : Error*) -> CString
getVisited: extern(g_bookmark_file_get_visited) func (uri : CString, error : Error*) -> Int32
hasApplication: extern(g_bookmark_file_has_application) func (uri, name : CString, error : Error*) -> Bool
hasGroup: extern(g_bookmark_file_has_group) func (uri, group : CString, error : Error*) -> Bool
hasItem: extern(g_bookmark_file_has_item) func (uri : CString) -> Bool
loadFromData: extern(g_bookmark_file_load_from_data) func (data : CString, length : UInt32, error : Error*) -> Bool
loadFromDataDirs: extern(g_bookmark_file_load_from_data_dirs) func (file, full_path : CString, error : Error*) -> Bool
loadFromFile: extern(g_bookmark_file_load_from_file) func (filename : CString, error : Error*) -> Bool
moveItem: extern(g_bookmark_file_move_item) func (old_uri, new_uri : CString, error : Error*) -> Bool
removeApplication: extern(g_bookmark_file_remove_application) func (uri, name : CString, error : Error*) -> Bool
removeGroup: extern(g_bookmark_file_remove_group) func (uri, group : CString, error : Error*) -> Bool
removeItem: extern(g_bookmark_file_remove_item) func (uri : CString, error : Error*) -> Bool
setAdded: extern(g_bookmark_file_set_added) func (uri : CString, added : Int32)
setAppInfo: extern(g_bookmark_file_set_app_info) func (uri, name, exec : CString, count, stamp : Int32, error : Error*) -> Bool
setDescription: extern(g_bookmark_file_set_description) func (uri, description : CString)
setGroups: extern(g_bookmark_file_set_groups) func (uri, groups : CString, length : UInt32)
setIcon: extern(g_bookmark_file_set_icon) func (uri, href, mime_type : CString)
setIsPrivate: extern(g_bookmark_file_set_is_private) func (uri : CString, is_private : Bool)
setMimeType: extern(g_bookmark_file_set_mime_type) func (uri, mime_type : CString)
setModified: extern(g_bookmark_file_set_modified) func (uri : CString, modified : Int32)
setTitle: extern(g_bookmark_file_set_title) func (uri, title : CString)
setVisited: extern(g_bookmark_file_set_visited) func (uri : CString, visited : Int32)
toData: extern(g_bookmark_file_to_data) func (length : UInt32*, error : Error*) -> CString
toFile: extern(g_bookmark_file_to_file) func (filename : CString, error : Error*) -> Bool
}
/**
NAMESPACE Gtk
Generated by gooc-gen
Please report any bugs at http://github.com/shamanas/gooc-gen/issues
**/
import cairo into cairo
import Pango into Pango
import Gio into Gio
import GdkPixbuf into GdkPixbuf
import Gdk into Gdk
import GObject into GObject
import GModule into GModule
import GLib into GLib
import Atk into Atk
ARG_READWRITE : extern(GTK_ARG_READWRITE) const Int32
AboutDialog: cover from GtkAboutDialog* extends Dialog implements (Atk ImplementorIface), Buildable {
new: static extern(gtk_about_dialog_new) func ~new-> Widget
getComments: extern(gtk_about_dialog_get_comments) func -> CString
getCopyright: extern(gtk_about_dialog_get_copyright) func -> CString
getLicense: extern(gtk_about_dialog_get_license) func -> CString
getLogoIconName: extern(gtk_about_dialog_get_logo_icon_name) func -> CString
getName: extern(gtk_about_dialog_get_name) func -> CString
getProgramName: extern(gtk_about_dialog_get_program_name) func -> CString
getTranslatorCredits: extern(gtk_about_dialog_get_translator_credits) func -> CString
getVersion: extern(gtk_about_dialog_get_version) func -> CString
getWebsite: extern(gtk_about_dialog_get_website) func -> CString
getWebsiteLabel: extern(gtk_about_dialog_get_website_label) func -> CString
getWrapLicense: extern(gtk_about_dialog_get_wrap_license) func -> Bool
setArtists: extern(gtk_about_dialog_set_artists) func (artists : CString)
setAuthors: extern(gtk_about_dialog_set_authors) func (authors : CString)
setComments: extern(gtk_about_dialog_set_comments) func (comments : CString)
setCopyright: extern(gtk_about_dialog_set_copyright) func (copyright : CString)
setDocumenters: extern(gtk_about_dialog_set_documenters) func (documenters : CString)
setLicense: extern(gtk_about_dialog_set_license) func (license : CString)
setLogo: extern(gtk_about_dialog_set_logo) func (logo : (GdkPixbuf Pixbuf))
setLogoIconName: extern(gtk_about_dialog_set_logo_icon_name) func (icon_name : CString)
setName: extern(gtk_about_dialog_set_name) func (name : CString)
setProgramName: extern(gtk_about_dialog_set_program_name) func (name : CString)
setTranslatorCredits: extern(gtk_about_dialog_set_translator_credits) func (translator_credits : CString)
setVersion: extern(gtk_about_dialog_set_version) func (version : CString)
setWebsite: extern(gtk_about_dialog_set_website) func (website : CString)
setWebsiteLabel: extern(gtk_about_dialog_set_website_label) func (website_label : CString)
setWrapLicense: extern(gtk_about_dialog_set_wrap_license) func (wrap_license : Bool)
}
AccelFlags: extern(GtkAccelFlags) enum {
visible: extern(GTK_ACCEL_VISIBLE),
locked: extern(GTK_ACCEL_LOCKED),
mask: extern(GTK_ACCEL_MASK)
}
AccelGroup: cover from GtkAccelGroup* extends (GObject Object) {
new: static extern(gtk_accel_group_new) func ~new-> This
activate: extern(gtk_accel_group_activate) func (accel_quark : UInt32, acceleratable : (GObject Object), accel_key : UInt32, accel_mods : (Gdk ModifierType)) -> Bool
connect: extern(gtk_accel_group_connect) func (accel_key : UInt32, accel_mods : (Gdk ModifierType), accel_flags : AccelFlags, closure : (GObject Closure))
connectByPath: extern(gtk_accel_group_connect_by_path) func (accel_path : CString, closure : (GObject Closure))
disconnect: extern(gtk_accel_group_disconnect) func (closure : (GObject Closure)) -> Bool
disconnectKey: extern(gtk_accel_group_disconnect_key) func (accel_key : UInt32, accel_mods : (Gdk ModifierType)) -> Bool
getIsLocked: extern(gtk_accel_group_get_is_locked) func -> Bool
getModifierMask: extern(gtk_accel_group_get_modifier_mask) func -> (Gdk ModifierType)
lock: extern(gtk_accel_group_lock) func
unlock: extern(gtk_accel_group_unlock) func
}
AccelGroupEntry: cover from GtkAccelGroupEntry {
}
AccelKey: cover from GtkAccelKey {
}
AccelLabel: cover from GtkAccelLabel* extends Label implements (Atk ImplementorIface), Buildable {
new: static extern(gtk_accel_label_new) func ~new(string : CString) -> Widget
getAccelWidget: extern(gtk_accel_label_get_accel_widget) func -> Widget
getAccelWidth: extern(gtk_accel_label_get_accel_width) func -> UInt32
refetch: extern(gtk_accel_label_refetch) func -> Bool
setAccelClosure: extern(gtk_accel_label_set_accel_closure) func (accel_closure : (GObject Closure))
setAccelWidget: extern(gtk_accel_label_set_accel_widget) func (accel_widget : Widget)
}
AccelMap: cover from GtkAccelMap* extends (GObject Object) {
addEntry: extern(gtk_accel_map_add_entry) func (accel_path : CString, accel_key : UInt32, accel_mods : (Gdk ModifierType))
addFilter: extern(gtk_accel_map_add_filter) func (filter_pattern : CString)
changeEntry: extern(gtk_accel_map_change_entry) func (accel_path : CString, accel_key : UInt32, accel_mods : (Gdk ModifierType), replace : Bool) -> Bool
load: extern(gtk_accel_map_load) func (file_name : CString)
loadFd: extern(gtk_accel_map_load_fd) func (fd : Int32)
loadScanner: extern(gtk_accel_map_load_scanner) func (scanner : (GLib Scanner))
lockPath: extern(gtk_accel_map_lock_path) func (accel_path : CString)
lookupEntry: extern(gtk_accel_map_lookup_entry) func (accel_path : CString, key : AccelKey) -> Bool
save: extern(gtk_accel_map_save) func (file_name : CString)
saveFd: extern(gtk_accel_map_save_fd) func (fd : Int32)
unlockPath: extern(gtk_accel_map_unlock_path) func (accel_path : CString)
}
Accessible: cover from GtkAccessible* extends (Atk Object) {
connectWidgetDestroyed: extern(gtk_accessible_connect_widget_destroyed) func
getWidget: extern(gtk_accessible_get_widget) func -> Widget
setWidget: extern(gtk_accessible_set_widget) func (widget : Widget)
}
Action: cover from GtkAction* extends (GObject Object) implements Buildable {
new: static extern(gtk_action_new) func ~new(name, label, tooltip, stock_id : CString) -> This
activate: extern(gtk_action_activate) func
blockActivate: extern(gtk_action_block_activate) func
blockActivateFrom: extern(gtk_action_block_activate_from) func (proxy : Widget)
connectAccelerator: extern(gtk_action_connect_accelerator) func
connectProxy: extern(gtk_action_connect_proxy) func (proxy : Widget)
createIcon: extern(gtk_action_create_icon) func (icon_size : Int32) -> Widget
createMenu: extern(gtk_action_create_menu) func -> Widget
createMenuItem: extern(gtk_action_create_menu_item) func -> Widget
createToolItem: extern(gtk_action_create_tool_item) func -> Widget
disconnectAccelerator: extern(gtk_action_disconnect_accelerator) func
disconnectProxy: extern(gtk_action_disconnect_proxy) func (proxy : Widget)
getAccelClosure: extern(gtk_action_get_accel_closure) func -> (GObject Closure)
getAccelPath: extern(gtk_action_get_accel_path) func -> CString
getAlwaysShowImage: extern(gtk_action_get_always_show_image) func -> Bool
getGicon: extern(gtk_action_get_gicon) func -> (Gio Icon)
getIconName: extern(gtk_action_get_icon_name) func -> CString
getIsImportant: extern(gtk_action_get_is_important) func -> Bool
getLabel: extern(gtk_action_get_label) func -> CString
getName: extern(gtk_action_get_name) func -> CString
getProxies: extern(gtk_action_get_proxies) func -> SList
getSensitive: extern(gtk_action_get_sensitive) func -> Bool
getShortLabel: extern(gtk_action_get_short_label) func -> CString
getStockId: extern(gtk_action_get_stock_id) func -> CString
getTooltip: extern(gtk_action_get_tooltip) func -> CString
getVisible: extern(gtk_action_get_visible) func -> Bool
getVisibleHorizontal: extern(gtk_action_get_visible_horizontal) func -> Bool
getVisibleVertical: extern(gtk_action_get_visible_vertical) func -> Bool
isSensitive: extern(gtk_action_is_sensitive) func -> Bool
isVisible: extern(gtk_action_is_visible) func -> Bool
setAccelGroup: extern(gtk_action_set_accel_group) func (accel_group : AccelGroup)
setAccelPath: extern(gtk_action_set_accel_path) func (accel_path : CString)
setAlwaysShowImage: extern(gtk_action_set_always_show_image) func (always_show : Bool)
setGicon: extern(gtk_action_set_gicon) func (icon : (Gio Icon))
setIconName: extern(gtk_action_set_icon_name) func (icon_name : CString)
setIsImportant: extern(gtk_action_set_is_important) func (is_important : Bool)
setLabel: extern(gtk_action_set_label) func (label : CString)
setSensitive: extern(gtk_action_set_sensitive) func (sensitive : Bool)
setShortLabel: extern(gtk_action_set_short_label) func (short_label : CString)
setStockId: extern(gtk_action_set_stock_id) func (stock_id : CString)
setTooltip: extern(gtk_action_set_tooltip) func (tooltip : CString)
setVisible: extern(gtk_action_set_visible) func (visible : Bool)
setVisibleHorizontal: extern(gtk_action_set_visible_horizontal) func (visible_horizontal : Bool)
setVisibleVertical: extern(gtk_action_set_visible_vertical) func (visible_vertical : Bool)
unblockActivate: extern(gtk_action_unblock_activate) func
unblockActivateFrom: extern(gtk_action_unblock_activate_from) func (proxy : Widget)
}
ActionEntry: cover from GtkActionEntry {
}
ActionGroup: cover from GtkActionGroup* extends (GObject Object) implements Buildable {
new: static extern(gtk_action_group_new) func ~new(name : CString) -> This
addAction: extern(gtk_action_group_add_action) func (action : Action)
addActionWithAccel: extern(gtk_action_group_add_action_with_accel) func (action : Action, accelerator : CString)
addActions: extern(gtk_action_group_add_actions) func (entries : ActionEntry, n_entries : UInt32, user_data : Pointer)
addActionsFull: extern(gtk_action_group_add_actions_full) func (entries : ActionEntry, n_entries : UInt32, user_data : Pointer, destroy : (GLib DestroyNotify))
addRadioActionsFull: extern(gtk_action_group_add_radio_actions_full) func (entries : RadioActionEntry, n_entries : UInt32, value : Int32, on_change : (GObject Callback), user_data : Pointer, destroy : (GLib DestroyNotify))
addToggleActions: extern(gtk_action_group_add_toggle_actions) func (entries : ToggleActionEntry, n_entries : UInt32, user_data : Pointer)
addToggleActionsFull: extern(gtk_action_group_add_toggle_actions_full) func (entries : ToggleActionEntry, n_entries : UInt32, user_data : Pointer, destroy : (GLib DestroyNotify))
getAction: extern(gtk_action_group_get_action) func (action_name : CString) -> Action
getName: extern(gtk_action_group_get_name) func -> CString
getSensitive: extern(gtk_action_group_get_sensitive) func -> Bool
getVisible: extern(gtk_action_group_get_visible) func -> Bool
listActions: extern(gtk_action_group_list_actions) func -> List
removeAction: extern(gtk_action_group_remove_action) func (action : Action)
setSensitive: extern(gtk_action_group_set_sensitive) func (sensitive : Bool)
setTranslateFunc: extern(gtk_action_group_set_translate_func) func (func : TranslateFunc, data : Pointer, notify : (GLib DestroyNotify))
setTranslationDomain: extern(gtk_action_group_set_translation_domain) func (domain : CString)
setVisible: extern(gtk_action_group_set_visible) func (visible : Bool)
translateString: extern(gtk_action_group_translate_string) func (string : CString) -> CString
}
ActionGroupPrivate: cover from GtkActionGroupPrivate* {
}
ActionPrivate: cover from GtkActionPrivate* {
}
Adjustment: cover from GtkAdjustment* extends Object {
new: static extern(gtk_adjustment_new) func ~new(value, lower, upper, step_increment, page_increment, page_size : Double) -> Object
changed: extern(gtk_adjustment_changed) func
clampPage: extern(gtk_adjustment_clamp_page) func (lower, upper : Double)
configure: extern(gtk_adjustment_configure) func (value, lower, upper, step_increment, page_increment, page_size : Double)
getLower: extern(gtk_adjustment_get_lower) func -> Double
getPageIncrement: extern(gtk_adjustment_get_page_increment) func -> Double
getPageSize: extern(gtk_adjustment_get_page_size) func -> Double
getStepIncrement: extern(gtk_adjustment_get_step_increment) func -> Double
getUpper: extern(gtk_adjustment_get_upper) func -> Double
getValue: extern(gtk_adjustment_get_value) func -> Double
setLower: extern(gtk_adjustment_set_lower) func (lower : Double)
setPageIncrement: extern(gtk_adjustment_set_page_increment) func (page_increment : Double)
setPageSize: extern(gtk_adjustment_set_page_size) func (page_size : Double)
setStepIncrement: extern(gtk_adjustment_set_step_increment) func (step_increment : Double)
setUpper: extern(gtk_adjustment_set_upper) func (upper : Double)
setValue: extern(gtk_adjustment_set_value) func (value : Double)
valueChanged: extern(gtk_adjustment_value_changed) func
}
Alignment: cover from GtkAlignment* extends Bin implements (Atk ImplementorIface), Buildable {
new: static extern(gtk_alignment_new) func ~new(xalign, yalign, xscale, yscale : Float) -> Widget
getPadding: extern(gtk_alignment_get_padding) func (padding_top, padding_bottom, padding_left, padding_right : UInt32*)
set: extern(gtk_alignment_set) func (xalign, yalign, xscale, yscale : Float)
setPadding: extern(gtk_alignment_set_padding) func (padding_top, padding_bottom, padding_left, padding_right : UInt32)
}
@fredreichbier
Copy link
Copy Markdown

Niiiice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment