further cleanup for new GTK wrapper
This commit is contained in:
parent
40ea1d0330
commit
230567588b
13 changed files with 3174 additions and 3107 deletions
|
|
@ -473,48 +473,48 @@ proc IMPLEMENTOR*(obj: pointer): PImplementor
|
||||||
proc IMPLEMENTOR_GET_IFACE*(obj: pointer): PImplementorIface
|
proc IMPLEMENTOR_GET_IFACE*(obj: pointer): PImplementorIface
|
||||||
proc implementor_get_type*(): GType{.cdecl, dynlib: lib,
|
proc implementor_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_implementor_get_type".}
|
importc: "atk_implementor_get_type".}
|
||||||
proc implementor_ref_accessible*(implementor: PImplementor): PObject{.cdecl,
|
proc ref_accessible*(implementor: PImplementor): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_implementor_ref_accessible".}
|
dynlib: lib, importc: "atk_implementor_ref_accessible".}
|
||||||
proc object_get_name*(accessible: PObject): cstring{.cdecl, dynlib: lib,
|
proc get_name*(accessible: PObject): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_name".}
|
importc: "atk_object_get_name".}
|
||||||
proc object_get_description*(accessible: PObject): cstring{.cdecl, dynlib: lib,
|
proc get_description*(accessible: PObject): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_description".}
|
importc: "atk_object_get_description".}
|
||||||
proc object_get_parent*(accessible: PObject): PObject{.cdecl, dynlib: lib,
|
proc get_parent*(accessible: PObject): PObject{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_parent".}
|
importc: "atk_object_get_parent".}
|
||||||
proc object_get_n_accessible_children*(accessible: PObject): gint{.cdecl,
|
proc get_n_accessible_children*(accessible: PObject): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_get_n_accessible_children".}
|
dynlib: lib, importc: "atk_object_get_n_accessible_children".}
|
||||||
proc object_ref_accessible_child*(accessible: PObject, i: gint): PObject{.cdecl,
|
proc ref_accessible_child*(accessible: PObject, i: gint): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_ref_accessible_child".}
|
dynlib: lib, importc: "atk_object_ref_accessible_child".}
|
||||||
proc object_ref_relation_set*(accessible: PObject): PRelationSet{.cdecl,
|
proc ref_relation_set*(accessible: PObject): PRelationSet{.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_ref_relation_set".}
|
dynlib: lib, importc: "atk_object_ref_relation_set".}
|
||||||
proc object_get_role*(accessible: PObject): TRole{.cdecl, dynlib: lib,
|
proc get_role*(accessible: PObject): TRole{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_role".}
|
importc: "atk_object_get_role".}
|
||||||
proc object_get_layer*(accessible: PObject): TLayer{.cdecl, dynlib: lib,
|
proc get_layer*(accessible: PObject): TLayer{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_layer".}
|
importc: "atk_object_get_layer".}
|
||||||
proc object_get_mdi_zorder*(accessible: PObject): gint{.cdecl, dynlib: lib,
|
proc get_mdi_zorder*(accessible: PObject): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_mdi_zorder".}
|
importc: "atk_object_get_mdi_zorder".}
|
||||||
proc object_ref_state_set*(accessible: PObject): PStateSet{.cdecl, dynlib: lib,
|
proc ref_state_set*(accessible: PObject): PStateSet{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_ref_state_set".}
|
importc: "atk_object_ref_state_set".}
|
||||||
proc object_get_index_in_parent*(accessible: PObject): gint{.cdecl, dynlib: lib,
|
proc get_index_in_parent*(accessible: PObject): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_get_index_in_parent".}
|
importc: "atk_object_get_index_in_parent".}
|
||||||
proc object_set_name*(accessible: PObject, name: cstring){.cdecl, dynlib: lib,
|
proc set_name*(accessible: PObject, name: cstring){.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_set_name".}
|
importc: "atk_object_set_name".}
|
||||||
proc object_set_description*(accessible: PObject, description: cstring){.cdecl,
|
proc set_description*(accessible: PObject, description: cstring){.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_set_description".}
|
dynlib: lib, importc: "atk_object_set_description".}
|
||||||
proc object_set_parent*(accessible: PObject, parent: PObject){.cdecl,
|
proc set_parent*(accessible: PObject, parent: PObject){.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_set_parent".}
|
dynlib: lib, importc: "atk_object_set_parent".}
|
||||||
proc object_set_role*(accessible: PObject, role: TRole){.cdecl, dynlib: lib,
|
proc set_role*(accessible: PObject, role: TRole){.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_set_role".}
|
importc: "atk_object_set_role".}
|
||||||
proc object_connect_property_change_handler*(accessible: PObject,
|
proc connect_property_change_handler*(accessible: PObject,
|
||||||
handler: TPropertyChangeHandler): guint{.cdecl, dynlib: lib,
|
handler: TPropertyChangeHandler): guint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_connect_property_change_handler".}
|
importc: "atk_object_connect_property_change_handler".}
|
||||||
proc object_remove_property_change_handler*(accessible: PObject,
|
proc remove_property_change_handler*(accessible: PObject,
|
||||||
handler_id: guint){.cdecl, dynlib: lib,
|
handler_id: guint){.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_remove_property_change_handler".}
|
importc: "atk_object_remove_property_change_handler".}
|
||||||
proc object_notify_state_change*(accessible: PObject, state: TState,
|
proc notify_state_change*(accessible: PObject, state: TState,
|
||||||
value: gboolean){.cdecl, dynlib: lib,
|
value: gboolean){.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_notify_state_change".}
|
importc: "atk_object_notify_state_change".}
|
||||||
proc object_initialize*(accessible: PObject, data: gpointer){.cdecl,
|
proc initialize*(accessible: PObject, data: gpointer){.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_initialize".}
|
dynlib: lib, importc: "atk_object_initialize".}
|
||||||
proc role_get_name*(role: TRole): cstring{.cdecl, dynlib: lib,
|
proc role_get_name*(role: TRole): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_role_get_name".}
|
importc: "atk_role_get_name".}
|
||||||
|
|
@ -526,17 +526,17 @@ proc ACTION*(obj: pointer): PAction
|
||||||
proc ACTION_GET_IFACE*(obj: pointer): PActionIface
|
proc ACTION_GET_IFACE*(obj: pointer): PActionIface
|
||||||
proc action_get_type*(): GType{.cdecl, dynlib: lib,
|
proc action_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_action_get_type".}
|
importc: "atk_action_get_type".}
|
||||||
proc action_do_action*(action: PAction, i: gint): gboolean{.cdecl, dynlib: lib,
|
proc do_action*(action: PAction, i: gint): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_action_do_action".}
|
importc: "atk_action_do_action".}
|
||||||
proc action_get_n_actions*(action: PAction): gint{.cdecl, dynlib: lib,
|
proc get_n_actions*(action: PAction): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_action_get_n_actions".}
|
importc: "atk_action_get_n_actions".}
|
||||||
proc action_get_description*(action: PAction, i: gint): cstring{.cdecl,
|
proc get_description*(action: PAction, i: gint): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "atk_action_get_description".}
|
dynlib: lib, importc: "atk_action_get_description".}
|
||||||
proc action_get_name*(action: PAction, i: gint): cstring{.cdecl, dynlib: lib,
|
proc get_name*(action: PAction, i: gint): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_action_get_name".}
|
importc: "atk_action_get_name".}
|
||||||
proc action_get_keybinding*(action: PAction, i: gint): cstring{.cdecl,
|
proc get_keybinding*(action: PAction, i: gint): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "atk_action_get_keybinding".}
|
dynlib: lib, importc: "atk_action_get_keybinding".}
|
||||||
proc action_set_description*(action: PAction, i: gint, desc: cstring): gboolean{.
|
proc set_description*(action: PAction, i: gint, desc: cstring): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_action_set_description".}
|
cdecl, dynlib: lib, importc: "atk_action_set_description".}
|
||||||
proc TYPE_COMPONENT*(): GType
|
proc TYPE_COMPONENT*(): GType
|
||||||
proc IS_COMPONENT*(obj: pointer): bool
|
proc IS_COMPONENT*(obj: pointer): bool
|
||||||
|
|
@ -544,37 +544,37 @@ proc COMPONENT*(obj: pointer): PComponent
|
||||||
proc COMPONENT_GET_IFACE*(obj: pointer): PComponentIface
|
proc COMPONENT_GET_IFACE*(obj: pointer): PComponentIface
|
||||||
proc component_get_type*(): GType{.cdecl, dynlib: lib,
|
proc component_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_get_type".}
|
importc: "atk_component_get_type".}
|
||||||
proc component_add_focus_handler*(component: PComponent, handler: TFocusHandler): guint{.
|
proc add_focus_handler*(component: PComponent, handler: TFocusHandler): guint{.
|
||||||
cdecl, dynlib: lib, importc: "atk_component_add_focus_handler".}
|
cdecl, dynlib: lib, importc: "atk_component_add_focus_handler".}
|
||||||
proc component_contains*(component: PComponent, x, y: gint,
|
proc contains*(component: PComponent, x, y: gint,
|
||||||
coord_type: TCoordType): gboolean{.cdecl, dynlib: lib,
|
coord_type: TCoordType): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_contains".}
|
importc: "atk_component_contains".}
|
||||||
proc component_ref_accessible_at_point*(component: PComponent, x, y: gint,
|
proc ref_accessible_at_point*(component: PComponent, x, y: gint,
|
||||||
coord_type: TCoordType): PObject{.cdecl,
|
coord_type: TCoordType): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_component_ref_accessible_at_point".}
|
dynlib: lib, importc: "atk_component_ref_accessible_at_point".}
|
||||||
proc component_get_extents*(component: PComponent, x, y, width, height: Pgint,
|
proc get_extents*(component: PComponent, x, y, width, height: Pgint,
|
||||||
coord_type: TCoordType){.cdecl, dynlib: lib,
|
coord_type: TCoordType){.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_get_extents".}
|
importc: "atk_component_get_extents".}
|
||||||
proc component_get_position*(component: PComponent, x: Pgint, y: Pgint,
|
proc get_position*(component: PComponent, x: Pgint, y: Pgint,
|
||||||
coord_type: TCoordType){.cdecl, dynlib: lib,
|
coord_type: TCoordType){.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_get_position".}
|
importc: "atk_component_get_position".}
|
||||||
proc component_get_size*(component: PComponent, width: Pgint, height: Pgint){.
|
proc get_size*(component: PComponent, width: Pgint, height: Pgint){.
|
||||||
cdecl, dynlib: lib, importc: "atk_component_get_size".}
|
cdecl, dynlib: lib, importc: "atk_component_get_size".}
|
||||||
proc component_get_layer*(component: PComponent): TLayer{.cdecl, dynlib: lib,
|
proc get_layer*(component: PComponent): TLayer{.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_get_layer".}
|
importc: "atk_component_get_layer".}
|
||||||
proc component_get_mdi_zorder*(component: PComponent): gint{.cdecl, dynlib: lib,
|
proc get_mdi_zorder*(component: PComponent): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_get_mdi_zorder".}
|
importc: "atk_component_get_mdi_zorder".}
|
||||||
proc component_grab_focus*(component: PComponent): gboolean{.cdecl, dynlib: lib,
|
proc grab_focus*(component: PComponent): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_component_grab_focus".}
|
importc: "atk_component_grab_focus".}
|
||||||
proc component_remove_focus_handler*(component: PComponent, handler_id: guint){.
|
proc remove_focus_handler*(component: PComponent, handler_id: guint){.
|
||||||
cdecl, dynlib: lib, importc: "atk_component_remove_focus_handler".}
|
cdecl, dynlib: lib, importc: "atk_component_remove_focus_handler".}
|
||||||
proc component_set_extents*(component: PComponent, x: gint, y: gint,
|
proc set_extents*(component: PComponent, x: gint, y: gint,
|
||||||
width: gint, height: gint, coord_type: TCoordType): gboolean{.
|
width: gint, height: gint, coord_type: TCoordType): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_component_set_extents".}
|
cdecl, dynlib: lib, importc: "atk_component_set_extents".}
|
||||||
proc component_set_position*(component: PComponent, x: gint, y: gint,
|
proc set_position*(component: PComponent, x: gint, y: gint,
|
||||||
coord_type: TCoordType): gboolean{.cdecl,
|
coord_type: TCoordType): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_component_set_position".}
|
dynlib: lib, importc: "atk_component_set_position".}
|
||||||
proc component_set_size*(component: PComponent, width: gint, height: gint): gboolean{.
|
proc set_size*(component: PComponent, width: gint, height: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_component_set_size".}
|
cdecl, dynlib: lib, importc: "atk_component_set_size".}
|
||||||
proc TYPE_DOCUMENT*(): GType
|
proc TYPE_DOCUMENT*(): GType
|
||||||
proc IS_DOCUMENT*(obj: pointer): bool
|
proc IS_DOCUMENT*(obj: pointer): bool
|
||||||
|
|
@ -582,9 +582,9 @@ proc DOCUMENT*(obj: pointer): PDocument
|
||||||
proc DOCUMENT_GET_IFACE*(obj: pointer): PDocumentIface
|
proc DOCUMENT_GET_IFACE*(obj: pointer): PDocumentIface
|
||||||
proc document_get_type*(): GType{.cdecl, dynlib: lib,
|
proc document_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_document_get_type".}
|
importc: "atk_document_get_type".}
|
||||||
proc document_get_document_type*(document: PDocument): cstring{.cdecl,
|
proc get_document_type*(document: PDocument): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "atk_document_get_document_type".}
|
dynlib: lib, importc: "atk_document_get_document_type".}
|
||||||
proc document_get_document*(document: PDocument): gpointer{.cdecl, dynlib: lib,
|
proc get_document*(document: PDocument): gpointer{.cdecl, dynlib: lib,
|
||||||
importc: "atk_document_get_document".}
|
importc: "atk_document_get_document".}
|
||||||
proc TYPE_EDITABLE_TEXT*(): GType
|
proc TYPE_EDITABLE_TEXT*(): GType
|
||||||
proc IS_EDITABLE_TEXT*(obj: pointer): bool
|
proc IS_EDITABLE_TEXT*(obj: pointer): bool
|
||||||
|
|
@ -592,24 +592,24 @@ proc EDITABLE_TEXT*(obj: pointer): PEditableText
|
||||||
proc EDITABLE_TEXT_GET_IFACE*(obj: pointer): PEditableTextIface
|
proc EDITABLE_TEXT_GET_IFACE*(obj: pointer): PEditableTextIface
|
||||||
proc editable_text_get_type*(): GType{.cdecl, dynlib: lib,
|
proc editable_text_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_editable_text_get_type".}
|
importc: "atk_editable_text_get_type".}
|
||||||
proc editable_text_set_run_attributes*(text: PEditableText,
|
proc set_run_attributes*(text: PEditableText,
|
||||||
attrib_set: PAttributeSet,
|
attrib_set: PAttributeSet,
|
||||||
start_offset: gint, end_offset: gint): gboolean{.
|
start_offset: gint, end_offset: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_editable_text_set_run_attributes".}
|
cdecl, dynlib: lib, importc: "atk_editable_text_set_run_attributes".}
|
||||||
proc editable_text_set_text_contents*(text: PEditableText, string: cstring){.
|
proc set_text_contents*(text: PEditableText, string: cstring){.
|
||||||
cdecl, dynlib: lib, importc: "atk_editable_text_set_text_contents".}
|
cdecl, dynlib: lib, importc: "atk_editable_text_set_text_contents".}
|
||||||
proc editable_text_insert_text*(text: PEditableText, `string`: cstring,
|
proc insert_text*(text: PEditableText, `string`: cstring,
|
||||||
length: gint, position: Pgint){.cdecl,
|
length: gint, position: Pgint){.cdecl,
|
||||||
dynlib: lib, importc: "atk_editable_text_insert_text".}
|
dynlib: lib, importc: "atk_editable_text_insert_text".}
|
||||||
proc editable_text_copy_text*(text: PEditableText, start_pos: gint,
|
proc copy_text*(text: PEditableText, start_pos: gint,
|
||||||
end_pos: gint){.cdecl, dynlib: lib,
|
end_pos: gint){.cdecl, dynlib: lib,
|
||||||
importc: "atk_editable_text_copy_text".}
|
importc: "atk_editable_text_copy_text".}
|
||||||
proc editable_text_cut_text*(text: PEditableText, start_pos: gint, end_pos: gint){.
|
proc cut_text*(text: PEditableText, start_pos: gint, end_pos: gint){.
|
||||||
cdecl, dynlib: lib, importc: "atk_editable_text_cut_text".}
|
cdecl, dynlib: lib, importc: "atk_editable_text_cut_text".}
|
||||||
proc editable_text_delete_text*(text: PEditableText, start_pos: gint,
|
proc delete_text*(text: PEditableText, start_pos: gint,
|
||||||
end_pos: gint){.cdecl, dynlib: lib,
|
end_pos: gint){.cdecl, dynlib: lib,
|
||||||
importc: "atk_editable_text_delete_text".}
|
importc: "atk_editable_text_delete_text".}
|
||||||
proc editable_text_paste_text*(text: PEditableText, position: gint){.cdecl,
|
proc paste_text*(text: PEditableText, position: gint){.cdecl,
|
||||||
dynlib: lib, importc: "atk_editable_text_paste_text".}
|
dynlib: lib, importc: "atk_editable_text_paste_text".}
|
||||||
proc TYPE_GOBJECT_ACCESSIBLE*(): GType
|
proc TYPE_GOBJECT_ACCESSIBLE*(): GType
|
||||||
proc GOBJECT_ACCESSIBLE*(obj: pointer): PGObjectAccessible
|
proc GOBJECT_ACCESSIBLE*(obj: pointer): PGObjectAccessible
|
||||||
|
|
@ -619,9 +619,9 @@ proc IS_GOBJECT_ACCESSIBLE_CLASS*(klass: pointer): bool
|
||||||
proc GOBJECT_ACCESSIBLE_GET_CLASS*(obj: pointer): PGObjectAccessibleClass
|
proc GOBJECT_ACCESSIBLE_GET_CLASS*(obj: pointer): PGObjectAccessibleClass
|
||||||
proc gobject_accessible_get_type*(): GType{.cdecl, dynlib: lib,
|
proc gobject_accessible_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_gobject_accessible_get_type".}
|
importc: "atk_gobject_accessible_get_type".}
|
||||||
proc gobject_accessible_for_object*(obj: PGObject): PObject{.cdecl, dynlib: lib,
|
proc accessible_for_object*(obj: PGObject): PObject{.cdecl, dynlib: lib,
|
||||||
importc: "atk_gobject_accessible_for_object".}
|
importc: "atk_gobject_accessible_for_object".}
|
||||||
proc gobject_accessible_get_object*(obj: PGObjectAccessible): PGObject{.cdecl,
|
proc get_object*(obj: PGObjectAccessible): PGObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_gobject_accessible_get_object".}
|
dynlib: lib, importc: "atk_gobject_accessible_get_object".}
|
||||||
proc TYPE_HYPERLINK*(): GType
|
proc TYPE_HYPERLINK*(): GType
|
||||||
proc HYPERLINK*(obj: pointer): PHyperlink
|
proc HYPERLINK*(obj: pointer): PHyperlink
|
||||||
|
|
@ -631,17 +631,17 @@ proc IS_HYPERLINK_CLASS*(klass: pointer): bool
|
||||||
proc HYPERLINK_GET_CLASS*(obj: pointer): PHyperlinkClass
|
proc HYPERLINK_GET_CLASS*(obj: pointer): PHyperlinkClass
|
||||||
proc hyperlink_get_type*(): GType{.cdecl, dynlib: lib,
|
proc hyperlink_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hyperlink_get_type".}
|
importc: "atk_hyperlink_get_type".}
|
||||||
proc hyperlink_get_uri*(link: PHyperlink, i: gint): cstring{.cdecl, dynlib: lib,
|
proc get_uri*(link: PHyperlink, i: gint): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hyperlink_get_uri".}
|
importc: "atk_hyperlink_get_uri".}
|
||||||
proc hyperlink_get_object*(link: PHyperlink, i: gint): PObject{.cdecl,
|
proc get_object*(link: PHyperlink, i: gint): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_hyperlink_get_object".}
|
dynlib: lib, importc: "atk_hyperlink_get_object".}
|
||||||
proc hyperlink_get_end_index*(link: PHyperlink): gint{.cdecl, dynlib: lib,
|
proc get_end_index*(link: PHyperlink): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hyperlink_get_end_index".}
|
importc: "atk_hyperlink_get_end_index".}
|
||||||
proc hyperlink_get_start_index*(link: PHyperlink): gint{.cdecl, dynlib: lib,
|
proc get_start_index*(link: PHyperlink): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hyperlink_get_start_index".}
|
importc: "atk_hyperlink_get_start_index".}
|
||||||
proc hyperlink_is_valid*(link: PHyperlink): gboolean{.cdecl, dynlib: lib,
|
proc is_valid*(link: PHyperlink): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hyperlink_is_valid".}
|
importc: "atk_hyperlink_is_valid".}
|
||||||
proc hyperlink_get_n_anchors*(link: PHyperlink): gint{.cdecl, dynlib: lib,
|
proc get_n_anchors*(link: PHyperlink): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hyperlink_get_n_anchors".}
|
importc: "atk_hyperlink_get_n_anchors".}
|
||||||
proc TYPE_HYPERTEXT*(): GType
|
proc TYPE_HYPERTEXT*(): GType
|
||||||
proc IS_HYPERTEXT*(obj: pointer): bool
|
proc IS_HYPERTEXT*(obj: pointer): bool
|
||||||
|
|
@ -649,24 +649,24 @@ proc HYPERTEXT*(obj: pointer): PHypertext
|
||||||
proc HYPERTEXT_GET_IFACE*(obj: pointer): PHypertextIface
|
proc HYPERTEXT_GET_IFACE*(obj: pointer): PHypertextIface
|
||||||
proc hypertext_get_type*(): GType{.cdecl, dynlib: lib,
|
proc hypertext_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hypertext_get_type".}
|
importc: "atk_hypertext_get_type".}
|
||||||
proc hypertext_get_link*(hypertext: PHypertext, link_index: gint): PHyperlink{.
|
proc get_link*(hypertext: PHypertext, link_index: gint): PHyperlink{.
|
||||||
cdecl, dynlib: lib, importc: "atk_hypertext_get_link".}
|
cdecl, dynlib: lib, importc: "atk_hypertext_get_link".}
|
||||||
proc hypertext_get_n_links*(hypertext: PHypertext): gint{.cdecl, dynlib: lib,
|
proc get_n_links*(hypertext: PHypertext): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_hypertext_get_n_links".}
|
importc: "atk_hypertext_get_n_links".}
|
||||||
proc hypertext_get_link_index*(hypertext: PHypertext, char_index: gint): gint{.
|
proc get_link_index*(hypertext: PHypertext, char_index: gint): gint{.
|
||||||
cdecl, dynlib: lib, importc: "atk_hypertext_get_link_index".}
|
cdecl, dynlib: lib, importc: "atk_hypertext_get_link_index".}
|
||||||
proc TYPE_IMAGE*(): GType
|
proc TYPE_IMAGE*(): GType
|
||||||
proc IS_IMAGE*(obj: pointer): bool
|
proc IS_IMAGE*(obj: pointer): bool
|
||||||
proc IMAGE*(obj: pointer): PImage
|
proc IMAGE*(obj: pointer): PImage
|
||||||
proc IMAGE_GET_IFACE*(obj: pointer): PImageIface
|
proc IMAGE_GET_IFACE*(obj: pointer): PImageIface
|
||||||
proc image_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_image_get_type".}
|
proc image_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_image_get_type".}
|
||||||
proc image_get_image_description*(image: PImage): cstring{.cdecl, dynlib: lib,
|
proc get_image_description*(image: PImage): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_image_get_image_description".}
|
importc: "atk_image_get_image_description".}
|
||||||
proc image_get_image_size*(image: PImage, width: Pgint, height: Pgint){.cdecl,
|
proc get_image_size*(image: PImage, width: Pgint, height: Pgint){.cdecl,
|
||||||
dynlib: lib, importc: "atk_image_get_image_size".}
|
dynlib: lib, importc: "atk_image_get_image_size".}
|
||||||
proc image_set_image_description*(image: PImage, description: cstring): gboolean{.
|
proc set_image_description*(image: PImage, description: cstring): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_image_set_image_description".}
|
cdecl, dynlib: lib, importc: "atk_image_set_image_description".}
|
||||||
proc image_get_image_position*(image: PImage, x: Pgint, y: Pgint,
|
proc get_image_position*(image: PImage, x: Pgint, y: Pgint,
|
||||||
coord_type: TCoordType){.cdecl, dynlib: lib,
|
coord_type: TCoordType){.cdecl, dynlib: lib,
|
||||||
importc: "atk_image_get_image_position".}
|
importc: "atk_image_get_image_position".}
|
||||||
proc TYPE_OBJECT_FACTORY*(): GType
|
proc TYPE_OBJECT_FACTORY*(): GType
|
||||||
|
|
@ -677,11 +677,11 @@ proc IS_OBJECT_FACTORY_CLASS*(klass: pointer): bool
|
||||||
proc OBJECT_FACTORY_GET_CLASS*(obj: pointer): PObjectFactoryClass
|
proc OBJECT_FACTORY_GET_CLASS*(obj: pointer): PObjectFactoryClass
|
||||||
proc object_factory_get_type*(): GType{.cdecl, dynlib: lib,
|
proc object_factory_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_factory_get_type".}
|
importc: "atk_object_factory_get_type".}
|
||||||
proc object_factory_create_accessible*(factory: PObjectFactory, obj: PGObject): PObject{.
|
proc create_accessible*(factory: PObjectFactory, obj: PGObject): PObject{.
|
||||||
cdecl, dynlib: lib, importc: "atk_object_factory_create_accessible".}
|
cdecl, dynlib: lib, importc: "atk_object_factory_create_accessible".}
|
||||||
proc object_factory_invalidate*(factory: PObjectFactory){.cdecl, dynlib: lib,
|
proc invalidate*(factory: PObjectFactory){.cdecl, dynlib: lib,
|
||||||
importc: "atk_object_factory_invalidate".}
|
importc: "atk_object_factory_invalidate".}
|
||||||
proc object_factory_get_accessible_type*(factory: PObjectFactory): GType{.cdecl,
|
proc get_accessible_type*(factory: PObjectFactory): GType{.cdecl,
|
||||||
dynlib: lib, importc: "atk_object_factory_get_accessible_type".}
|
dynlib: lib, importc: "atk_object_factory_get_accessible_type".}
|
||||||
proc TYPE_REGISTRY*(): GType
|
proc TYPE_REGISTRY*(): GType
|
||||||
proc REGISTRY*(obj: pointer): PRegistry
|
proc REGISTRY*(obj: pointer): PRegistry
|
||||||
|
|
@ -691,12 +691,12 @@ proc IS_REGISTRY_CLASS*(klass: pointer): bool
|
||||||
proc REGISTRY_GET_CLASS*(obj: pointer): PRegistryClass
|
proc REGISTRY_GET_CLASS*(obj: pointer): PRegistryClass
|
||||||
proc registry_get_type*(): GType{.cdecl, dynlib: lib,
|
proc registry_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_registry_get_type".}
|
importc: "atk_registry_get_type".}
|
||||||
proc registry_set_factory_type*(registry: PRegistry, `type`: GType,
|
proc set_factory_type*(registry: PRegistry, `type`: GType,
|
||||||
factory_type: GType){.cdecl, dynlib: lib,
|
factory_type: GType){.cdecl, dynlib: lib,
|
||||||
importc: "atk_registry_set_factory_type".}
|
importc: "atk_registry_set_factory_type".}
|
||||||
proc registry_get_factory_type*(registry: PRegistry, `type`: GType): GType{.
|
proc get_factory_type*(registry: PRegistry, `type`: GType): GType{.
|
||||||
cdecl, dynlib: lib, importc: "atk_registry_get_factory_type".}
|
cdecl, dynlib: lib, importc: "atk_registry_get_factory_type".}
|
||||||
proc registry_get_factory*(registry: PRegistry, `type`: GType): PObjectFactory{.
|
proc get_factory*(registry: PRegistry, `type`: GType): PObjectFactory{.
|
||||||
cdecl, dynlib: lib, importc: "atk_registry_get_factory".}
|
cdecl, dynlib: lib, importc: "atk_registry_get_factory".}
|
||||||
proc get_default_registry*(): PRegistry{.cdecl, dynlib: lib,
|
proc get_default_registry*(): PRegistry{.cdecl, dynlib: lib,
|
||||||
importc: "atk_get_default_registry".}
|
importc: "atk_get_default_registry".}
|
||||||
|
|
@ -717,9 +717,9 @@ proc relation_type_for_name*(name: cstring): TRelationType{.cdecl, dynlib: lib,
|
||||||
proc relation_new*(targets: PPAtkObject, n_targets: gint,
|
proc relation_new*(targets: PPAtkObject, n_targets: gint,
|
||||||
relationship: TRelationType): PRelation{.cdecl, dynlib: lib,
|
relationship: TRelationType): PRelation{.cdecl, dynlib: lib,
|
||||||
importc: "atk_relation_new".}
|
importc: "atk_relation_new".}
|
||||||
proc relation_get_relation_type*(relation: PRelation): TRelationType{.cdecl,
|
proc get_relation_type*(relation: PRelation): TRelationType{.cdecl,
|
||||||
dynlib: lib, importc: "atk_relation_get_relation_type".}
|
dynlib: lib, importc: "atk_relation_get_relation_type".}
|
||||||
proc relation_get_target*(relation: PRelation): PGPtrArray{.cdecl, dynlib: lib,
|
proc get_target*(relation: PRelation): PGPtrArray{.cdecl, dynlib: lib,
|
||||||
importc: "atk_relation_get_target".}
|
importc: "atk_relation_get_target".}
|
||||||
proc TYPE_RELATION_SET*(): GType
|
proc TYPE_RELATION_SET*(): GType
|
||||||
proc RELATION_SET*(obj: pointer): PRelationSet
|
proc RELATION_SET*(obj: pointer): PRelationSet
|
||||||
|
|
@ -731,18 +731,18 @@ proc relation_set_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_relation_set_get_type".}
|
importc: "atk_relation_set_get_type".}
|
||||||
proc relation_set_new*(): PRelationSet{.cdecl, dynlib: lib,
|
proc relation_set_new*(): PRelationSet{.cdecl, dynlib: lib,
|
||||||
importc: "atk_relation_set_new".}
|
importc: "atk_relation_set_new".}
|
||||||
proc relation_set_contains*(RelationSet: PRelationSet,
|
proc contains*(RelationSet: PRelationSet,
|
||||||
relationship: TRelationType): gboolean{.cdecl,
|
relationship: TRelationType): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_relation_set_contains".}
|
dynlib: lib, importc: "atk_relation_set_contains".}
|
||||||
proc relation_set_remove*(RelationSet: PRelationSet, relation: PRelation){.
|
proc remove*(RelationSet: PRelationSet, relation: PRelation){.
|
||||||
cdecl, dynlib: lib, importc: "atk_relation_set_remove".}
|
cdecl, dynlib: lib, importc: "atk_relation_set_remove".}
|
||||||
proc relation_set_add*(RelationSet: PRelationSet, relation: PRelation){.cdecl,
|
proc add*(RelationSet: PRelationSet, relation: PRelation){.cdecl,
|
||||||
dynlib: lib, importc: "atk_relation_set_add".}
|
dynlib: lib, importc: "atk_relation_set_add".}
|
||||||
proc relation_set_get_n_relations*(RelationSet: PRelationSet): gint{.cdecl,
|
proc get_n_relations*(RelationSet: PRelationSet): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_relation_set_get_n_relations".}
|
dynlib: lib, importc: "atk_relation_set_get_n_relations".}
|
||||||
proc relation_set_get_relation*(RelationSet: PRelationSet, i: gint): PRelation{.
|
proc get_relation*(RelationSet: PRelationSet, i: gint): PRelation{.
|
||||||
cdecl, dynlib: lib, importc: "atk_relation_set_get_relation".}
|
cdecl, dynlib: lib, importc: "atk_relation_set_get_relation".}
|
||||||
proc relation_set_get_relation_by_type*(RelationSet: PRelationSet,
|
proc get_relation_by_type*(RelationSet: PRelationSet,
|
||||||
relationship: TRelationType): PRelation{.
|
relationship: TRelationType): PRelation{.
|
||||||
cdecl, dynlib: lib, importc: "atk_relation_set_get_relation_by_type".}
|
cdecl, dynlib: lib, importc: "atk_relation_set_get_relation_by_type".}
|
||||||
proc TYPE_SELECTION*(): GType
|
proc TYPE_SELECTION*(): GType
|
||||||
|
|
@ -751,19 +751,19 @@ proc SELECTION*(obj: pointer): PSelection
|
||||||
proc SELECTION_GET_IFACE*(obj: pointer): PSelectionIface
|
proc SELECTION_GET_IFACE*(obj: pointer): PSelectionIface
|
||||||
proc selection_get_type*(): GType{.cdecl, dynlib: lib,
|
proc selection_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_selection_get_type".}
|
importc: "atk_selection_get_type".}
|
||||||
proc selection_add_selection*(selection: PSelection, i: gint): gboolean{.cdecl,
|
proc add_selection*(selection: PSelection, i: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_selection_add_selection".}
|
dynlib: lib, importc: "atk_selection_add_selection".}
|
||||||
proc selection_clear_selection*(selection: PSelection): gboolean{.cdecl,
|
proc clear_selection*(selection: PSelection): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_selection_clear_selection".}
|
dynlib: lib, importc: "atk_selection_clear_selection".}
|
||||||
proc selection_ref_selection*(selection: PSelection, i: gint): PObject{.cdecl,
|
proc ref_selection*(selection: PSelection, i: gint): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_selection_ref_selection".}
|
dynlib: lib, importc: "atk_selection_ref_selection".}
|
||||||
proc selection_get_selection_count*(selection: PSelection): gint{.cdecl,
|
proc get_selection_count*(selection: PSelection): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_selection_get_selection_count".}
|
dynlib: lib, importc: "atk_selection_get_selection_count".}
|
||||||
proc selection_is_child_selected*(selection: PSelection, i: gint): gboolean{.
|
proc is_child_selected*(selection: PSelection, i: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_selection_is_child_selected".}
|
cdecl, dynlib: lib, importc: "atk_selection_is_child_selected".}
|
||||||
proc selection_remove_selection*(selection: PSelection, i: gint): gboolean{.
|
proc remove_selection*(selection: PSelection, i: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_selection_remove_selection".}
|
cdecl, dynlib: lib, importc: "atk_selection_remove_selection".}
|
||||||
proc selection_select_all_selection*(selection: PSelection): gboolean{.cdecl,
|
proc select_all_selection*(selection: PSelection): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_selection_select_all_selection".}
|
dynlib: lib, importc: "atk_selection_select_all_selection".}
|
||||||
proc state_type_register*(name: cstring): TStateType{.cdecl, dynlib: lib,
|
proc state_type_register*(name: cstring): TStateType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_state_type_register".}
|
importc: "atk_state_type_register".}
|
||||||
|
|
@ -781,26 +781,26 @@ proc state_set_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_state_set_get_type".}
|
importc: "atk_state_set_get_type".}
|
||||||
proc state_set_new*(): PStateSet{.cdecl, dynlib: lib,
|
proc state_set_new*(): PStateSet{.cdecl, dynlib: lib,
|
||||||
importc: "atk_state_set_new".}
|
importc: "atk_state_set_new".}
|
||||||
proc state_set_is_empty*(StateSet: PStateSet): gboolean{.cdecl, dynlib: lib,
|
proc is_empty*(StateSet: PStateSet): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_state_set_is_empty".}
|
importc: "atk_state_set_is_empty".}
|
||||||
proc state_set_add_state*(StateSet: PStateSet, `type`: TStateType): gboolean{.
|
proc add_state*(StateSet: PStateSet, `type`: TStateType): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_add_state".}
|
cdecl, dynlib: lib, importc: "atk_state_set_add_state".}
|
||||||
proc state_set_add_states*(StateSet: PStateSet, types: PStateType, n_types: gint){.
|
proc add_states*(StateSet: PStateSet, types: PStateType, n_types: gint){.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_add_states".}
|
cdecl, dynlib: lib, importc: "atk_state_set_add_states".}
|
||||||
proc state_set_clear_states*(StateSet: PStateSet){.cdecl, dynlib: lib,
|
proc clear_states*(StateSet: PStateSet){.cdecl, dynlib: lib,
|
||||||
importc: "atk_state_set_clear_states".}
|
importc: "atk_state_set_clear_states".}
|
||||||
proc state_set_contains_state*(StateSet: PStateSet, `type`: TStateType): gboolean{.
|
proc contains_state*(StateSet: PStateSet, `type`: TStateType): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_contains_state".}
|
cdecl, dynlib: lib, importc: "atk_state_set_contains_state".}
|
||||||
proc state_set_contains_states*(StateSet: PStateSet, types: PStateType,
|
proc contains_states*(StateSet: PStateSet, types: PStateType,
|
||||||
n_types: gint): gboolean{.cdecl, dynlib: lib,
|
n_types: gint): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_state_set_contains_states".}
|
importc: "atk_state_set_contains_states".}
|
||||||
proc state_set_remove_state*(StateSet: PStateSet, `type`: TStateType): gboolean{.
|
proc remove_state*(StateSet: PStateSet, `type`: TStateType): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_remove_state".}
|
cdecl, dynlib: lib, importc: "atk_state_set_remove_state".}
|
||||||
proc state_set_and_sets*(StateSet: PStateSet, compare_set: PStateSet): PStateSet{.
|
proc and_sets*(StateSet: PStateSet, compare_set: PStateSet): PStateSet{.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_and_sets".}
|
cdecl, dynlib: lib, importc: "atk_state_set_and_sets".}
|
||||||
proc state_set_or_sets*(StateSet: PStateSet, compare_set: PStateSet): PStateSet{.
|
proc or_sets*(StateSet: PStateSet, compare_set: PStateSet): PStateSet{.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_or_sets".}
|
cdecl, dynlib: lib, importc: "atk_state_set_or_sets".}
|
||||||
proc state_set_xor_sets*(StateSet: PStateSet, compare_set: PStateSet): PStateSet{.
|
proc xor_sets*(StateSet: PStateSet, compare_set: PStateSet): PStateSet{.
|
||||||
cdecl, dynlib: lib, importc: "atk_state_set_xor_sets".}
|
cdecl, dynlib: lib, importc: "atk_state_set_xor_sets".}
|
||||||
proc TYPE_STREAMABLE_CONTENT*(): GType
|
proc TYPE_STREAMABLE_CONTENT*(): GType
|
||||||
proc IS_STREAMABLE_CONTENT*(obj: pointer): bool
|
proc IS_STREAMABLE_CONTENT*(obj: pointer): bool
|
||||||
|
|
@ -808,11 +808,11 @@ proc STREAMABLE_CONTENT*(obj: pointer): PStreamableContent
|
||||||
proc STREAMABLE_CONTENT_GET_IFACE*(obj: pointer): PStreamableContentIface
|
proc STREAMABLE_CONTENT_GET_IFACE*(obj: pointer): PStreamableContentIface
|
||||||
proc streamable_content_get_type*(): GType{.cdecl, dynlib: lib,
|
proc streamable_content_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "atk_streamable_content_get_type".}
|
importc: "atk_streamable_content_get_type".}
|
||||||
proc streamable_content_get_n_mime_types*(streamable: PStreamableContent): gint{.
|
proc get_n_mime_types*(streamable: PStreamableContent): gint{.
|
||||||
cdecl, dynlib: lib, importc: "atk_streamable_content_get_n_mime_types".}
|
cdecl, dynlib: lib, importc: "atk_streamable_content_get_n_mime_types".}
|
||||||
proc streamable_content_get_mime_type*(streamable: PStreamableContent, i: gint): cstring{.
|
proc get_mime_type*(streamable: PStreamableContent, i: gint): cstring{.
|
||||||
cdecl, dynlib: lib, importc: "atk_streamable_content_get_mime_type".}
|
cdecl, dynlib: lib, importc: "atk_streamable_content_get_mime_type".}
|
||||||
proc streamable_content_get_stream*(streamable: PStreamableContent,
|
proc get_stream*(streamable: PStreamableContent,
|
||||||
mime_type: cstring): PGIOChannel{.cdecl,
|
mime_type: cstring): PGIOChannel{.cdecl,
|
||||||
dynlib: lib, importc: "atk_streamable_content_get_stream".}
|
dynlib: lib, importc: "atk_streamable_content_get_stream".}
|
||||||
proc TYPE_TABLE*(): GType
|
proc TYPE_TABLE*(): GType
|
||||||
|
|
@ -820,64 +820,64 @@ proc IS_TABLE*(obj: pointer): bool
|
||||||
proc TABLE*(obj: pointer): PTable
|
proc TABLE*(obj: pointer): PTable
|
||||||
proc TABLE_GET_IFACE*(obj: pointer): PTableIface
|
proc TABLE_GET_IFACE*(obj: pointer): PTableIface
|
||||||
proc table_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_table_get_type".}
|
proc table_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_table_get_type".}
|
||||||
proc table_ref_at*(table: PTable, row, column: gint): PObject{.cdecl,
|
proc ref_at*(table: PTable, row, column: gint): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_ref_at".}
|
dynlib: lib, importc: "atk_table_ref_at".}
|
||||||
proc table_get_index_at*(table: PTable, row, column: gint): gint{.cdecl,
|
proc get_index_at*(table: PTable, row, column: gint): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_index_at".}
|
dynlib: lib, importc: "atk_table_get_index_at".}
|
||||||
proc table_get_column_at_index*(table: PTable, index: gint): gint{.cdecl,
|
proc get_column_at_index*(table: PTable, index: gint): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_column_at_index".}
|
dynlib: lib, importc: "atk_table_get_column_at_index".}
|
||||||
proc table_get_row_at_index*(table: PTable, index: gint): gint{.cdecl,
|
proc get_row_at_index*(table: PTable, index: gint): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_row_at_index".}
|
dynlib: lib, importc: "atk_table_get_row_at_index".}
|
||||||
proc table_get_n_columns*(table: PTable): gint{.cdecl, dynlib: lib,
|
proc get_n_columns*(table: PTable): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_get_n_columns".}
|
importc: "atk_table_get_n_columns".}
|
||||||
proc table_get_n_rows*(table: PTable): gint{.cdecl, dynlib: lib,
|
proc get_n_rows*(table: PTable): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_get_n_rows".}
|
importc: "atk_table_get_n_rows".}
|
||||||
proc table_get_column_extent_at*(table: PTable, row: gint, column: gint): gint{.
|
proc get_column_extent_at*(table: PTable, row: gint, column: gint): gint{.
|
||||||
cdecl, dynlib: lib, importc: "atk_table_get_column_extent_at".}
|
cdecl, dynlib: lib, importc: "atk_table_get_column_extent_at".}
|
||||||
proc table_get_row_extent_at*(table: PTable, row: gint, column: gint): gint{.
|
proc get_row_extent_at*(table: PTable, row: gint, column: gint): gint{.
|
||||||
cdecl, dynlib: lib, importc: "atk_table_get_row_extent_at".}
|
cdecl, dynlib: lib, importc: "atk_table_get_row_extent_at".}
|
||||||
proc table_get_caption*(table: PTable): PObject{.cdecl, dynlib: lib,
|
proc get_caption*(table: PTable): PObject{.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_get_caption".}
|
importc: "atk_table_get_caption".}
|
||||||
proc table_get_column_description*(table: PTable, column: gint): cstring{.cdecl,
|
proc get_column_description*(table: PTable, column: gint): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_column_description".}
|
dynlib: lib, importc: "atk_table_get_column_description".}
|
||||||
proc table_get_column_header*(table: PTable, column: gint): PObject{.cdecl,
|
proc get_column_header*(table: PTable, column: gint): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_column_header".}
|
dynlib: lib, importc: "atk_table_get_column_header".}
|
||||||
proc table_get_row_description*(table: PTable, row: gint): cstring{.cdecl,
|
proc get_row_description*(table: PTable, row: gint): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_row_description".}
|
dynlib: lib, importc: "atk_table_get_row_description".}
|
||||||
proc table_get_row_header*(table: PTable, row: gint): PObject{.cdecl,
|
proc get_row_header*(table: PTable, row: gint): PObject{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_row_header".}
|
dynlib: lib, importc: "atk_table_get_row_header".}
|
||||||
proc table_get_summary*(table: PTable): PObject{.cdecl, dynlib: lib,
|
proc get_summary*(table: PTable): PObject{.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_get_summary".}
|
importc: "atk_table_get_summary".}
|
||||||
proc table_set_caption*(table: PTable, caption: PObject){.cdecl, dynlib: lib,
|
proc set_caption*(table: PTable, caption: PObject){.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_set_caption".}
|
importc: "atk_table_set_caption".}
|
||||||
proc table_set_column_description*(table: PTable, column: gint,
|
proc set_column_description*(table: PTable, column: gint,
|
||||||
description: cstring){.cdecl, dynlib: lib,
|
description: cstring){.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_set_column_description".}
|
importc: "atk_table_set_column_description".}
|
||||||
proc table_set_column_header*(table: PTable, column: gint, header: PObject){.
|
proc set_column_header*(table: PTable, column: gint, header: PObject){.
|
||||||
cdecl, dynlib: lib, importc: "atk_table_set_column_header".}
|
cdecl, dynlib: lib, importc: "atk_table_set_column_header".}
|
||||||
proc table_set_row_description*(table: PTable, row: gint, description: cstring){.
|
proc set_row_description*(table: PTable, row: gint, description: cstring){.
|
||||||
cdecl, dynlib: lib, importc: "atk_table_set_row_description".}
|
cdecl, dynlib: lib, importc: "atk_table_set_row_description".}
|
||||||
proc table_set_row_header*(table: PTable, row: gint, header: PObject){.cdecl,
|
proc set_row_header*(table: PTable, row: gint, header: PObject){.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_set_row_header".}
|
dynlib: lib, importc: "atk_table_set_row_header".}
|
||||||
proc table_set_summary*(table: PTable, accessible: PObject){.cdecl, dynlib: lib,
|
proc set_summary*(table: PTable, accessible: PObject){.cdecl, dynlib: lib,
|
||||||
importc: "atk_table_set_summary".}
|
importc: "atk_table_set_summary".}
|
||||||
proc table_get_selected_columns*(table: PTable, selected: PPgint): gint{.cdecl,
|
proc get_selected_columns*(table: PTable, selected: PPgint): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_selected_columns".}
|
dynlib: lib, importc: "atk_table_get_selected_columns".}
|
||||||
proc table_get_selected_rows*(table: PTable, selected: PPgint): gint{.cdecl,
|
proc get_selected_rows*(table: PTable, selected: PPgint): gint{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_get_selected_rows".}
|
dynlib: lib, importc: "atk_table_get_selected_rows".}
|
||||||
proc table_is_column_selected*(table: PTable, column: gint): gboolean{.cdecl,
|
proc is_column_selected*(table: PTable, column: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_is_column_selected".}
|
dynlib: lib, importc: "atk_table_is_column_selected".}
|
||||||
proc table_is_row_selected*(table: PTable, row: gint): gboolean{.cdecl,
|
proc is_row_selected*(table: PTable, row: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_is_row_selected".}
|
dynlib: lib, importc: "atk_table_is_row_selected".}
|
||||||
proc table_is_selected*(table: PTable, row: gint, column: gint): gboolean{.
|
proc is_selected*(table: PTable, row: gint, column: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_table_is_selected".}
|
cdecl, dynlib: lib, importc: "atk_table_is_selected".}
|
||||||
proc table_add_row_selection*(table: PTable, row: gint): gboolean{.cdecl,
|
proc add_row_selection*(table: PTable, row: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_add_row_selection".}
|
dynlib: lib, importc: "atk_table_add_row_selection".}
|
||||||
proc table_remove_row_selection*(table: PTable, row: gint): gboolean{.cdecl,
|
proc remove_row_selection*(table: PTable, row: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_remove_row_selection".}
|
dynlib: lib, importc: "atk_table_remove_row_selection".}
|
||||||
proc table_add_column_selection*(table: PTable, column: gint): gboolean{.cdecl,
|
proc add_column_selection*(table: PTable, column: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_table_add_column_selection".}
|
dynlib: lib, importc: "atk_table_add_column_selection".}
|
||||||
proc table_remove_column_selection*(table: PTable, column: gint): gboolean{.
|
proc remove_column_selection*(table: PTable, column: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_table_remove_column_selection".}
|
cdecl, dynlib: lib, importc: "atk_table_remove_column_selection".}
|
||||||
proc text_attribute_register*(name: cstring): TTextAttribute{.cdecl,
|
proc text_attribute_register*(name: cstring): TTextAttribute{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_attribute_register".}
|
dynlib: lib, importc: "atk_text_attribute_register".}
|
||||||
|
|
@ -886,51 +886,51 @@ proc IS_TEXT*(obj: pointer): bool
|
||||||
proc TEXT*(obj: pointer): PText
|
proc TEXT*(obj: pointer): PText
|
||||||
proc TEXT_GET_IFACE*(obj: pointer): PTextIface
|
proc TEXT_GET_IFACE*(obj: pointer): PTextIface
|
||||||
proc text_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_text_get_type".}
|
proc text_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_text_get_type".}
|
||||||
proc text_get_text*(text: PText, start_offset: gint, end_offset: gint): cstring{.
|
proc get_text*(text: PText, start_offset: gint, end_offset: gint): cstring{.
|
||||||
cdecl, dynlib: lib, importc: "atk_text_get_text".}
|
cdecl, dynlib: lib, importc: "atk_text_get_text".}
|
||||||
proc text_get_character_at_offset*(text: PText, offset: gint): gunichar{.cdecl,
|
proc get_character_at_offset*(text: PText, offset: gint): gunichar{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_get_character_at_offset".}
|
dynlib: lib, importc: "atk_text_get_character_at_offset".}
|
||||||
proc text_get_text_after_offset*(text: PText, offset: gint,
|
proc get_text_after_offset*(text: PText, offset: gint,
|
||||||
boundary_type: TTextBoundary,
|
boundary_type: TTextBoundary,
|
||||||
start_offset: Pgint, end_offset: Pgint): cstring{.
|
start_offset: Pgint, end_offset: Pgint): cstring{.
|
||||||
cdecl, dynlib: lib, importc: "atk_text_get_text_after_offset".}
|
cdecl, dynlib: lib, importc: "atk_text_get_text_after_offset".}
|
||||||
proc text_get_text_at_offset*(text: PText, offset: gint,
|
proc get_text_at_offset*(text: PText, offset: gint,
|
||||||
boundary_type: TTextBoundary, start_offset: Pgint,
|
boundary_type: TTextBoundary, start_offset: Pgint,
|
||||||
end_offset: Pgint): cstring{.cdecl, dynlib: lib,
|
end_offset: Pgint): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_text_get_text_at_offset".}
|
importc: "atk_text_get_text_at_offset".}
|
||||||
proc text_get_text_before_offset*(text: PText, offset: gint,
|
proc get_text_before_offset*(text: PText, offset: gint,
|
||||||
boundary_type: TTextBoundary,
|
boundary_type: TTextBoundary,
|
||||||
start_offset: Pgint, end_offset: Pgint): cstring{.
|
start_offset: Pgint, end_offset: Pgint): cstring{.
|
||||||
cdecl, dynlib: lib, importc: "atk_text_get_text_before_offset".}
|
cdecl, dynlib: lib, importc: "atk_text_get_text_before_offset".}
|
||||||
proc text_get_caret_offset*(text: PText): gint{.cdecl, dynlib: lib,
|
proc get_caret_offset*(text: PText): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_text_get_caret_offset".}
|
importc: "atk_text_get_caret_offset".}
|
||||||
proc text_get_character_extents*(text: PText, offset: gint, x: Pgint, y: Pgint,
|
proc get_character_extents*(text: PText, offset: gint, x: Pgint, y: Pgint,
|
||||||
width: Pgint, height: Pgint, coords: TCoordType){.
|
width: Pgint, height: Pgint, coords: TCoordType){.
|
||||||
cdecl, dynlib: lib, importc: "atk_text_get_character_extents".}
|
cdecl, dynlib: lib, importc: "atk_text_get_character_extents".}
|
||||||
proc text_get_run_attributes*(text: PText, offset: gint, start_offset: Pgint,
|
proc get_run_attributes*(text: PText, offset: gint, start_offset: Pgint,
|
||||||
end_offset: Pgint): PAttributeSet{.cdecl,
|
end_offset: Pgint): PAttributeSet{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_get_run_attributes".}
|
dynlib: lib, importc: "atk_text_get_run_attributes".}
|
||||||
proc text_get_default_attributes*(text: PText): PAttributeSet{.cdecl,
|
proc get_default_attributes*(text: PText): PAttributeSet{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_get_default_attributes".}
|
dynlib: lib, importc: "atk_text_get_default_attributes".}
|
||||||
proc text_get_character_count*(text: PText): gint{.cdecl, dynlib: lib,
|
proc get_character_count*(text: PText): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_text_get_character_count".}
|
importc: "atk_text_get_character_count".}
|
||||||
proc text_get_offset_at_point*(text: PText, x: gint, y: gint, coords: TCoordType): gint{.
|
proc get_offset_at_point*(text: PText, x: gint, y: gint, coords: TCoordType): gint{.
|
||||||
cdecl, dynlib: lib, importc: "atk_text_get_offset_at_point".}
|
cdecl, dynlib: lib, importc: "atk_text_get_offset_at_point".}
|
||||||
proc text_get_n_selections*(text: PText): gint{.cdecl, dynlib: lib,
|
proc get_n_selections*(text: PText): gint{.cdecl, dynlib: lib,
|
||||||
importc: "atk_text_get_n_selections".}
|
importc: "atk_text_get_n_selections".}
|
||||||
proc text_get_selection*(text: PText, selection_num: gint, start_offset: Pgint,
|
proc get_selection*(text: PText, selection_num: gint, start_offset: Pgint,
|
||||||
end_offset: Pgint): cstring{.cdecl, dynlib: lib,
|
end_offset: Pgint): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "atk_text_get_selection".}
|
importc: "atk_text_get_selection".}
|
||||||
proc text_add_selection*(text: PText, start_offset: gint, end_offset: gint): gboolean{.
|
proc add_selection*(text: PText, start_offset: gint, end_offset: gint): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "atk_text_add_selection".}
|
cdecl, dynlib: lib, importc: "atk_text_add_selection".}
|
||||||
proc text_remove_selection*(text: PText, selection_num: gint): gboolean{.cdecl,
|
proc remove_selection*(text: PText, selection_num: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_remove_selection".}
|
dynlib: lib, importc: "atk_text_remove_selection".}
|
||||||
proc text_set_selection*(text: PText, selection_num: gint, start_offset: gint,
|
proc set_selection*(text: PText, selection_num: gint, start_offset: gint,
|
||||||
end_offset: gint): gboolean{.cdecl, dynlib: lib,
|
end_offset: gint): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "atk_text_set_selection".}
|
importc: "atk_text_set_selection".}
|
||||||
proc text_set_caret_offset*(text: PText, offset: gint): gboolean{.cdecl,
|
proc set_caret_offset*(text: PText, offset: gint): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_set_caret_offset".}
|
dynlib: lib, importc: "atk_text_set_caret_offset".}
|
||||||
proc attribute_set_free*(attrib_set: PAttributeSet){.cdecl, dynlib: lib,
|
proc free*(attrib_set: PAttributeSet){.cdecl, dynlib: lib,
|
||||||
importc: "atk_attribute_set_free".}
|
importc: "atk_attribute_set_free".}
|
||||||
proc text_attribute_get_name*(attr: TTextAttribute): cstring{.cdecl,
|
proc text_attribute_get_name*(attr: TTextAttribute): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "atk_text_attribute_get_name".}
|
dynlib: lib, importc: "atk_text_attribute_get_name".}
|
||||||
|
|
@ -972,13 +972,13 @@ proc IS_VALUE*(obj: pointer): bool
|
||||||
proc VALUE*(obj: pointer): PValue
|
proc VALUE*(obj: pointer): PValue
|
||||||
proc VALUE_GET_IFACE*(obj: pointer): PValueIface
|
proc VALUE_GET_IFACE*(obj: pointer): PValueIface
|
||||||
proc value_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_value_get_type".}
|
proc value_get_type*(): GType{.cdecl, dynlib: lib, importc: "atk_value_get_type".}
|
||||||
proc value_get_current_value*(obj: PValue, value: PGValue){.cdecl, dynlib: lib,
|
proc get_current_value*(obj: PValue, value: PGValue){.cdecl, dynlib: lib,
|
||||||
importc: "atk_value_get_current_value".}
|
importc: "atk_value_get_current_value".}
|
||||||
proc value_get_maximum_value*(obj: PValue, value: PGValue){.cdecl, dynlib: lib,
|
proc get_maximum_value*(obj: PValue, value: PGValue){.cdecl, dynlib: lib,
|
||||||
importc: "atk_value_get_maximum_value".}
|
importc: "atk_value_get_maximum_value".}
|
||||||
proc value_get_minimum_value*(obj: PValue, value: PGValue){.cdecl, dynlib: lib,
|
proc get_minimum_value*(obj: PValue, value: PGValue){.cdecl, dynlib: lib,
|
||||||
importc: "atk_value_get_minimum_value".}
|
importc: "atk_value_get_minimum_value".}
|
||||||
proc value_set_current_value*(obj: PValue, value: PGValue): gboolean{.cdecl,
|
proc set_current_value*(obj: PValue, value: PGValue): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "atk_value_set_current_value".}
|
dynlib: lib, importc: "atk_value_set_current_value".}
|
||||||
proc TYPE_OBJECT*(): GType =
|
proc TYPE_OBJECT*(): GType =
|
||||||
result = object_get_type()
|
result = object_get_type()
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -57,28 +57,28 @@ when not defined(PIXBUF_DISABLE_DEPRECATED):
|
||||||
importc: "gdk_pixbuf_ref".}
|
importc: "gdk_pixbuf_ref".}
|
||||||
proc pixbuf_unref*(pixbuf: PPixbuf){.cdecl, dynlib: pixbuflib,
|
proc pixbuf_unref*(pixbuf: PPixbuf){.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_unref".}
|
importc: "gdk_pixbuf_unref".}
|
||||||
proc pixbuf_get_colorspace*(pixbuf: PPixbuf): TColorspace{.cdecl,
|
proc get_colorspace*(pixbuf: PPixbuf): TColorspace{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_get_colorspace".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_get_colorspace".}
|
||||||
proc pixbuf_get_n_channels*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
proc get_n_channels*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_get_n_channels".}
|
importc: "gdk_pixbuf_get_n_channels".}
|
||||||
proc pixbuf_get_has_alpha*(pixbuf: PPixbuf): gboolean{.cdecl, dynlib: pixbuflib,
|
proc get_has_alpha*(pixbuf: PPixbuf): gboolean{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_get_has_alpha".}
|
importc: "gdk_pixbuf_get_has_alpha".}
|
||||||
proc pixbuf_get_bits_per_sample*(pixbuf: PPixbuf): int32{.cdecl,
|
proc get_bits_per_sample*(pixbuf: PPixbuf): int32{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_get_bits_per_sample".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_get_bits_per_sample".}
|
||||||
proc pixbuf_get_pixels*(pixbuf: PPixbuf): Pguchar{.cdecl, dynlib: pixbuflib,
|
proc get_pixels*(pixbuf: PPixbuf): Pguchar{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_get_pixels".}
|
importc: "gdk_pixbuf_get_pixels".}
|
||||||
proc pixbuf_get_width*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
proc get_width*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_get_width".}
|
importc: "gdk_pixbuf_get_width".}
|
||||||
proc pixbuf_get_height*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
proc get_height*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_get_height".}
|
importc: "gdk_pixbuf_get_height".}
|
||||||
proc pixbuf_get_rowstride*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
proc get_rowstride*(pixbuf: PPixbuf): int32{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_get_rowstride".}
|
importc: "gdk_pixbuf_get_rowstride".}
|
||||||
proc pixbuf_new*(colorspace: TColorspace, has_alpha: gboolean,
|
proc pixbuf_new*(colorspace: TColorspace, has_alpha: gboolean,
|
||||||
bits_per_sample: int32, width: int32, height: int32): PPixbuf{.
|
bits_per_sample: int32, width: int32, height: int32): PPixbuf{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_new".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_new".}
|
||||||
proc pixbuf_copy*(pixbuf: PPixbuf): PPixbuf{.cdecl, dynlib: pixbuflib,
|
proc copy*(pixbuf: PPixbuf): PPixbuf{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_copy".}
|
importc: "gdk_pixbuf_copy".}
|
||||||
proc pixbuf_new_subpixbuf*(src_pixbuf: PPixbuf, src_x: int32, src_y: int32,
|
proc new_subpixbuf*(src_pixbuf: PPixbuf, src_x: int32, src_y: int32,
|
||||||
width: int32, height: int32): PPixbuf{.cdecl,
|
width: int32, height: int32): PPixbuf{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_new_subpixbuf".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_new_subpixbuf".}
|
||||||
proc pixbuf_new_from_file*(filename: cstring, error: pointer): PPixbuf{.cdecl,
|
proc pixbuf_new_from_file*(filename: cstring, error: pointer): PPixbuf{.cdecl,
|
||||||
|
|
@ -101,36 +101,36 @@ proc pixbuf_new_from_file_at_scale*(filename: cstring, width, height: gint,
|
||||||
preserve_aspect_ratio: gboolean,
|
preserve_aspect_ratio: gboolean,
|
||||||
error: pointer): PPixbuf{.cdecl,
|
error: pointer): PPixbuf{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_new_from_file_at_scale".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_new_from_file_at_scale".}
|
||||||
proc pixbuf_fill*(pixbuf: PPixbuf, pixel: guint32){.cdecl, dynlib: pixbuflib,
|
proc fill*(pixbuf: PPixbuf, pixel: guint32){.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_fill".}
|
importc: "gdk_pixbuf_fill".}
|
||||||
proc pixbuf_save*(pixbuf: PPixbuf, filename: cstring, `type`: cstring,
|
proc save*(pixbuf: PPixbuf, filename: cstring, `type`: cstring,
|
||||||
error: pointer): gboolean{.cdecl, varargs, dynlib: pixbuflib,
|
error: pointer): gboolean{.cdecl, varargs, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_save".}
|
importc: "gdk_pixbuf_save".}
|
||||||
proc pixbuf_savev*(pixbuf: PPixbuf, filename: cstring, `type`: cstring,
|
proc savev*(pixbuf: PPixbuf, filename: cstring, `type`: cstring,
|
||||||
option_keys: PPchar, option_values: PPchar, error: pointer): gboolean{.
|
option_keys: PPchar, option_values: PPchar, error: pointer): gboolean{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_savev".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_savev".}
|
||||||
proc pixbuf_add_alpha*(pixbuf: PPixbuf, substitute_color: gboolean, r: guchar,
|
proc add_alpha*(pixbuf: PPixbuf, substitute_color: gboolean, r: guchar,
|
||||||
g: guchar, b: guchar): PPixbuf{.cdecl, dynlib: pixbuflib,
|
g: guchar, b: guchar): PPixbuf{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_add_alpha".}
|
importc: "gdk_pixbuf_add_alpha".}
|
||||||
proc pixbuf_copy_area*(src_pixbuf: PPixbuf, src_x: int32, src_y: int32,
|
proc copy_area*(src_pixbuf: PPixbuf, src_x: int32, src_y: int32,
|
||||||
width: int32, height: int32, dest_pixbuf: PPixbuf,
|
width: int32, height: int32, dest_pixbuf: PPixbuf,
|
||||||
dest_x: int32, dest_y: int32){.cdecl, dynlib: pixbuflib,
|
dest_x: int32, dest_y: int32){.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_copy_area".}
|
importc: "gdk_pixbuf_copy_area".}
|
||||||
proc pixbuf_saturate_and_pixelate*(src: PPixbuf, dest: PPixbuf,
|
proc saturate_and_pixelate*(src: PPixbuf, dest: PPixbuf,
|
||||||
saturation: gfloat, pixelate: gboolean){.
|
saturation: gfloat, pixelate: gboolean){.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_saturate_and_pixelate".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_saturate_and_pixelate".}
|
||||||
proc pixbuf_scale*(src: PPixbuf, dest: PPixbuf, dest_x: int32, dest_y: int32,
|
proc scale*(src: PPixbuf, dest: PPixbuf, dest_x: int32, dest_y: int32,
|
||||||
dest_width: int32, dest_height: int32, offset_x: float64,
|
dest_width: int32, dest_height: int32, offset_x: float64,
|
||||||
offset_y: float64, scale_x: float64, scale_y: float64,
|
offset_y: float64, scale_x: float64, scale_y: float64,
|
||||||
interp_type: TInterpType){.cdecl, dynlib: pixbuflib,
|
interp_type: TInterpType){.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_scale".}
|
importc: "gdk_pixbuf_scale".}
|
||||||
proc pixbuf_composite*(src: PPixbuf, dest: PPixbuf, dest_x: int32,
|
proc composite*(src: PPixbuf, dest: PPixbuf, dest_x: int32,
|
||||||
dest_y: int32, dest_width: int32, dest_height: int32,
|
dest_y: int32, dest_width: int32, dest_height: int32,
|
||||||
offset_x: float64, offset_y: float64, scale_x: float64,
|
offset_x: float64, offset_y: float64, scale_x: float64,
|
||||||
scale_y: float64, interp_type: TInterpType,
|
scale_y: float64, interp_type: TInterpType,
|
||||||
overall_alpha: int32){.cdecl, dynlib: pixbuflib,
|
overall_alpha: int32){.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_composite".}
|
importc: "gdk_pixbuf_composite".}
|
||||||
proc pixbuf_composite_color*(src: PPixbuf, dest: PPixbuf, dest_x: int32,
|
proc composite_color*(src: PPixbuf, dest: PPixbuf, dest_x: int32,
|
||||||
dest_y: int32, dest_width: int32,
|
dest_y: int32, dest_width: int32,
|
||||||
dest_height: int32, offset_x: float64,
|
dest_height: int32, offset_x: float64,
|
||||||
offset_y: float64, scale_x: float64,
|
offset_y: float64, scale_x: float64,
|
||||||
|
|
@ -139,10 +139,10 @@ proc pixbuf_composite_color*(src: PPixbuf, dest: PPixbuf, dest_x: int32,
|
||||||
check_y: int32, check_size: int32, color1: guint32,
|
check_y: int32, check_size: int32, color1: guint32,
|
||||||
color2: guint32){.cdecl, dynlib: pixbuflib,
|
color2: guint32){.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_composite_color".}
|
importc: "gdk_pixbuf_composite_color".}
|
||||||
proc pixbuf_scale_simple*(src: PPixbuf, dest_width: int32, dest_height: int32,
|
proc scale_simple*(src: PPixbuf, dest_width: int32, dest_height: int32,
|
||||||
interp_type: TInterpType): PPixbuf{.cdecl,
|
interp_type: TInterpType): PPixbuf{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_scale_simple".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_scale_simple".}
|
||||||
proc pixbuf_composite_color_simple*(src: PPixbuf, dest_width: int32,
|
proc composite_color_simple*(src: PPixbuf, dest_width: int32,
|
||||||
dest_height: int32,
|
dest_height: int32,
|
||||||
interp_type: TInterpType,
|
interp_type: TInterpType,
|
||||||
overall_alpha: int32, check_size: int32,
|
overall_alpha: int32, check_size: int32,
|
||||||
|
|
@ -157,29 +157,29 @@ when not defined(PIXBUF_DISABLE_DEPRECATED):
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_ref".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_ref".}
|
||||||
proc pixbuf_animation_unref*(animation: PPixbufAnimation){.cdecl,
|
proc pixbuf_animation_unref*(animation: PPixbufAnimation){.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_animation_unref".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_animation_unref".}
|
||||||
proc pixbuf_animation_get_width*(animation: PPixbufAnimation): int32{.cdecl,
|
proc get_width*(animation: PPixbufAnimation): int32{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_width".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_width".}
|
||||||
proc pixbuf_animation_get_height*(animation: PPixbufAnimation): int32{.cdecl,
|
proc get_height*(animation: PPixbufAnimation): int32{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_height".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_height".}
|
||||||
proc pixbuf_animation_is_static_image*(animation: PPixbufAnimation): gboolean{.
|
proc is_static_image*(animation: PPixbufAnimation): gboolean{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_is_static_image".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_is_static_image".}
|
||||||
proc pixbuf_animation_get_static_image*(animation: PPixbufAnimation): PPixbuf{.
|
proc get_static_image*(animation: PPixbufAnimation): PPixbuf{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_static_image".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_static_image".}
|
||||||
proc pixbuf_animation_get_iter*(animation: PPixbufAnimation, e: var TGTimeVal): PPixbufAnimationIter{.
|
proc get_iter*(animation: PPixbufAnimation, e: var TGTimeVal): PPixbufAnimationIter{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_iter".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_get_iter".}
|
||||||
proc pixbuf_animation_iter_get_type*(): GType{.cdecl, dynlib: pixbuflib,
|
proc pixbuf_animation_iter_get_type*(): GType{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_animation_iter_get_type".}
|
importc: "gdk_pixbuf_animation_iter_get_type".}
|
||||||
proc pixbuf_animation_iter_get_delay_time*(iter: PPixbufAnimationIter): int32{.
|
proc iter_get_delay_time*(iter: PPixbufAnimationIter): int32{.
|
||||||
cdecl, dynlib: pixbuflib,
|
cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_animation_iter_get_delay_time".}
|
importc: "gdk_pixbuf_animation_iter_get_delay_time".}
|
||||||
proc pixbuf_animation_iter_get_pixbuf*(iter: PPixbufAnimationIter): PPixbuf{.
|
proc iter_get_pixbuf*(iter: PPixbufAnimationIter): PPixbuf{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_iter_get_pixbuf".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_iter_get_pixbuf".}
|
||||||
proc pixbuf_animation_iter_on_currently_loading_frame*(
|
proc pixbuf_animation_iter_on_currently_loading_frame*(
|
||||||
iter: PPixbufAnimationIter): gboolean{.cdecl, dynlib: pixbuflib,
|
iter: PPixbufAnimationIter): gboolean{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_animation_iter_on_currently_loading_frame".}
|
importc: "gdk_pixbuf_animation_iter_on_currently_loading_frame".}
|
||||||
proc pixbuf_animation_iter_advance*(iter: PPixbufAnimationIter, e: var TGTimeVal): gboolean{.
|
proc iter_advance*(iter: PPixbufAnimationIter, e: var TGTimeVal): gboolean{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_iter_advance".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_animation_iter_advance".}
|
||||||
proc pixbuf_get_option*(pixbuf: PPixbuf, key: cstring): cstring{.cdecl,
|
proc get_option*(pixbuf: PPixbuf, key: cstring): cstring{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_get_option".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_get_option".}
|
||||||
type
|
type
|
||||||
PPixbufLoader* = ptr TPixbufLoader
|
PPixbufLoader* = ptr TPixbufLoader
|
||||||
|
|
@ -208,14 +208,14 @@ proc pixbuf_loader_new*(): PPixbufLoader{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_loader_new".}
|
importc: "gdk_pixbuf_loader_new".}
|
||||||
proc pixbuf_loader_new_with_type*(image_type: cstring, error: pointer): PPixbufLoader{.
|
proc pixbuf_loader_new_with_type*(image_type: cstring, error: pointer): PPixbufLoader{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_loader_new_with_type".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_loader_new_with_type".}
|
||||||
proc pixbuf_loader_write*(loader: PPixbufLoader, buf: Pguchar, count: gsize,
|
proc write*(loader: PPixbufLoader, buf: Pguchar, count: gsize,
|
||||||
error: pointer): gboolean{.cdecl, dynlib: pixbuflib,
|
error: pointer): gboolean{.cdecl, dynlib: pixbuflib,
|
||||||
importc: "gdk_pixbuf_loader_write".}
|
importc: "gdk_pixbuf_loader_write".}
|
||||||
proc pixbuf_loader_get_pixbuf*(loader: PPixbufLoader): PPixbuf{.cdecl,
|
proc get_pixbuf*(loader: PPixbufLoader): PPixbuf{.cdecl,
|
||||||
dynlib: pixbuflib, importc: "gdk_pixbuf_loader_get_pixbuf".}
|
dynlib: pixbuflib, importc: "gdk_pixbuf_loader_get_pixbuf".}
|
||||||
proc pixbuf_loader_get_animation*(loader: PPixbufLoader): PPixbufAnimation{.
|
proc get_animation*(loader: PPixbufLoader): PPixbufAnimation{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_loader_get_animation".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_loader_get_animation".}
|
||||||
proc pixbuf_loader_close*(loader: PPixbufLoader, error: pointer): gboolean{.
|
proc close*(loader: PPixbufLoader, error: pointer): gboolean{.
|
||||||
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_loader_close".}
|
cdecl, dynlib: pixbuflib, importc: "gdk_pixbuf_loader_close".}
|
||||||
proc TYPE_PIXBUF_LOADER*(): GType =
|
proc TYPE_PIXBUF_LOADER*(): GType =
|
||||||
result = pixbuf_loader_get_type()
|
result = pixbuf_loader_get_type()
|
||||||
|
|
|
||||||
|
|
@ -287,35 +287,35 @@ proc IS_GL_CONFIG_CLASS*(klass: Pointer): bool
|
||||||
proc GL_CONFIG_GET_CLASS*(obj: Pointer): PGLConfigClass
|
proc GL_CONFIG_GET_CLASS*(obj: Pointer): PGLConfigClass
|
||||||
proc gl_config_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
proc gl_config_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_config_get_type".}
|
importc: "gdk_gl_config_get_type".}
|
||||||
proc gl_config_get_screen*(glconfig: PGLConfig): PScreen{.cdecl,
|
proc get_screen*(glconfig: PGLConfig): PScreen{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_get_screen".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_get_screen".}
|
||||||
proc gl_config_get_attrib*(glconfig: PGLConfig, attribute: int, value: var cint): gboolean{.
|
proc get_attrib*(glconfig: PGLConfig, attribute: int, value: var cint): gboolean{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_config_get_attrib".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_config_get_attrib".}
|
||||||
proc gl_config_get_colormap*(glconfig: PGLConfig): PColormap{.cdecl,
|
proc get_colormap*(glconfig: PGLConfig): PColormap{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_get_colormap".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_get_colormap".}
|
||||||
proc gl_config_get_visual*(glconfig: PGLConfig): PVisual{.cdecl,
|
proc get_visual*(glconfig: PGLConfig): PVisual{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_get_visual".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_get_visual".}
|
||||||
proc gl_config_get_depth*(glconfig: PGLConfig): gint{.cdecl, dynlib: GLExtLib,
|
proc get_depth*(glconfig: PGLConfig): gint{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_config_get_depth".}
|
importc: "gdk_gl_config_get_depth".}
|
||||||
proc gl_config_get_layer_plane*(glconfig: PGLConfig): gint{.cdecl,
|
proc get_layer_plane*(glconfig: PGLConfig): gint{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_get_layer_plane".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_get_layer_plane".}
|
||||||
proc gl_config_get_n_aux_buffers*(glconfig: PGLConfig): gint{.cdecl,
|
proc get_n_aux_buffers*(glconfig: PGLConfig): gint{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_get_n_aux_buffers".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_get_n_aux_buffers".}
|
||||||
proc gl_config_get_n_sample_buffers*(glconfig: PGLConfig): gint{.cdecl,
|
proc get_n_sample_buffers*(glconfig: PGLConfig): gint{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_get_n_sample_buffers".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_get_n_sample_buffers".}
|
||||||
proc gl_config_is_rgba*(glconfig: PGLConfig): gboolean{.cdecl, dynlib: GLExtLib,
|
proc is_rgba*(glconfig: PGLConfig): gboolean{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_config_is_rgba".}
|
importc: "gdk_gl_config_is_rgba".}
|
||||||
proc gl_config_is_double_buffered*(glconfig: PGLConfig): gboolean{.cdecl,
|
proc is_double_buffered*(glconfig: PGLConfig): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_is_double_buffered".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_is_double_buffered".}
|
||||||
proc gl_config_is_stereo*(glconfig: PGLConfig): gboolean{.cdecl,
|
proc is_stereo*(glconfig: PGLConfig): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_is_stereo".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_is_stereo".}
|
||||||
proc gl_config_has_alpha*(glconfig: PGLConfig): gboolean{.cdecl,
|
proc has_alpha*(glconfig: PGLConfig): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_has_alpha".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_has_alpha".}
|
||||||
proc gl_config_has_depth_buffer*(glconfig: PGLConfig): gboolean{.cdecl,
|
proc has_depth_buffer*(glconfig: PGLConfig): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_has_depth_buffer".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_has_depth_buffer".}
|
||||||
proc gl_config_has_stencil_buffer*(glconfig: PGLConfig): gboolean{.cdecl,
|
proc has_stencil_buffer*(glconfig: PGLConfig): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_has_stencil_buffer".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_has_stencil_buffer".}
|
||||||
proc gl_config_has_accum_buffer*(glconfig: PGLConfig): gboolean{.cdecl,
|
proc has_accum_buffer*(glconfig: PGLConfig): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_config_has_accum_buffer".}
|
dynlib: GLExtLib, importc: "gdk_gl_config_has_accum_buffer".}
|
||||||
proc TYPE_GL_CONTEXT*(): GType
|
proc TYPE_GL_CONTEXT*(): GType
|
||||||
proc GL_CONTEXT*(anObject: Pointer): PGLContext
|
proc GL_CONTEXT*(anObject: Pointer): PGLContext
|
||||||
|
|
@ -325,22 +325,22 @@ proc IS_GL_CONTEXT_CLASS*(klass: Pointer): bool
|
||||||
proc GL_CONTEXT_GET_CLASS*(obj: Pointer): PGLContextClass
|
proc GL_CONTEXT_GET_CLASS*(obj: Pointer): PGLContextClass
|
||||||
proc gl_context_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
proc gl_context_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_context_get_type".}
|
importc: "gdk_gl_context_get_type".}
|
||||||
proc gl_context_new*(gldrawable: PGLDrawable, share_list: PGLContext,
|
proc context_new*(gldrawable: PGLDrawable, share_list: PGLContext,
|
||||||
direct: gboolean, render_type: int32): PGLContext{.cdecl,
|
direct: gboolean, render_type: int32): PGLContext{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_context_new".}
|
dynlib: GLExtLib, importc: "gdk_gl_context_new".}
|
||||||
proc gl_context_destroy*(glcontext: PGLContext){.cdecl, dynlib: GLExtLib,
|
proc destroy*(glcontext: PGLContext){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_context_destroy".}
|
importc: "gdk_gl_context_destroy".}
|
||||||
proc gl_context_copy*(glcontext: PGLContext, src: PGLContext, mask: int32): gboolean{.
|
proc copy*(glcontext: PGLContext, src: PGLContext, mask: int32): gboolean{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_context_copy".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_context_copy".}
|
||||||
proc gl_context_get_gl_drawable*(glcontext: PGLContext): PGLDrawable{.cdecl,
|
proc get_gl_drawable*(glcontext: PGLContext): PGLDrawable{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_context_get_gl_drawable".}
|
dynlib: GLExtLib, importc: "gdk_gl_context_get_gl_drawable".}
|
||||||
proc gl_context_get_gl_config*(glcontext: PGLContext): PGLConfig{.cdecl,
|
proc get_gl_config*(glcontext: PGLContext): PGLConfig{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_context_get_gl_config".}
|
dynlib: GLExtLib, importc: "gdk_gl_context_get_gl_config".}
|
||||||
proc gl_context_get_share_list*(glcontext: PGLContext): PGLContext{.cdecl,
|
proc get_share_list*(glcontext: PGLContext): PGLContext{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_context_get_share_list".}
|
dynlib: GLExtLib, importc: "gdk_gl_context_get_share_list".}
|
||||||
proc gl_context_is_direct*(glcontext: PGLContext): gboolean{.cdecl,
|
proc is_direct*(glcontext: PGLContext): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_context_is_direct".}
|
dynlib: GLExtLib, importc: "gdk_gl_context_is_direct".}
|
||||||
proc gl_context_get_render_type*(glcontext: PGLContext): int32{.cdecl,
|
proc get_render_type*(glcontext: PGLContext): int32{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_context_get_render_type".}
|
dynlib: GLExtLib, importc: "gdk_gl_context_get_render_type".}
|
||||||
proc gl_context_get_current*(): PGLContext{.cdecl, dynlib: GLExtLib,
|
proc gl_context_get_current*(): PGLContext{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_context_get_current".}
|
importc: "gdk_gl_context_get_current".}
|
||||||
|
|
@ -352,23 +352,23 @@ proc IS_GL_DRAWABLE_CLASS*(vtable: Pointer): bool
|
||||||
proc GL_DRAWABLE_GET_CLASS*(inst: Pointer): PGLDrawableClass
|
proc GL_DRAWABLE_GET_CLASS*(inst: Pointer): PGLDrawableClass
|
||||||
proc gl_drawable_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
proc gl_drawable_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_drawable_get_type".}
|
importc: "gdk_gl_drawable_get_type".}
|
||||||
proc gl_drawable_make_current*(gldrawable: PGLDrawable, glcontext: PGLContext): gboolean{.
|
proc make_current*(gldrawable: PGLDrawable, glcontext: PGLContext): gboolean{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_drawable_make_current".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_drawable_make_current".}
|
||||||
proc gl_drawable_is_double_buffered*(gldrawable: PGLDrawable): gboolean{.cdecl,
|
proc is_double_buffered*(gldrawable: PGLDrawable): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_drawable_is_double_buffered".}
|
dynlib: GLExtLib, importc: "gdk_gl_drawable_is_double_buffered".}
|
||||||
proc gl_drawable_swap_buffers*(gldrawable: PGLDrawable){.cdecl,
|
proc swap_buffers*(gldrawable: PGLDrawable){.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_drawable_swap_buffers".}
|
dynlib: GLExtLib, importc: "gdk_gl_drawable_swap_buffers".}
|
||||||
proc gl_drawable_wait_gl*(gldrawable: PGLDrawable){.cdecl, dynlib: GLExtLib,
|
proc wait_gl*(gldrawable: PGLDrawable){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_drawable_wait_gl".}
|
importc: "gdk_gl_drawable_wait_gl".}
|
||||||
proc gl_drawable_wait_gdk*(gldrawable: PGLDrawable){.cdecl, dynlib: GLExtLib,
|
proc wait_gdk*(gldrawable: PGLDrawable){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_drawable_wait_gdk".}
|
importc: "gdk_gl_drawable_wait_gdk".}
|
||||||
proc gl_drawable_gl_begin*(gldrawable: PGLDrawable, glcontext: PGLContext): gboolean{.
|
proc gl_begin*(gldrawable: PGLDrawable, glcontext: PGLContext): gboolean{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_drawable_gl_begin".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_drawable_gl_begin".}
|
||||||
proc gl_drawable_gl_end*(gldrawable: PGLDrawable){.cdecl, dynlib: GLExtLib,
|
proc gl_end*(gldrawable: PGLDrawable){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_drawable_gl_end".}
|
importc: "gdk_gl_drawable_gl_end".}
|
||||||
proc gl_drawable_get_gl_config*(gldrawable: PGLDrawable): PGLConfig{.cdecl,
|
proc get_gl_config*(gldrawable: PGLDrawable): PGLConfig{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_drawable_get_gl_config".}
|
dynlib: GLExtLib, importc: "gdk_gl_drawable_get_gl_config".}
|
||||||
proc gl_drawable_get_size*(gldrawable: PGLDrawable, width, height: PGInt){.
|
proc get_size*(gldrawable: PGLDrawable, width, height: PGInt){.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_drawable_get_size".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_drawable_get_size".}
|
||||||
proc gl_drawable_get_current*(): PGLDrawable{.cdecl, dynlib: GLExtLib,
|
proc gl_drawable_get_current*(): PGLDrawable{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_drawable_get_current".}
|
importc: "gdk_gl_drawable_get_current".}
|
||||||
|
|
@ -380,22 +380,22 @@ proc IS_GL_PIXMAP_CLASS*(klass: Pointer): bool
|
||||||
proc GL_PIXMAP_GET_CLASS*(obj: Pointer): PGLPixmapClass
|
proc GL_PIXMAP_GET_CLASS*(obj: Pointer): PGLPixmapClass
|
||||||
proc gl_pixmap_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
proc gl_pixmap_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_pixmap_get_type".}
|
importc: "gdk_gl_pixmap_get_type".}
|
||||||
proc gl_pixmap_new*(glconfig: PGLConfig, pixmap: PPixmap, attrib_list: ptr int32): PGLPixmap{.
|
proc pixmap_new*(glconfig: PGLConfig, pixmap: PPixmap, attrib_list: ptr int32): PGLPixmap{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_pixmap_new".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_pixmap_new".}
|
||||||
proc gl_pixmap_destroy*(glpixmap: PGLPixmap){.cdecl, dynlib: GLExtLib,
|
proc destroy*(glpixmap: PGLPixmap){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_pixmap_destroy".}
|
importc: "gdk_gl_pixmap_destroy".}
|
||||||
proc gl_pixmap_get_pixmap*(glpixmap: PGLPixmap): PPixmap{.cdecl,
|
proc get_pixmap*(glpixmap: PGLPixmap): PPixmap{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_pixmap_get_pixmap".}
|
dynlib: GLExtLib, importc: "gdk_gl_pixmap_get_pixmap".}
|
||||||
proc pixmap_set_gl_capability*(pixmap: PPixmap, glconfig: PGLConfig,
|
proc set_gl_capability*(pixmap: PPixmap, glconfig: PGLConfig,
|
||||||
attrib_list: ptr int32): PGLPixmap{.cdecl,
|
attrib_list: ptr int32): PGLPixmap{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_pixmap_set_gl_capability".}
|
dynlib: GLExtLib, importc: "gdk_pixmap_set_gl_capability".}
|
||||||
proc pixmap_unset_gl_capability*(pixmap: PPixmap){.cdecl, dynlib: GLExtLib,
|
proc unset_gl_capability*(pixmap: PPixmap){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_pixmap_unset_gl_capability".}
|
importc: "gdk_pixmap_unset_gl_capability".}
|
||||||
proc pixmap_is_gl_capable*(pixmap: PPixmap): gboolean{.cdecl, dynlib: GLExtLib,
|
proc is_gl_capable*(pixmap: PPixmap): gboolean{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_pixmap_is_gl_capable".}
|
importc: "gdk_pixmap_is_gl_capable".}
|
||||||
proc pixmap_get_gl_pixmap*(pixmap: PPixmap): PGLPixmap{.cdecl, dynlib: GLExtLib,
|
proc get_gl_pixmap*(pixmap: PPixmap): PGLPixmap{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_pixmap_get_gl_pixmap".}
|
importc: "gdk_pixmap_get_gl_pixmap".}
|
||||||
proc pixmap_get_gl_drawable*(pixmap: PPixmap): PGLDrawable
|
proc get_gl_drawable*(pixmap: PPixmap): PGLDrawable
|
||||||
proc TYPE_GL_WINDOW*(): GType
|
proc TYPE_GL_WINDOW*(): GType
|
||||||
proc GL_WINDOW*(anObject: Pointer): PGLWindow
|
proc GL_WINDOW*(anObject: Pointer): PGLWindow
|
||||||
proc GL_WINDOW_CLASS*(klass: Pointer): PGLWindowClass
|
proc GL_WINDOW_CLASS*(klass: Pointer): PGLWindowClass
|
||||||
|
|
@ -404,22 +404,22 @@ proc IS_GL_WINDOW_CLASS*(klass: Pointer): bool
|
||||||
proc GL_WINDOW_GET_CLASS*(obj: Pointer): PGLWindowClass
|
proc GL_WINDOW_GET_CLASS*(obj: Pointer): PGLWindowClass
|
||||||
proc gl_window_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
proc gl_window_get_type*(): GType{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_window_get_type".}
|
importc: "gdk_gl_window_get_type".}
|
||||||
proc gl_window_new*(glconfig: PGLConfig, window: PWindow, attrib_list: ptr int32): PGLWindow{.
|
proc window_new*(glconfig: PGLConfig, window: PWindow, attrib_list: ptr int32): PGLWindow{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gdk_gl_window_new".}
|
cdecl, dynlib: GLExtLib, importc: "gdk_gl_window_new".}
|
||||||
proc gl_window_destroy*(glwindow: PGLWindow){.cdecl, dynlib: GLExtLib,
|
proc destroy*(glwindow: PGLWindow){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_window_destroy".}
|
importc: "gdk_gl_window_destroy".}
|
||||||
proc gl_window_get_window*(glwindow: PGLWindow): PWindow{.cdecl,
|
proc get_window*(glwindow: PGLWindow): PWindow{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_gl_window_get_window".}
|
dynlib: GLExtLib, importc: "gdk_gl_window_get_window".}
|
||||||
proc window_set_gl_capability*(window: PWindow, glconfig: PGLConfig,
|
proc set_gl_capability*(window: PWindow, glconfig: PGLConfig,
|
||||||
attrib_list: ptr int32): PGLWindow{.cdecl,
|
attrib_list: ptr int32): PGLWindow{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gdk_window_set_gl_capability".}
|
dynlib: GLExtLib, importc: "gdk_window_set_gl_capability".}
|
||||||
proc window_unset_gl_capability*(window: PWindow){.cdecl, dynlib: GLExtLib,
|
proc unset_gl_capability*(window: PWindow){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_window_unset_gl_capability".}
|
importc: "gdk_window_unset_gl_capability".}
|
||||||
proc window_is_gl_capable*(window: PWindow): gboolean{.cdecl, dynlib: GLExtLib,
|
proc is_gl_capable*(window: PWindow): gboolean{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_window_is_gl_capable".}
|
importc: "gdk_window_is_gl_capable".}
|
||||||
proc window_get_gl_window*(window: PWindow): PGLWindow{.cdecl, dynlib: GLExtLib,
|
proc get_gl_window*(window: PWindow): PGLWindow{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_window_get_gl_window".}
|
importc: "gdk_window_get_gl_window".}
|
||||||
proc window_get_gl_drawable*(window: PWindow): PGLDrawable
|
proc get_gl_drawable*(window: PWindow): PGLDrawable
|
||||||
proc gl_draw_cube*(solid: gboolean, size: float64){.cdecl, dynlib: GLExtLib,
|
proc gl_draw_cube*(solid: gboolean, size: float64){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gdk_gl_draw_cube".}
|
importc: "gdk_gl_draw_cube".}
|
||||||
proc gl_draw_sphere*(solid: gboolean, radius: float64, slices: int32,
|
proc gl_draw_sphere*(solid: gboolean, radius: float64, slices: int32,
|
||||||
|
|
@ -526,8 +526,8 @@ proc IS_GL_PIXMAP_CLASS*(klass: Pointer): bool =
|
||||||
proc GL_PIXMAP_GET_CLASS*(obj: Pointer): PGLPixmapClass =
|
proc GL_PIXMAP_GET_CLASS*(obj: Pointer): PGLPixmapClass =
|
||||||
result = cast[PGLPixmapClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_GL_PIXMAP()))
|
result = cast[PGLPixmapClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_GL_PIXMAP()))
|
||||||
|
|
||||||
proc pixmap_get_gl_drawable*(pixmap: PPixmap): PGLDrawable =
|
proc get_gl_drawable*(pixmap: PPixmap): PGLDrawable =
|
||||||
result = GL_DRAWABLE(pixmap_get_gl_pixmap(pixmap))
|
result = GL_DRAWABLE(get_gl_pixmap(pixmap))
|
||||||
|
|
||||||
proc TYPE_GL_WINDOW*(): GType =
|
proc TYPE_GL_WINDOW*(): GType =
|
||||||
result = gl_window_get_type()
|
result = gl_window_get_type()
|
||||||
|
|
@ -547,5 +547,5 @@ proc IS_GL_WINDOW_CLASS*(klass: Pointer): bool =
|
||||||
proc GL_WINDOW_GET_CLASS*(obj: Pointer): PGLWindowClass =
|
proc GL_WINDOW_GET_CLASS*(obj: Pointer): PGLWindowClass =
|
||||||
result = cast[PGLWindowClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_GL_WINDOW()))
|
result = cast[PGLWindowClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_GL_WINDOW()))
|
||||||
|
|
||||||
proc window_get_gl_drawable*(window: PWindow): PGLDrawable =
|
proc get_gl_drawable*(window: PWindow): PGLDrawable =
|
||||||
result = GL_DRAWABLE(window_get_gl_window(window))
|
result = GL_DRAWABLE(get_gl_window(window))
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -12,29 +12,27 @@ const
|
||||||
HEADER_GTKGLEXT_INTERFACE_AGE* = 4
|
HEADER_GTKGLEXT_INTERFACE_AGE* = 4
|
||||||
HEADER_GTKGLEXT_BINARY_AGE* = 6
|
HEADER_GTKGLEXT_BINARY_AGE* = 6
|
||||||
|
|
||||||
proc gl_parse_args*(argc: Plongint, argv: PPPChar): gboolean{.cdecl,
|
proc gl_parse_args*(argc: ptr int32, argv: PPPChar): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gtk_gl_parse_args".}
|
dynlib: GLExtLib, importc: "gtk_gl_parse_args".}
|
||||||
proc gl_init_check*(argc: Plongint, argv: PPPChar): gboolean{.cdecl,
|
proc gl_init_check*(argc: ptr int32, argv: PPPChar): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gtk_gl_init_check".}
|
dynlib: GLExtLib, importc: "gtk_gl_init_check".}
|
||||||
proc gl_init*(argc: Plongint, argv: PPPChar){.cdecl, dynlib: GLExtLib,
|
proc gl_init*(argc: ptr int32, argv: PPPChar){.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gtk_gl_init".}
|
importc: "gtk_gl_init".}
|
||||||
proc widget_set_gl_capability*(widget: PWidget, glconfig: PGdkGLConfig,
|
proc set_gl_capability*(widget: PWidget, glconfig: PGLConfig,
|
||||||
share_list: PGdkGLContext, direct: gboolean,
|
share_list: PGLContext, direct: gboolean,
|
||||||
render_type: int): gboolean{.cdecl,
|
render_type: int): gboolean{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gtk_widget_set_gl_capability".}
|
dynlib: GLExtLib, importc: "gtk_widget_set_gl_capability".}
|
||||||
proc widget_is_gl_capable*(widget: PWidget): gboolean{.cdecl, dynlib: GLExtLib,
|
proc is_gl_capable*(widget: PWidget): gboolean{.cdecl, dynlib: GLExtLib,
|
||||||
importc: "gtk_widget_is_gl_capable".}
|
importc: "gtk_widget_is_gl_capable".}
|
||||||
proc widget_get_gl_config*(widget: PWidget): PGdkGLConfig{.cdecl,
|
proc get_gl_config*(widget: PWidget): PGLConfig{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gtk_widget_get_gl_config".}
|
dynlib: GLExtLib, importc: "gtk_widget_get_gl_config".}
|
||||||
proc widget_create_gl_context*(widget: PWidget, share_list: PGdkGLContext,
|
proc create_gl_context*(widget: PWidget, share_list: PGLContext,
|
||||||
direct: gboolean, render_type: int): PGdkGLContext{.
|
direct: gboolean, render_type: int): PGLContext{.
|
||||||
cdecl, dynlib: GLExtLib, importc: "gtk_widget_create_gl_context".}
|
cdecl, dynlib: GLExtLib, importc: "gtk_widget_create_gl_context".}
|
||||||
proc widget_get_gl_context*(widget: PWidget): PGdkGLContext{.cdecl,
|
proc get_gl_context*(widget: PWidget): PGLContext{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gtk_widget_get_gl_context".}
|
dynlib: GLExtLib, importc: "gtk_widget_get_gl_context".}
|
||||||
proc widget_get_gl_window*(widget: PWidget): PGdkGLWindow{.cdecl,
|
proc get_gl_window*(widget: PWidget): PGLWindow{.cdecl,
|
||||||
dynlib: GLExtLib, importc: "gtk_widget_get_gl_window".}
|
dynlib: GLExtLib, importc: "gtk_widget_get_gl_window".}
|
||||||
proc widget_get_gl_drawable*(widget: PWidget): PGdkGLDrawable =
|
|
||||||
nil
|
|
||||||
|
|
||||||
proc HEADER_GTKGLEXT_CHECK_VERSION*(major, minor, micro: guint): bool =
|
proc HEADER_GTKGLEXT_CHECK_VERSION*(major, minor, micro: guint): bool =
|
||||||
result = (HEADER_GTKGLEXT_MAJOR_VERSION > major) or
|
result = (HEADER_GTKGLEXT_MAJOR_VERSION > major) or
|
||||||
|
|
@ -44,5 +42,5 @@ proc HEADER_GTKGLEXT_CHECK_VERSION*(major, minor, micro: guint): bool =
|
||||||
(HEADER_GTKGLEXT_MINOR_VERSION == minor) and
|
(HEADER_GTKGLEXT_MINOR_VERSION == minor) and
|
||||||
(HEADER_GTKGLEXT_MICRO_VERSION >= micro))
|
(HEADER_GTKGLEXT_MICRO_VERSION >= micro))
|
||||||
|
|
||||||
proc widget_get_gl_drawable*(widget: PWidget): PGdkGLDrawable =
|
proc get_gl_drawable*(widget: PWidget): PGLDrawable =
|
||||||
result = GDK_GL_DRAWABLE(widget_get_gl_window(widget))
|
result = GL_DRAWABLE(get_gl_window(widget))
|
||||||
|
|
|
||||||
|
|
@ -39,19 +39,20 @@ const
|
||||||
DOM_DOCUMENT_TYPE_NODE* = 10
|
DOM_DOCUMENT_TYPE_NODE* = 10
|
||||||
DOM_DOCUMENT_FRAGMENT_NODE* = 11
|
DOM_DOCUMENT_FRAGMENT_NODE* = 11
|
||||||
DOM_NOTATION_NODE* = 12
|
DOM_NOTATION_NODE* = 12
|
||||||
bm__HtmlFontSpecification_weight* = 0x0000000F
|
bm_HtmlFontSpecification_weight* = 0x0000000F
|
||||||
bp__HtmlFontSpecification_weight* = 0
|
bp_HtmlFontSpecification_weight* = 0
|
||||||
bm__HtmlFontSpecification_style* = 0x00000030
|
bm_HtmlFontSpecification_style* = 0x00000030
|
||||||
bp__HtmlFontSpecification_style* = 4
|
bp_HtmlFontSpecification_style* = 4
|
||||||
bm__HtmlFontSpecification_variant* = 0x000000C0
|
bm_HtmlFontSpecification_variant* = 0x000000C0
|
||||||
bp__HtmlFontSpecification_variant* = 6
|
bp_HtmlFontSpecification_variant* = 6
|
||||||
bm__HtmlFontSpecification_stretch* = 0x00000F00
|
bm_HtmlFontSpecification_stretch* = 0x00000F00
|
||||||
bp__HtmlFontSpecification_stretch* = 8
|
bp_HtmlFontSpecification_stretch* = 8
|
||||||
bm__HtmlFontSpecification_decoration* = 0x00007000
|
bm_HtmlFontSpecification_decoration* = 0x00007000
|
||||||
bp__HtmlFontSpecification_decoration* = 12
|
bp_HtmlFontSpecification_decoration* = 12
|
||||||
|
|
||||||
type
|
type
|
||||||
TDomString* = gchar
|
TDomString* = gchar
|
||||||
|
PDomString* = cstring
|
||||||
TDomBoolean* = gboolean
|
TDomBoolean* = gboolean
|
||||||
TDomException* = gushort
|
TDomException* = gushort
|
||||||
TDomTimeStamp* = guint64
|
TDomTimeStamp* = guint64
|
||||||
|
|
@ -60,6 +61,8 @@ type
|
||||||
xmlnode*: pointer
|
xmlnode*: pointer
|
||||||
style*: pointer
|
style*: pointer
|
||||||
|
|
||||||
|
PDomException* = ptr TDomException
|
||||||
|
|
||||||
PDomNodeClass* = ptr TDomNodeClass
|
PDomNodeClass* = ptr TDomNodeClass
|
||||||
TDomNodeClass* = object of TGObjectClass
|
TDomNodeClass* = object of TGObjectClass
|
||||||
`get_nodeName`*: proc (node: PDomNode): PDomString{.cdecl.}
|
`get_nodeName`*: proc (node: PDomNode): PDomString{.cdecl.}
|
||||||
|
|
@ -91,21 +94,21 @@ type
|
||||||
parser_type*: THtmlParserType
|
parser_type*: THtmlParserType
|
||||||
document*: PHtmlDocument
|
document*: PHtmlDocument
|
||||||
stream*: PHtmlStream
|
stream*: PHtmlStream
|
||||||
xmlctxt*: xmlParserCtxtPtr
|
xmlctxt*: pointer
|
||||||
res*: int32
|
res*: int32
|
||||||
chars*: array[0..9, char]
|
chars*: array[0..9, char]
|
||||||
blocking*: gboolean
|
blocking*: gboolean
|
||||||
blocking_node*: PDomNode
|
blocking_node*: PDomNode
|
||||||
|
|
||||||
PHtmlParserClass* = ptr THtmlParserClass
|
PHtmlParserClass* = ptr THtmlParserClass
|
||||||
THtmlParserClass* = object of TObjectClass
|
THtmlParserClass* = object of gtk2.TObjectClass
|
||||||
done_parsing*: proc (parser: PHtmlParser){.cdecl.}
|
done_parsing*: proc (parser: PHtmlParser){.cdecl.}
|
||||||
new_node*: proc (parser: PHtmlParser, node: PDomNode)
|
new_node*: proc (parser: PHtmlParser, node: PDomNode)
|
||||||
parsed_document_node*: proc (parser: PHtmlParser, document: PDomDocument)
|
parsed_document_node*: proc (parser: PHtmlParser, document: PDomDocument)
|
||||||
|
|
||||||
PHtmlStream* = ptr THtmlStream
|
PHtmlStream* = ptr THtmlStream
|
||||||
THtmlStreamCloseFunc* = proc (stream: PHtmlStream, user_data: gpointer){.cdecl.}
|
THtmlStreamCloseFunc* = proc (stream: PHtmlStream, user_data: gpointer){.cdecl.}
|
||||||
THtmlStreamWriteFunc* = proc (stream: PHtmlStream, buffer: Pgchar,
|
THtmlStreamWriteFunc* = proc (stream: PHtmlStream, buffer: cstring,
|
||||||
size: guint, user_data: gpointer){.cdecl.}
|
size: guint, user_data: gpointer){.cdecl.}
|
||||||
THtmlStreamCancelFunc* = proc (stream: PHtmlStream, user_data: gpointer,
|
THtmlStreamCancelFunc* = proc (stream: PHtmlStream, user_data: gpointer,
|
||||||
cancel_data: gpointer){.cdecl.}
|
cancel_data: gpointer){.cdecl.}
|
||||||
|
|
@ -120,7 +123,7 @@ type
|
||||||
|
|
||||||
PHtmlStreamClass* = ptr THtmlStreamClass
|
PHtmlStreamClass* = ptr THtmlStreamClass
|
||||||
THtmlStreamClass* = object of TGObjectClass
|
THtmlStreamClass* = object of TGObjectClass
|
||||||
THtmlStreamBufferCloseFunc* = proc (str: Pgchar, len: gint,
|
THtmlStreamBufferCloseFunc* = proc (str: cstring, len: gint,
|
||||||
user_data: gpointer){.cdecl.}
|
user_data: gpointer){.cdecl.}
|
||||||
PHtmlContext* = ptr THtmlContext
|
PHtmlContext* = ptr THtmlContext
|
||||||
THtmlContext* = object of TGObject
|
THtmlContext* = object of TGObject
|
||||||
|
|
@ -128,6 +131,9 @@ type
|
||||||
standard_font*: PHtmlFontSpecification
|
standard_font*: PHtmlFontSpecification
|
||||||
fixed_font*: PHtmlFontSpecification
|
fixed_font*: PHtmlFontSpecification
|
||||||
debug_painting*: gboolean
|
debug_painting*: gboolean
|
||||||
|
|
||||||
|
PHtmlFontSpecification* = ptr THtmlFontSpecification
|
||||||
|
THtmlFontSpecification {.final, pure.} = object
|
||||||
|
|
||||||
PHtmlContextClass* = ptr THtmlContextClass
|
PHtmlContextClass* = ptr THtmlContextClass
|
||||||
THtmlContextClass* = object of TGObjectClass
|
THtmlContextClass* = object of TGObjectClass
|
||||||
|
|
@ -141,16 +147,16 @@ type
|
||||||
|
|
||||||
PHtmlDocumentClass* = ptr THtmlDocumentClass
|
PHtmlDocumentClass* = ptr THtmlDocumentClass
|
||||||
THtmlDocumentClass* = object of TGObjectClass
|
THtmlDocumentClass* = object of TGObjectClass
|
||||||
request_url*: proc (document: PHtmlDocument, url: Pgchar,
|
request_url*: proc (document: PHtmlDocument, url: cstring,
|
||||||
stream: PHtmlStream){.cdecl.}
|
stream: PHtmlStream){.cdecl.}
|
||||||
link_clicked*: proc (document: PHtmlDocument, url: Pgchar){.cdecl.}
|
link_clicked*: proc (document: PHtmlDocument, url: cstring){.cdecl.}
|
||||||
set_base*: proc (document: PHtmlDocument, url: Pgchar){.cdecl.}
|
set_base*: proc (document: PHtmlDocument, url: cstring){.cdecl.}
|
||||||
title_changed*: proc (document: PHtmlDocument, new_title: Pgchar){.cdecl.}
|
title_changed*: proc (document: PHtmlDocument, new_title: cstring){.cdecl.}
|
||||||
submit*: proc (document: PHtmlDocument, `method`: Pgchar, url: Pgchar,
|
submit*: proc (document: PHtmlDocument, `method`: cstring, url: cstring,
|
||||||
encoding: Pgchar){.cdecl.}
|
encoding: cstring){.cdecl.}
|
||||||
|
|
||||||
PHtmlView* = ptr THtmlView
|
PHtmlView* = ptr THtmlView
|
||||||
THtmlView* = object of TLayout
|
THtmlView* = object of gtk2.TLayout
|
||||||
document*: PHtmlDocument
|
document*: PHtmlDocument
|
||||||
node_table*: PGHashTable
|
node_table*: PGHashTable
|
||||||
relayout_idle_id*: guint
|
relayout_idle_id*: guint
|
||||||
|
|
@ -166,18 +172,39 @@ type
|
||||||
sel_backwards*: gboolean
|
sel_backwards*: gboolean
|
||||||
sel_start_found*: gboolean
|
sel_start_found*: gboolean
|
||||||
sel_list*: PGSList
|
sel_list*: PGSList
|
||||||
jump_to_anchor*: pgchar
|
jump_to_anchor*: cstring
|
||||||
magnification*: gdouble
|
magnification*: gdouble
|
||||||
magnification_modified*: gboolean
|
magnification_modified*: gboolean
|
||||||
on_url*: gboolean
|
on_url*: gboolean
|
||||||
|
|
||||||
PHtmlViewClass* = ptr THtmlViewClass
|
PHtmlViewClass* = ptr THtmlViewClass
|
||||||
THtmlViewClass* = object of TLayoutClass
|
THtmlViewClass* = object of gtk2.TLayoutClass
|
||||||
move_cursor*: proc (html_view: PHtmlView, step: TMovementStep, count: gint,
|
move_cursor*: proc (html_view: PHtmlView, step: TMovementStep, count: gint,
|
||||||
extend_selection: gboolean){.cdecl.}
|
extend_selection: gboolean){.cdecl.}
|
||||||
on_url*: proc (html_view: PHtmlView, url: Pgchar)
|
on_url*: proc (html_view: PHtmlView, url: cstring)
|
||||||
activate*: proc (html_view: PHtmlView)
|
activate*: proc (html_view: PHtmlView)
|
||||||
move_focus_out*: proc (html_view: PHtmlView, direction: TDirectionType)
|
move_focus_out*: proc (html_view: PHtmlView, direction: TDirectionType)
|
||||||
|
|
||||||
|
PDomNodeList* = ptr TDomNodeList
|
||||||
|
TDomNodeList {.pure, final.} = object
|
||||||
|
|
||||||
|
PDomNamedNodeMap* = ptr TDomNamedNodeMap
|
||||||
|
TDomNamedNodeMap {.pure, final.} = object
|
||||||
|
|
||||||
|
PDomDocumentType* = ptr TDomDocumentType
|
||||||
|
TDomDocumentType {.pure, final.} = object
|
||||||
|
|
||||||
|
PDomElement* = ptr TDomElement
|
||||||
|
TDomElement = object of TDomNode
|
||||||
|
|
||||||
|
PDomText* = ptr TDomText
|
||||||
|
TDomText = object of TDomNode
|
||||||
|
|
||||||
|
PDomComment* = ptr TDomComment
|
||||||
|
TDomComment = object of TDomNode
|
||||||
|
|
||||||
|
THtmlBox {.pure, final.} = object
|
||||||
|
PHtmlBox* = ptr THtmlBox
|
||||||
|
|
||||||
|
|
||||||
proc DOM_TYPE_NODE*(): GType
|
proc DOM_TYPE_NODE*(): GType
|
||||||
|
|
@ -190,50 +217,49 @@ proc dom_node_get_type*(): GType{.cdecl, dynlib: htmllib,
|
||||||
importc: "dom_node_get_type".}
|
importc: "dom_node_get_type".}
|
||||||
proc dom_Node_mkref*(node: pointer): PDomNode{.cdecl, dynlib: htmllib,
|
proc dom_Node_mkref*(node: pointer): PDomNode{.cdecl, dynlib: htmllib,
|
||||||
importc: "dom_Node_mkref".}
|
importc: "dom_Node_mkref".}
|
||||||
proc dom_Node__get_childNodes*(node: PDomNode): PDomNodeList{.cdecl,
|
proc get_childNodes*(node: PDomNode): PDomNodeList{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_childNodes".}
|
dynlib: htmllib, importc: "dom_Node__get_childNodes".}
|
||||||
proc dom_Node_removeChild*(node: PDomNode, oldChild: PDomNode,
|
proc removeChild*(node: PDomNode, oldChild: PDomNode,
|
||||||
exc: PDomException): PDomNode{.cdecl,
|
exc: PDomException): PDomNode{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node_removeChild".}
|
dynlib: htmllib, importc: "dom_Node_removeChild".}
|
||||||
proc dom_Node__get_nodeValue*(node: PDomNode, exc: PDomException): PDomString{.
|
proc get_nodeValue*(node: PDomNode, exc: PDomException): PDomString{.
|
||||||
cdecl, dynlib: htmllib, importc: "dom_Node__get_nodeValue".}
|
cdecl, dynlib: htmllib, importc: "dom_Node__get_nodeValue".}
|
||||||
proc dom_Node__get_firstChild*(node: PDomNode): PDomNode{.cdecl,
|
proc get_firstChild*(node: PDomNode): PDomNode{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_firstChild".}
|
dynlib: htmllib, importc: "dom_Node__get_firstChild".}
|
||||||
proc dom_Node__get_nodeName*(node: PDomNode): PDomString{.cdecl,
|
proc get_nodeName*(node: PDomNode): PDomString{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_nodeName".}
|
dynlib: htmllib, importc: "dom_Node__get_nodeName".}
|
||||||
proc dom_Node__get_attributes*(node: PDomNode): PDomNamedNodeMap{.cdecl,
|
proc get_attributes*(node: PDomNode): PDomNamedNodeMap{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_attributes".}
|
dynlib: htmllib, importc: "dom_Node__get_attributes".}
|
||||||
proc dom_Document__get_doctype*(doc: PDomDocument): PDomDocumentType{.cdecl,
|
proc get_doctype*(doc: PDomDocument): PDomDocumentType{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Document__get_doctype".}
|
dynlib: htmllib, importc: "dom_Document__get_doctype".}
|
||||||
proc dom_Node_hasChildNodes*(node: PDomNode): DomBoolean{.cdecl,
|
proc hasChildNodes*(node: PDomNode): bool{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node_hasChildNodes".}
|
dynlib: htmllib, importc: "dom_Node_hasChildNodes".}
|
||||||
proc dom_Node__get_parentNode*(node: PDomNode): PDomNode{.cdecl,
|
proc get_parentNode*(node: PDomNode): PDomNode{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_parentNode".}
|
dynlib: htmllib, importc: "dom_Node__get_parentNode".}
|
||||||
proc dom_Node__get_nextSibling*(node: PDomNode): PDomNode{.cdecl,
|
proc get_nextSibling*(node: PDomNode): PDomNode{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_nextSibling".}
|
dynlib: htmllib, importc: "dom_Node__get_nextSibling".}
|
||||||
proc dom_Node__get_nodeType*(node: PDomNode): gushort{.cdecl, dynlib: htmllib,
|
proc get_nodeType*(node: PDomNode): gushort{.cdecl, dynlib: htmllib,
|
||||||
importc: "dom_Node__get_nodeType".}
|
importc: "dom_Node__get_nodeType".}
|
||||||
proc dom_Node_hasAttributes*(node: PDomNode): DomBoolean{.cdecl,
|
|
||||||
dynlib: htmllib, importc: "dom_Node_hasAttributes".}
|
proc cloneNode*(node: PDomNode, deep: bool): PDomNode{.cdecl,
|
||||||
proc dom_Node_cloneNode*(node: PDomNode, deep: DomBoolean): PDomNode{.cdecl,
|
|
||||||
dynlib: htmllib, importc: "dom_Node_cloneNode".}
|
dynlib: htmllib, importc: "dom_Node_cloneNode".}
|
||||||
proc dom_Node_appendChild*(node: PDomNode, newChild: PDomNode,
|
proc appendChild*(node: PDomNode, newChild: PDomNode,
|
||||||
exc: PDomException): PDomNode{.cdecl,
|
exc: PDomException): PDomNode{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node_appendChild".}
|
dynlib: htmllib, importc: "dom_Node_appendChild".}
|
||||||
proc dom_Node__get_localName*(node: PDomNode): PDomString{.cdecl,
|
proc get_localName*(node: PDomNode): PDomString{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_localName".}
|
dynlib: htmllib, importc: "dom_Node__get_localName".}
|
||||||
proc dom_Node__get_namespaceURI*(node: PDomNode): PDomString{.cdecl,
|
proc get_namespaceURI*(node: PDomNode): PDomString{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_namespaceURI".}
|
dynlib: htmllib, importc: "dom_Node__get_namespaceURI".}
|
||||||
proc dom_Node__get_previousSibling*(node: PDomNode): PDomNode{.cdecl,
|
proc get_previousSibling*(node: PDomNode): PDomNode{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_previousSibling".}
|
dynlib: htmllib, importc: "dom_Node__get_previousSibling".}
|
||||||
proc dom_Node__get_lastChild*(node: PDomNode): PDomNode{.cdecl, dynlib: htmllib,
|
proc get_lastChild*(node: PDomNode): PDomNode{.cdecl, dynlib: htmllib,
|
||||||
importc: "dom_Node__get_lastChild".}
|
importc: "dom_Node__get_lastChild".}
|
||||||
proc dom_Node__set_nodeValue*(node: PDomNode, value: PDomString,
|
proc set_nodeValue*(node: PDomNode, value: PDomString,
|
||||||
exc: PDomException){.cdecl, dynlib: htmllib,
|
exc: PDomException){.cdecl, dynlib: htmllib,
|
||||||
importc: "dom_Node__set_nodeValue".}
|
importc: "dom_Node__set_nodeValue".}
|
||||||
proc dom_Node__get_ownerDocument*(node: PDomNode): PDomDocument{.cdecl,
|
proc get_ownerDocument*(node: PDomNode): PDomDocument{.cdecl,
|
||||||
dynlib: htmllib, importc: "dom_Node__get_ownerDocument".}
|
dynlib: htmllib, importc: "dom_Node__get_ownerDocument".}
|
||||||
proc dom_Node_hasAttributes*(node: PDomNode): gboolean{.cdecl, dynlib: htmllib,
|
proc hasAttributes*(node: PDomNode): gboolean{.cdecl, dynlib: htmllib,
|
||||||
importc: "dom_Node_hasAttributes".}
|
importc: "dom_Node_hasAttributes".}
|
||||||
proc DOM_TYPE_DOCUMENT*(): GType
|
proc DOM_TYPE_DOCUMENT*(): GType
|
||||||
proc DOM_DOCUMENT*(theobject: pointer): PDomDocument
|
proc DOM_DOCUMENT*(theobject: pointer): PDomDocument
|
||||||
|
|
@ -242,12 +268,12 @@ proc DOM_IS_DOCUMENT*(theobject: pointer): bool
|
||||||
proc DOM_IS_DOCUMENT_CLASS*(klass: pointer): bool
|
proc DOM_IS_DOCUMENT_CLASS*(klass: pointer): bool
|
||||||
proc DOM_DOCUMENT_GET_CLASS*(obj: pointer): PDomDocumentClass
|
proc DOM_DOCUMENT_GET_CLASS*(obj: pointer): PDomDocumentClass
|
||||||
proc dom_document_get_type*(): GType
|
proc dom_document_get_type*(): GType
|
||||||
proc dom_Document__get_documentElement*(doc: PDomDocument): PDomElement
|
proc get_documentElement*(doc: PDomDocument): PDomElement
|
||||||
proc dom_Document_createElement*(doc: PDomDocument, tagName: PDomString): PDomElement
|
proc createElement*(doc: PDomDocument, tagName: PDomString): PDomElement
|
||||||
proc dom_Document_createTextNode*(doc: PDomDocument, data: PDomString): PDomText
|
proc createTextNode*(doc: PDomDocument, data: PDomString): PDomText
|
||||||
proc dom_Document_createComment*(doc: PDomDocument, data: PDomString): PDomComment
|
proc createComment*(doc: PDomDocument, data: PDomString): PDomComment
|
||||||
proc dom_Document_importNode*(doc: PDomDocument, importedNode: PDomNode,
|
proc importNode*(doc: PDomDocument, importedNode: PDomNode,
|
||||||
deep: DomBoolean, exc: PDomException): PDomNode
|
deep: bool, exc: PDomException): PDomNode
|
||||||
proc HTML_TYPE_FOCUS_ITERATOR*(): GType
|
proc HTML_TYPE_FOCUS_ITERATOR*(): GType
|
||||||
proc HTML_FOCUS_ITERATOR*(theobject: pointer): PHtmlFocusIterator
|
proc HTML_FOCUS_ITERATOR*(theobject: pointer): PHtmlFocusIterator
|
||||||
proc HTML_FOCUS_ITERATOR_CLASS*(klass: pointer): PHtmlFocusIteratorClass
|
proc HTML_FOCUS_ITERATOR_CLASS*(klass: pointer): PHtmlFocusIteratorClass
|
||||||
|
|
@ -265,7 +291,7 @@ proc HTML_PARSER*(obj: pointer): PHtmlParser
|
||||||
proc HTML_PARSER_CLASS*(klass: pointer): PHtmlParserClass
|
proc HTML_PARSER_CLASS*(klass: pointer): PHtmlParserClass
|
||||||
proc HTML_IS_PARSER*(obj: pointer): bool
|
proc HTML_IS_PARSER*(obj: pointer): bool
|
||||||
proc html_parser_get_type*(): GType
|
proc html_parser_get_type*(): GType
|
||||||
proc html_parser_new*(document: PHtmlDocument, parser_type: THtmlParserType): PHtmlParser
|
proc parser_new*(document: PHtmlDocument, parser_type: THtmlParserType): PHtmlParser
|
||||||
proc HTML_TYPE_STREAM*(): GType
|
proc HTML_TYPE_STREAM*(): GType
|
||||||
proc HTML_STREAM*(obj: pointer): PHtmlStream
|
proc HTML_STREAM*(obj: pointer): PHtmlStream
|
||||||
proc HTML_STREAM_CLASS*(klass: pointer): PHtmlStreamClass
|
proc HTML_STREAM_CLASS*(klass: pointer): PHtmlStreamClass
|
||||||
|
|
@ -277,48 +303,48 @@ proc html_stream_get_type*(): GType{.cdecl, dynlib: htmllib,
|
||||||
proc html_stream_new*(write_func: THtmlStreamWriteFunc,
|
proc html_stream_new*(write_func: THtmlStreamWriteFunc,
|
||||||
close_func: THtmlStreamCloseFunc, user_data: gpointer): PHtmlStream{.
|
close_func: THtmlStreamCloseFunc, user_data: gpointer): PHtmlStream{.
|
||||||
cdecl, dynlib: htmllib, importc: "html_stream_new".}
|
cdecl, dynlib: htmllib, importc: "html_stream_new".}
|
||||||
proc html_stream_write*(stream: PHtmlStream, buffer: Pgchar, size: guint){.
|
proc write*(stream: PHtmlStream, buffer: cstring, size: guint){.
|
||||||
cdecl, dynlib: htmllib, importc: "html_stream_write".}
|
cdecl, dynlib: htmllib, importc: "html_stream_write".}
|
||||||
proc html_stream_close*(stream: PHtmlStream){.cdecl, dynlib: htmllib,
|
proc close*(stream: PHtmlStream){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_stream_close".}
|
importc: "html_stream_close".}
|
||||||
proc html_stream_destroy*(stream: PHtmlStream){.cdecl, dynlib: htmllib,
|
proc destroy*(stream: PHtmlStream){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_stream_destroy".}
|
importc: "html_stream_destroy".}
|
||||||
proc html_stream_get_written*(stream: PHtmlStream): gint{.cdecl,
|
proc get_written*(stream: PHtmlStream): gint{.cdecl,
|
||||||
dynlib: htmllib, importc: "html_stream_get_written".}
|
dynlib: htmllib, importc: "html_stream_get_written".}
|
||||||
proc html_stream_cancel*(stream: PHtmlStream){.cdecl, dynlib: htmllib,
|
proc cancel*(stream: PHtmlStream){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_stream_cancel".}
|
importc: "html_stream_cancel".}
|
||||||
proc html_stream_set_cancel_func*(stream: PHtmlStream,
|
proc set_cancel_func*(stream: PHtmlStream,
|
||||||
abort_func: THtmlStreamCancelFunc,
|
abort_func: THtmlStreamCancelFunc,
|
||||||
cancel_data: gpointer){.cdecl,
|
cancel_data: gpointer){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_stream_set_cancel_func".}
|
dynlib: htmllib, importc: "html_stream_set_cancel_func".}
|
||||||
proc html_stream_get_mime_type*(stream: PHtmlStream): cstring{.cdecl,
|
proc get_mime_type*(stream: PHtmlStream): cstring{.cdecl,
|
||||||
dynlib: htmllib, importc: "html_stream_get_mime_type".}
|
dynlib: htmllib, importc: "html_stream_get_mime_type".}
|
||||||
proc html_stream_set_mime_type*(stream: PHtmlStream, mime_type: cstring){.cdecl,
|
proc set_mime_type*(stream: PHtmlStream, mime_type: cstring){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_stream_set_mime_type".}
|
dynlib: htmllib, importc: "html_stream_set_mime_type".}
|
||||||
proc html_stream_buffer_new*(close_func: THtmlStreamBufferCloseFunc,
|
proc html_stream_buffer_new*(close_func: THtmlStreamBufferCloseFunc,
|
||||||
user_data: gpointer): PHtmlStream{.cdecl,
|
user_data: gpointer): PHtmlStream{.cdecl,
|
||||||
dynlib: htmllib, importc: "html_stream_buffer_new".}
|
dynlib: htmllib, importc: "html_stream_buffer_new".}
|
||||||
proc html_event_mouse_move*(view: PHtmlView, event: PGdkEventMotion){.cdecl,
|
proc event_mouse_move*(view: PHtmlView, event: Gdk2.PEventMotion){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_event_mouse_move".}
|
dynlib: htmllib, importc: "html_event_mouse_move".}
|
||||||
proc html_event_button_press*(view: PHtmlView, button: PGdkEventButton){.cdecl,
|
proc event_button_press*(view: PHtmlView, button: Gdk2.PEventButton){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_event_button_press".}
|
dynlib: htmllib, importc: "html_event_button_press".}
|
||||||
proc html_event_button_release*(view: PHtmlView, event: PGdkEventButton){.cdecl,
|
proc event_button_release*(view: PHtmlView, event: Gdk2.PEventButton){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_event_button_release".}
|
dynlib: htmllib, importc: "html_event_button_release".}
|
||||||
proc html_event_activate*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
proc event_activate*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_event_activate".}
|
importc: "html_event_activate".}
|
||||||
proc html_event_key_press*(view: PHtmlView, event: PGdkEventKey): gboolean{.
|
proc event_key_press*(view: PHtmlView, event: Gdk2.PEventKey): gboolean{.
|
||||||
cdecl, dynlib: htmllib, importc: "html_event_key_press".}
|
cdecl, dynlib: htmllib, importc: "html_event_key_press".}
|
||||||
proc html_event_find_root_box*(self: PHtmlBox, x: gint, y: gint): PHtmlBox{.
|
proc event_find_root_box*(self: PHtmlBox, x: gint, y: gint): PHtmlBox{.
|
||||||
cdecl, dynlib: htmllib, importc: "html_event_find_root_box".}
|
cdecl, dynlib: htmllib, importc: "html_event_find_root_box".}
|
||||||
proc html_selection_start*(view: PHtmlView, event: PGdkEventButton){.cdecl,
|
proc selection_start*(view: PHtmlView, event: Gdk2.PEventButton){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_selection_start".}
|
dynlib: htmllib, importc: "html_selection_start".}
|
||||||
proc html_selection_end*(view: PHtmlView, event: PGdkEventButton){.cdecl,
|
proc selection_end*(view: PHtmlView, event: Gdk2.PEventButton){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_selection_end".}
|
dynlib: htmllib, importc: "html_selection_end".}
|
||||||
proc html_selection_update*(view: PHtmlView, event: PGdkEventMotion){.cdecl,
|
proc selection_update*(view: PHtmlView, event: Gdk2.PEventMotion){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_selection_update".}
|
dynlib: htmllib, importc: "html_selection_update".}
|
||||||
proc html_selection_clear*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
proc selection_clear*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_selection_clear".}
|
importc: "html_selection_clear".}
|
||||||
proc html_selection_set*(view: PHtmlView, start: PDomNode, offset: int32,
|
proc selection_set*(view: PHtmlView, start: PDomNode, offset: int32,
|
||||||
len: int32){.cdecl, dynlib: htmllib,
|
len: int32){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_selection_set".}
|
importc: "html_selection_set".}
|
||||||
proc HTML_CONTEXT_TYPE*(): GType
|
proc HTML_CONTEXT_TYPE*(): GType
|
||||||
|
|
@ -336,14 +362,14 @@ proc html_document_get_type*(): GType{.cdecl, dynlib: htmllib,
|
||||||
importc: "html_document_get_type".}
|
importc: "html_document_get_type".}
|
||||||
proc html_document_new*(): PHtmlDocument{.cdecl, dynlib: htmllib,
|
proc html_document_new*(): PHtmlDocument{.cdecl, dynlib: htmllib,
|
||||||
importc: "html_document_new".}
|
importc: "html_document_new".}
|
||||||
proc html_document_open_stream*(document: PHtmlDocument, mime_type: Pgchar): gboolean{.
|
proc open_stream*(document: PHtmlDocument, mime_type: cstring): gboolean{.
|
||||||
cdecl, dynlib: htmllib, importc: "html_document_open_stream".}
|
cdecl, dynlib: htmllib, importc: "html_document_open_stream".}
|
||||||
proc html_document_write_stream*(document: PHtmlDocument, buffer: Pgchar,
|
proc write_stream*(document: PHtmlDocument, buffer: cstring,
|
||||||
len: gint){.cdecl, dynlib: htmllib,
|
len: gint){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_document_write_stream".}
|
importc: "html_document_write_stream".}
|
||||||
proc html_document_close_stream*(document: PHtmlDocument){.cdecl,
|
proc close_stream*(document: PHtmlDocument){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_document_close_stream".}
|
dynlib: htmllib, importc: "html_document_close_stream".}
|
||||||
proc html_document_clear*(document: PHtmlDocument){.cdecl, dynlib: htmllib,
|
proc clear*(document: PHtmlDocument){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_document_clear".}
|
importc: "html_document_clear".}
|
||||||
proc HTML_TYPE_VIEW*(): GType
|
proc HTML_TYPE_VIEW*(): GType
|
||||||
proc HTML_VIEW*(obj: pointer): PHtmlView
|
proc HTML_VIEW*(obj: pointer): PHtmlView
|
||||||
|
|
@ -352,25 +378,26 @@ proc HTML_IS_VIEW*(obj: pointer): bool
|
||||||
proc html_view_get_type*(): GType{.cdecl, dynlib: htmllib,
|
proc html_view_get_type*(): GType{.cdecl, dynlib: htmllib,
|
||||||
importc: "html_view_get_type".}
|
importc: "html_view_get_type".}
|
||||||
proc html_view_new*(): PWidget{.cdecl, dynlib: htmllib, importc: "html_view_new".}
|
proc html_view_new*(): PWidget{.cdecl, dynlib: htmllib, importc: "html_view_new".}
|
||||||
proc html_view_set_document*(view: PHtmlView, document: PHtmlDocument){.cdecl,
|
proc set_document*(view: PHtmlView, document: PHtmlDocument){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_view_set_document".}
|
dynlib: htmllib, importc: "html_view_set_document".}
|
||||||
proc html_view_jump_to_anchor*(view: PHtmlView, anchor: Pgchar){.cdecl,
|
proc jump_to_anchor*(view: PHtmlView, anchor: cstring){.cdecl,
|
||||||
dynlib: htmllib, importc: "html_view_jump_to_anchor".}
|
dynlib: htmllib, importc: "html_view_jump_to_anchor".}
|
||||||
proc html_view_get_magnification*(view: PHtmlView): gdouble{.cdecl,
|
proc get_magnification*(view: PHtmlView): gdouble{.cdecl,
|
||||||
dynlib: htmllib, importc: "html_view_get_magnification".}
|
dynlib: htmllib, importc: "html_view_get_magnification".}
|
||||||
proc html_view_set_magnification*(view: PHtmlView, magnification: gdouble){.
|
proc set_magnification*(view: PHtmlView, magnification: gdouble){.
|
||||||
cdecl, dynlib: htmllib, importc: "html_view_set_magnification".}
|
cdecl, dynlib: htmllib, importc: "html_view_set_magnification".}
|
||||||
proc html_view_zoom_in*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
proc zoom_in*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_view_zoom_in".}
|
importc: "html_view_zoom_in".}
|
||||||
proc html_view_zoom_out*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
proc zoom_out*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_view_zoom_out".}
|
importc: "html_view_zoom_out".}
|
||||||
proc html_view_zoom_reset*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
proc zoom_reset*(view: PHtmlView){.cdecl, dynlib: htmllib,
|
||||||
importc: "html_view_zoom_reset".}
|
importc: "html_view_zoom_reset".}
|
||||||
|
|
||||||
proc DOM_TYPE_NODE*(): GType =
|
proc DOM_TYPE_NODE*(): GType =
|
||||||
result = dom_node_get_type()
|
result = dom_node_get_type()
|
||||||
|
|
||||||
proc DOM_NODE*(theobject: pointer): PDomNode =
|
proc DOM_NODE*(theobject: pointer): PDomNode =
|
||||||
result = G_TYPE_CHECK_INSTANCE_CAST(theobject, DOM_TYPE_NODE(), TDomNode)
|
result = G_TYPE_CHECK_INSTANCE_CAST(theobject, DOM_TYPE_NODE())
|
||||||
|
|
||||||
proc DOM_NODE_CLASS*(klass: pointer): PDomNodeClass =
|
proc DOM_NODE_CLASS*(klass: pointer): PDomNodeClass =
|
||||||
result = G_TYPE_CHECK_CLASS_CAST(klass, DOM_TYPE_NODE(), TDomNodeClass)
|
result = G_TYPE_CHECK_CLASS_CAST(klass, DOM_TYPE_NODE(), TDomNodeClass)
|
||||||
|
|
|
||||||
|
|
@ -48,34 +48,34 @@ proc xml_new*(fname: cstring, root: cstring, domain: cstring): PXML{.cdecl,
|
||||||
proc xml_new_from_buffer*(buffer: cstring, size: int32, root: cstring,
|
proc xml_new_from_buffer*(buffer: cstring, size: int32, root: cstring,
|
||||||
domain: cstring): PXML{.cdecl, dynlib: LibGladeLib,
|
domain: cstring): PXML{.cdecl, dynlib: LibGladeLib,
|
||||||
importc: "glade_xml_new_from_buffer".}
|
importc: "glade_xml_new_from_buffer".}
|
||||||
proc xml_construct*(self: PXML, fname: cstring, root: cstring, domain: cstring): gboolean{.
|
proc construct*(self: PXML, fname: cstring, root: cstring, domain: cstring): gboolean{.
|
||||||
cdecl, dynlib: LibGladeLib, importc: "glade_xml_construct".}
|
cdecl, dynlib: LibGladeLib, importc: "glade_xml_construct".}
|
||||||
proc xml_signal_connect*(self: PXML, handlername: cstring, func: TGCallback){.
|
proc signal_connect*(self: PXML, handlername: cstring, func: TGCallback){.
|
||||||
cdecl, dynlib: LibGladeLib, importc: "glade_xml_signal_connect".}
|
cdecl, dynlib: LibGladeLib, importc: "glade_xml_signal_connect".}
|
||||||
proc xml_signal_connect_data*(self: PXML, handlername: cstring,
|
proc signal_connect_data*(self: PXML, handlername: cstring,
|
||||||
func: TGCallback, user_data: gpointer){.cdecl,
|
func: TGCallback, user_data: gpointer){.cdecl,
|
||||||
dynlib: LibGladeLib, importc: "glade_xml_signal_connect_data".}
|
dynlib: LibGladeLib, importc: "glade_xml_signal_connect_data".}
|
||||||
proc xml_signal_autoconnect*(self: PXML){.cdecl, dynlib: LibGladeLib,
|
proc signal_autoconnect*(self: PXML){.cdecl, dynlib: LibGladeLib,
|
||||||
importc: "glade_xml_signal_autoconnect".}
|
importc: "glade_xml_signal_autoconnect".}
|
||||||
proc xml_signal_connect_full*(self: PXML, handler_name: cstring,
|
proc signal_connect_full*(self: PXML, handler_name: cstring,
|
||||||
func: TXMLConnectFunc, user_data: gpointer){.
|
func: TXMLConnectFunc, user_data: gpointer){.
|
||||||
cdecl, dynlib: LibGladeLib, importc: "glade_xml_signal_connect_full".}
|
cdecl, dynlib: LibGladeLib, importc: "glade_xml_signal_connect_full".}
|
||||||
proc xml_signal_autoconnect_full*(self: PXML, func: TXMLConnectFunc,
|
proc signal_autoconnect_full*(self: PXML, func: TXMLConnectFunc,
|
||||||
user_data: gpointer){.cdecl,
|
user_data: gpointer){.cdecl,
|
||||||
dynlib: LibGladeLib, importc: "glade_xml_signal_autoconnect_full".}
|
dynlib: LibGladeLib, importc: "glade_xml_signal_autoconnect_full".}
|
||||||
proc xml_get_widget*(self: PXML, name: cstring): PGtkWidget{.cdecl,
|
proc get_widget*(self: PXML, name: cstring): gtk2.PWidget{.cdecl,
|
||||||
dynlib: LibGladeLib, importc: "glade_xml_get_widget".}
|
dynlib: LibGladeLib, importc: "glade_xml_get_widget".}
|
||||||
proc xml_get_widget_prefix*(self: PXML, name: cstring): PGList{.cdecl,
|
proc get_widget_prefix*(self: PXML, name: cstring): PGList{.cdecl,
|
||||||
dynlib: LibGladeLib, importc: "glade_xml_get_widget_prefix".}
|
dynlib: LibGladeLib, importc: "glade_xml_get_widget_prefix".}
|
||||||
proc xml_relative_file*(self: PXML, filename: cstring): cstring{.cdecl,
|
proc relative_file*(self: PXML, filename: cstring): cstring{.cdecl,
|
||||||
dynlib: LibGladeLib, importc: "glade_xml_relative_file".}
|
dynlib: LibGladeLib, importc: "glade_xml_relative_file".}
|
||||||
proc get_widget_name*(widget: PGtkWidget): cstring{.cdecl, dynlib: LibGladeLib,
|
proc get_widget_name*(widget: gtk2.PWidget): cstring{.cdecl, dynlib: LibGladeLib,
|
||||||
importc: "glade_get_widget_name".}
|
importc: "glade_get_widget_name".}
|
||||||
proc get_widget_tree*(widget: PGtkWidget): PXML{.cdecl, dynlib: LibGladeLib,
|
proc get_widget_tree*(widget: gtk2.PWidget): PXML{.cdecl, dynlib: LibGladeLib,
|
||||||
importc: "glade_get_widget_tree".}
|
importc: "glade_get_widget_tree".}
|
||||||
type
|
type
|
||||||
PXMLCustomWidgetHandler* = ptr TXMLCustomWidgetHandler
|
PXMLCustomWidgetHandler* = ptr TXMLCustomWidgetHandler
|
||||||
TXMLCustomWidgetHandler* = TGtkWidget
|
TXMLCustomWidgetHandler* = gtk2.TWidget
|
||||||
|
|
||||||
proc set_custom_handler*(handler: TXMLCustomWidgetHandler, user_data: gpointer){.
|
proc set_custom_handler*(handler: TXMLCustomWidgetHandler, user_data: gpointer){.
|
||||||
cdecl, dynlib: LibGladeLib, importc: "glade_set_custom_handler".}
|
cdecl, dynlib: LibGladeLib, importc: "glade_set_custom_handler".}
|
||||||
|
|
|
||||||
|
|
@ -9,42 +9,53 @@ else:
|
||||||
const
|
const
|
||||||
lib* = "libpango-1.0.so.0"
|
lib* = "libpango-1.0.so.0"
|
||||||
type
|
type
|
||||||
PFont* = pointer
|
TFont* {.pure, final.} = object
|
||||||
PFontFamily* = pointer
|
PFont* = ptr TFont
|
||||||
PFontset* = pointer
|
TFontFamily* {.pure, final.} = object
|
||||||
PFontMetrics* = pointer
|
PFontFamily* = ptr TFontFamily
|
||||||
PFontFace* = pointer
|
TFontSet* {.pure, final.} = object
|
||||||
PFontMap* = pointer
|
PFontset* = ptr TFontset
|
||||||
PFontsetClass* = pointer
|
TFontMetrics* {.pure, final.} = object
|
||||||
PFontFamilyClass* = pointer
|
PFontMetrics* = ptr TFontMetrics
|
||||||
PFontFaceClass* = pointer
|
TFontFace* {.pure, final.} = object
|
||||||
PFontClass* = pointer
|
PFontFace* = ptr TFontFace
|
||||||
PFontMapClass* = pointer
|
TFontMap* {.pure, final.} = object
|
||||||
|
PFontMap* = ptr TFontMap
|
||||||
|
TFontsetClass {.pure, final.} = object
|
||||||
|
PFontsetClass* = ptr TFontSetClass
|
||||||
|
TFontFamilyClass* {.pure, final.} = object
|
||||||
|
PFontFamilyClass* = ptr TFontFamilyClass
|
||||||
|
TFontFaceClass* {.pure, final.} = object
|
||||||
|
PFontFaceClass* = ptr TFontFaceClass
|
||||||
|
TFontClass* {.pure, final.} = object
|
||||||
|
PFontClass* = ptr TFontClass
|
||||||
|
TFontMapClass* {.pure, final.} = object
|
||||||
|
PFontMapClass* = ptr TFontMapClass
|
||||||
PFontDescription* = ptr TFontDescription
|
PFontDescription* = ptr TFontDescription
|
||||||
TFontDescription* = pointer
|
TFontDescription* {.pure, final.} = object
|
||||||
PAttrList* = ptr TAttrList
|
PAttrList* = ptr TAttrList
|
||||||
TAttrList* = pointer
|
TAttrList* {.pure, final.} = object
|
||||||
PAttrIterator* = ptr TAttrIterator
|
PAttrIterator* = ptr TAttrIterator
|
||||||
TAttrIterator* = pointer
|
TAttrIterator* {.pure, final.} = object
|
||||||
PLayout* = ptr TLayout
|
PLayout* = ptr TLayout
|
||||||
TLayout* = pointer
|
TLayout* {.pure, final.} = object
|
||||||
PLayoutClass* = ptr TLayoutClass
|
PLayoutClass* = ptr TLayoutClass
|
||||||
TLayoutClass* = pointer
|
TLayoutClass* {.pure, final.} = object
|
||||||
PLayoutIter* = ptr TLayoutIter
|
PLayoutIter* = ptr TLayoutIter
|
||||||
TLayoutIter* = pointer
|
TLayoutIter* {.pure, final.} = object
|
||||||
PContext* = ptr TContext
|
PContext* = ptr TContext
|
||||||
TContext* = pointer
|
TContext* {.pure, final.} = object
|
||||||
PContextClass* = ptr TContextClass
|
PContextClass* = ptr TContextClass
|
||||||
TContextClass* = pointer
|
TContextClass* {.pure, final.} = object
|
||||||
PFontsetSimple* = ptr TFontsetSimple
|
PFontsetSimple* = ptr TFontsetSimple
|
||||||
TFontsetSimple* = pointer
|
TFontsetSimple* {.pure, final.} = object
|
||||||
PTabArray* = ptr TTabArray
|
PTabArray* = ptr TTabArray
|
||||||
TTabArray* = pointer
|
TTabArray* {.pure, final.} = object
|
||||||
PGlyphString* = ptr TGlyphString
|
PGlyphString* = ptr TGlyphString
|
||||||
PAnalysis* = ptr TAnalysis
|
PAnalysis* = ptr TAnalysis
|
||||||
PItem* = ptr TItem
|
PItem* = ptr TItem
|
||||||
PLanguage* = ptr TLanguage
|
PLanguage* = ptr TLanguage
|
||||||
TLanguage* = pointer
|
TLanguage* {.pure, final.} = object
|
||||||
PGlyph* = ptr TGlyph
|
PGlyph* = ptr TGlyph
|
||||||
TGlyph* = guint32
|
TGlyph* = guint32
|
||||||
PRectangle* = ptr TRectangle
|
PRectangle* = ptr TRectangle
|
||||||
|
|
@ -256,8 +267,8 @@ proc language_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_language_get_type".}
|
importc: "pango_language_get_type".}
|
||||||
proc language_from_string*(language: cstring): PLanguage{.cdecl, dynlib: lib,
|
proc language_from_string*(language: cstring): PLanguage{.cdecl, dynlib: lib,
|
||||||
importc: "pango_language_from_string".}
|
importc: "pango_language_from_string".}
|
||||||
proc language_to_string*(language: PLanguage): cstring
|
proc to_string*(language: PLanguage): cstring
|
||||||
proc language_matches*(language: PLanguage, range_list: cstring): gboolean{.
|
proc matches*(language: PLanguage, range_list: cstring): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "pango_language_matches".}
|
cdecl, dynlib: lib, importc: "pango_language_matches".}
|
||||||
const
|
const
|
||||||
ATTR_INVALID* = 0
|
ATTR_INVALID* = 0
|
||||||
|
|
@ -284,19 +295,19 @@ const
|
||||||
proc TYPE_COLOR*(): GType
|
proc TYPE_COLOR*(): GType
|
||||||
proc color_get_type*(): GType{.cdecl, dynlib: lib,
|
proc color_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_color_get_type".}
|
importc: "pango_color_get_type".}
|
||||||
proc color_copy*(src: PColor): PColor{.cdecl, dynlib: lib,
|
proc copy*(src: PColor): PColor{.cdecl, dynlib: lib,
|
||||||
importc: "pango_color_copy".}
|
importc: "pango_color_copy".}
|
||||||
proc color_free*(color: PColor){.cdecl, dynlib: lib, importc: "pango_color_free".}
|
proc free*(color: PColor){.cdecl, dynlib: lib, importc: "pango_color_free".}
|
||||||
proc color_parse*(color: PColor, spec: cstring): gboolean{.cdecl, dynlib: lib,
|
proc parse*(color: PColor, spec: cstring): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_color_parse".}
|
importc: "pango_color_parse".}
|
||||||
proc TYPE_ATTR_LIST*(): GType
|
proc TYPE_ATTR_LIST*(): GType
|
||||||
proc attr_type_register*(name: cstring): TAttrType{.cdecl, dynlib: lib,
|
proc attr_type_register*(name: cstring): TAttrType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_type_register".}
|
importc: "pango_attr_type_register".}
|
||||||
proc attribute_copy*(attr: PAttribute): PAttribute{.cdecl, dynlib: lib,
|
proc copy*(attr: PAttribute): PAttribute{.cdecl, dynlib: lib,
|
||||||
importc: "pango_attribute_copy".}
|
importc: "pango_attribute_copy".}
|
||||||
proc attribute_destroy*(attr: PAttribute){.cdecl, dynlib: lib,
|
proc destroy*(attr: PAttribute){.cdecl, dynlib: lib,
|
||||||
importc: "pango_attribute_destroy".}
|
importc: "pango_attribute_destroy".}
|
||||||
proc attribute_equal*(attr1: PAttribute, attr2: PAttribute): gboolean{.cdecl,
|
proc equal*(attr1: PAttribute, attr2: PAttribute): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "pango_attribute_equal".}
|
dynlib: lib, importc: "pango_attribute_equal".}
|
||||||
proc attr_language_new*(language: PLanguage): PAttribute{.cdecl, dynlib: lib,
|
proc attr_language_new*(language: PLanguage): PAttribute{.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_language_new".}
|
importc: "pango_attr_language_new".}
|
||||||
|
|
@ -332,21 +343,21 @@ proc attr_list_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_get_type".}
|
importc: "pango_attr_list_get_type".}
|
||||||
proc attr_list_new*(): PAttrList{.cdecl, dynlib: lib,
|
proc attr_list_new*(): PAttrList{.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_new".}
|
importc: "pango_attr_list_new".}
|
||||||
proc attr_list_ref*(list: PAttrList){.cdecl, dynlib: lib,
|
proc reference*(list: PAttrList){.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_ref".}
|
importc: "pango_attr_list_ref".}
|
||||||
proc attr_list_unref*(list: PAttrList){.cdecl, dynlib: lib,
|
proc unref*(list: PAttrList){.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_unref".}
|
importc: "pango_attr_list_unref".}
|
||||||
proc attr_list_copy*(list: PAttrList): PAttrList{.cdecl, dynlib: lib,
|
proc copy*(list: PAttrList): PAttrList{.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_copy".}
|
importc: "pango_attr_list_copy".}
|
||||||
proc attr_list_insert*(list: PAttrList, attr: PAttribute){.cdecl, dynlib: lib,
|
proc insert*(list: PAttrList, attr: PAttribute){.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_insert".}
|
importc: "pango_attr_list_insert".}
|
||||||
proc attr_list_insert_before*(list: PAttrList, attr: PAttribute){.cdecl,
|
proc insert_before*(list: PAttrList, attr: PAttribute){.cdecl,
|
||||||
dynlib: lib, importc: "pango_attr_list_insert_before".}
|
dynlib: lib, importc: "pango_attr_list_insert_before".}
|
||||||
proc attr_list_change*(list: PAttrList, attr: PAttribute){.cdecl, dynlib: lib,
|
proc change*(list: PAttrList, attr: PAttribute){.cdecl, dynlib: lib,
|
||||||
importc: "pango_attr_list_change".}
|
importc: "pango_attr_list_change".}
|
||||||
proc attr_list_splice*(list: PAttrList, other: PAttrList, pos: gint, len: gint){.
|
proc splice*(list: PAttrList, other: PAttrList, pos: gint, len: gint){.
|
||||||
cdecl, dynlib: lib, importc: "pango_attr_list_splice".}
|
cdecl, dynlib: lib, importc: "pango_attr_list_splice".}
|
||||||
proc attr_list_get_iterator*(list: PAttrList): PAttrIterator{.cdecl,
|
proc get_iterator*(list: PAttrList): PAttrIterator{.cdecl,
|
||||||
dynlib: lib, importc: "pango_attr_list_get_iterator".}
|
dynlib: lib, importc: "pango_attr_list_get_iterator".}
|
||||||
proc attr_iterator_range*(`iterator`: PAttrIterator, start: Pgint, theEnd: Pgint){.
|
proc attr_iterator_range*(`iterator`: PAttrIterator, start: Pgint, theEnd: Pgint){.
|
||||||
cdecl, dynlib: lib, importc: "pango_attr_iterator_range".}
|
cdecl, dynlib: lib, importc: "pango_attr_iterator_range".}
|
||||||
|
|
@ -421,50 +432,50 @@ proc CONTEXT*(anObject: pointer): PContext
|
||||||
proc CONTEXT_CLASS*(klass: pointer): PContextClass
|
proc CONTEXT_CLASS*(klass: pointer): PContextClass
|
||||||
proc IS_CONTEXT*(anObject: pointer): bool
|
proc IS_CONTEXT*(anObject: pointer): bool
|
||||||
proc IS_CONTEXT_CLASS*(klass: pointer): bool
|
proc IS_CONTEXT_CLASS*(klass: pointer): bool
|
||||||
proc CONTEXT_GET_CLASS*(obj: PContext): PContextClass
|
proc GET_CLASS*(obj: PContext): PContextClass
|
||||||
proc context_get_type*(): GType{.cdecl, dynlib: lib,
|
proc context_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_context_get_type".}
|
importc: "pango_context_get_type".}
|
||||||
proc context_list_families*(context: PContext,
|
proc list_families*(context: PContext,
|
||||||
families: openarray[ptr PFontFamily]){.cdecl,
|
families: openarray[ptr PFontFamily]){.cdecl,
|
||||||
dynlib: lib, importc: "pango_context_list_families".}
|
dynlib: lib, importc: "pango_context_list_families".}
|
||||||
proc context_load_font*(context: PContext, desc: PFontDescription): PFont{.
|
proc load_font*(context: PContext, desc: PFontDescription): PFont{.
|
||||||
cdecl, dynlib: lib, importc: "pango_context_load_font".}
|
cdecl, dynlib: lib, importc: "pango_context_load_font".}
|
||||||
proc context_load_fontset*(context: PContext, desc: PFontDescription,
|
proc load_fontset*(context: PContext, desc: PFontDescription,
|
||||||
language: PLanguage): PFontset{.cdecl, dynlib: lib,
|
language: PLanguage): PFontset{.cdecl, dynlib: lib,
|
||||||
importc: "pango_context_load_fontset".}
|
importc: "pango_context_load_fontset".}
|
||||||
proc context_get_metrics*(context: PContext, desc: PFontDescription,
|
proc get_metrics*(context: PContext, desc: PFontDescription,
|
||||||
language: PLanguage): PFontMetrics{.cdecl,
|
language: PLanguage): PFontMetrics{.cdecl,
|
||||||
dynlib: lib, importc: "pango_context_get_metrics".}
|
dynlib: lib, importc: "pango_context_get_metrics".}
|
||||||
proc context_set_font_description*(context: PContext, desc: PFontDescription){.
|
proc set_font_description*(context: PContext, desc: PFontDescription){.
|
||||||
cdecl, dynlib: lib, importc: "pango_context_set_font_description".}
|
cdecl, dynlib: lib, importc: "pango_context_set_font_description".}
|
||||||
proc context_get_font_description*(context: PContext): PFontDescription{.cdecl,
|
proc get_font_description*(context: PContext): PFontDescription{.cdecl,
|
||||||
dynlib: lib, importc: "pango_context_get_font_description".}
|
dynlib: lib, importc: "pango_context_get_font_description".}
|
||||||
proc context_get_language*(context: PContext): PLanguage{.cdecl, dynlib: lib,
|
proc get_language*(context: PContext): PLanguage{.cdecl, dynlib: lib,
|
||||||
importc: "pango_context_get_language".}
|
importc: "pango_context_get_language".}
|
||||||
proc context_set_language*(context: PContext, language: PLanguage){.cdecl,
|
proc set_language*(context: PContext, language: PLanguage){.cdecl,
|
||||||
dynlib: lib, importc: "pango_context_set_language".}
|
dynlib: lib, importc: "pango_context_set_language".}
|
||||||
proc context_set_base_dir*(context: PContext, direction: TDirection){.cdecl,
|
proc set_base_dir*(context: PContext, direction: TDirection){.cdecl,
|
||||||
dynlib: lib, importc: "pango_context_set_base_dir".}
|
dynlib: lib, importc: "pango_context_set_base_dir".}
|
||||||
proc context_get_base_dir*(context: PContext): TDirection{.cdecl, dynlib: lib,
|
proc get_base_dir*(context: PContext): TDirection{.cdecl, dynlib: lib,
|
||||||
importc: "pango_context_get_base_dir".}
|
importc: "pango_context_get_base_dir".}
|
||||||
proc itemize*(context: PContext, text: cstring, start_index: int32,
|
proc itemize*(context: PContext, text: cstring, start_index: int32,
|
||||||
length: int32, attrs: PAttrList, cached_iter: PAttrIterator): PGList{.
|
length: int32, attrs: PAttrList, cached_iter: PAttrIterator): PGList{.
|
||||||
cdecl, dynlib: lib, importc: "pango_itemize".}
|
cdecl, dynlib: lib, importc: "pango_itemize".}
|
||||||
proc coverage_new*(): PCoverage{.cdecl, dynlib: lib,
|
proc coverage_new*(): PCoverage{.cdecl, dynlib: lib,
|
||||||
importc: "pango_coverage_new".}
|
importc: "pango_coverage_new".}
|
||||||
proc coverage_ref*(coverage: PCoverage): PCoverage{.cdecl, dynlib: lib,
|
proc reference*(coverage: PCoverage): PCoverage{.cdecl, dynlib: lib,
|
||||||
importc: "pango_coverage_ref".}
|
importc: "pango_coverage_ref".}
|
||||||
proc coverage_unref*(coverage: PCoverage){.cdecl, dynlib: lib,
|
proc unref*(coverage: PCoverage){.cdecl, dynlib: lib,
|
||||||
importc: "pango_coverage_unref".}
|
importc: "pango_coverage_unref".}
|
||||||
proc coverage_copy*(coverage: PCoverage): PCoverage{.cdecl, dynlib: lib,
|
proc copy*(coverage: PCoverage): PCoverage{.cdecl, dynlib: lib,
|
||||||
importc: "pango_coverage_copy".}
|
importc: "pango_coverage_copy".}
|
||||||
proc coverage_get*(coverage: PCoverage, index: int32): TCoverageLevel{.cdecl,
|
proc get*(coverage: PCoverage, index: int32): TCoverageLevel{.cdecl,
|
||||||
dynlib: lib, importc: "pango_coverage_get".}
|
dynlib: lib, importc: "pango_coverage_get".}
|
||||||
proc coverage_set*(coverage: PCoverage, index: int32, level: TCoverageLevel){.
|
proc set*(coverage: PCoverage, index: int32, level: TCoverageLevel){.
|
||||||
cdecl, dynlib: lib, importc: "pango_coverage_set".}
|
cdecl, dynlib: lib, importc: "pango_coverage_set".}
|
||||||
proc coverage_max*(coverage: PCoverage, other: PCoverage){.cdecl, dynlib: lib,
|
proc max*(coverage: PCoverage, other: PCoverage){.cdecl, dynlib: lib,
|
||||||
importc: "pango_coverage_max".}
|
importc: "pango_coverage_max".}
|
||||||
proc coverage_to_bytes*(coverage: PCoverage, bytes: PPguchar, n_bytes: var int32){.
|
proc to_bytes*(coverage: PCoverage, bytes: PPguchar, n_bytes: var int32){.
|
||||||
cdecl, dynlib: lib, importc: "pango_coverage_to_bytes".}
|
cdecl, dynlib: lib, importc: "pango_coverage_to_bytes".}
|
||||||
proc coverage_from_bytes*(bytes: Pguchar, n_bytes: int32): PCoverage{.cdecl,
|
proc coverage_from_bytes*(bytes: Pguchar, n_bytes: int32): PCoverage{.cdecl,
|
||||||
dynlib: lib, importc: "pango_coverage_from_bytes".}
|
dynlib: lib, importc: "pango_coverage_from_bytes".}
|
||||||
|
|
@ -473,9 +484,9 @@ proc FONTSET*(anObject: pointer): PFontset
|
||||||
proc IS_FONTSET*(anObject: pointer): bool
|
proc IS_FONTSET*(anObject: pointer): bool
|
||||||
proc fontset_get_type*(): GType{.cdecl, dynlib: lib,
|
proc fontset_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_fontset_get_type".}
|
importc: "pango_fontset_get_type".}
|
||||||
proc fontset_get_font*(fontset: PFontset, wc: guint): PFont{.cdecl, dynlib: lib,
|
proc get_font*(fontset: PFontset, wc: guint): PFont{.cdecl, dynlib: lib,
|
||||||
importc: "pango_fontset_get_font".}
|
importc: "pango_fontset_get_font".}
|
||||||
proc fontset_get_metrics*(fontset: PFontset): PFontMetrics{.cdecl, dynlib: lib,
|
proc get_metrics*(fontset: PFontset): PFontMetrics{.cdecl, dynlib: lib,
|
||||||
importc: "pango_fontset_get_metrics".}
|
importc: "pango_fontset_get_metrics".}
|
||||||
const
|
const
|
||||||
STYLE_NORMAL* = 0
|
STYLE_NORMAL* = 0
|
||||||
|
|
@ -517,84 +528,84 @@ proc font_description_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_description_get_type".}
|
importc: "pango_font_description_get_type".}
|
||||||
proc font_description_new*(): PFontDescription{.cdecl, dynlib: lib,
|
proc font_description_new*(): PFontDescription{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_description_new".}
|
importc: "pango_font_description_new".}
|
||||||
proc font_description_copy*(desc: PFontDescription): PFontDescription{.cdecl,
|
proc copy*(desc: PFontDescription): PFontDescription{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_copy".}
|
dynlib: lib, importc: "pango_font_description_copy".}
|
||||||
proc font_description_copy_static*(desc: PFontDescription): PFontDescription{.
|
proc copy_static*(desc: PFontDescription): PFontDescription{.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_copy_static".}
|
cdecl, dynlib: lib, importc: "pango_font_description_copy_static".}
|
||||||
proc font_description_hash*(desc: PFontDescription): guint{.cdecl, dynlib: lib,
|
proc hash*(desc: PFontDescription): guint{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_description_hash".}
|
importc: "pango_font_description_hash".}
|
||||||
proc font_description_equal*(desc1: PFontDescription, desc2: PFontDescription): gboolean{.
|
proc equal*(desc1: PFontDescription, desc2: PFontDescription): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_equal".}
|
cdecl, dynlib: lib, importc: "pango_font_description_equal".}
|
||||||
proc font_description_free*(desc: PFontDescription){.cdecl, dynlib: lib,
|
proc free*(desc: PFontDescription){.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_description_free".}
|
importc: "pango_font_description_free".}
|
||||||
proc font_descriptions_free*(descs: var PFontDescription, n_descs: int32){.
|
proc font_descriptions_free*(descs: var PFontDescription, n_descs: int32){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_descriptions_free".}
|
cdecl, dynlib: lib, importc: "pango_font_descriptions_free".}
|
||||||
proc font_description_set_family*(desc: PFontDescription, family: cstring){.
|
proc set_family*(desc: PFontDescription, family: cstring){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_set_family".}
|
cdecl, dynlib: lib, importc: "pango_font_description_set_family".}
|
||||||
proc font_description_set_family_static*(desc: PFontDescription, family: cstring){.
|
proc set_family_static*(desc: PFontDescription, family: cstring){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_set_family_static".}
|
cdecl, dynlib: lib, importc: "pango_font_description_set_family_static".}
|
||||||
proc font_description_get_family*(desc: PFontDescription): cstring{.cdecl,
|
proc get_family*(desc: PFontDescription): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_family".}
|
dynlib: lib, importc: "pango_font_description_get_family".}
|
||||||
proc font_description_set_style*(desc: PFontDescription, style: TStyle){.cdecl,
|
proc set_style*(desc: PFontDescription, style: TStyle){.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_set_style".}
|
dynlib: lib, importc: "pango_font_description_set_style".}
|
||||||
proc font_description_get_style*(desc: PFontDescription): TStyle{.cdecl,
|
proc get_style*(desc: PFontDescription): TStyle{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_style".}
|
dynlib: lib, importc: "pango_font_description_get_style".}
|
||||||
proc font_description_set_variant*(desc: PFontDescription, variant: TVariant){.
|
proc set_variant*(desc: PFontDescription, variant: TVariant){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_set_variant".}
|
cdecl, dynlib: lib, importc: "pango_font_description_set_variant".}
|
||||||
proc font_description_get_variant*(desc: PFontDescription): TVariant{.cdecl,
|
proc get_variant*(desc: PFontDescription): TVariant{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_variant".}
|
dynlib: lib, importc: "pango_font_description_get_variant".}
|
||||||
proc font_description_set_weight*(desc: PFontDescription, weight: TWeight){.
|
proc set_weight*(desc: PFontDescription, weight: TWeight){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_set_weight".}
|
cdecl, dynlib: lib, importc: "pango_font_description_set_weight".}
|
||||||
proc font_description_get_weight*(desc: PFontDescription): TWeight{.cdecl,
|
proc get_weight*(desc: PFontDescription): TWeight{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_weight".}
|
dynlib: lib, importc: "pango_font_description_get_weight".}
|
||||||
proc font_description_set_stretch*(desc: PFontDescription, stretch: TStretch){.
|
proc set_stretch*(desc: PFontDescription, stretch: TStretch){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_set_stretch".}
|
cdecl, dynlib: lib, importc: "pango_font_description_set_stretch".}
|
||||||
proc font_description_get_stretch*(desc: PFontDescription): TStretch{.cdecl,
|
proc get_stretch*(desc: PFontDescription): TStretch{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_stretch".}
|
dynlib: lib, importc: "pango_font_description_get_stretch".}
|
||||||
proc font_description_set_size*(desc: PFontDescription, size: gint){.cdecl,
|
proc set_size*(desc: PFontDescription, size: gint){.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_set_size".}
|
dynlib: lib, importc: "pango_font_description_set_size".}
|
||||||
proc font_description_get_size*(desc: PFontDescription): gint{.cdecl,
|
proc get_size*(desc: PFontDescription): gint{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_size".}
|
dynlib: lib, importc: "pango_font_description_get_size".}
|
||||||
proc font_description_set_absolute_size*(desc: PFontDescription, size: float64){.
|
proc set_absolute_size*(desc: PFontDescription, size: float64){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_set_absolute_size".}
|
cdecl, dynlib: lib, importc: "pango_font_description_set_absolute_size".}
|
||||||
proc font_description_get_size_is_absolute*(desc: PFontDescription,
|
proc get_size_is_absolute*(desc: PFontDescription,
|
||||||
size: float64): gboolean{.cdecl, dynlib: lib, importc: "pango_font_description_get_size_is_absolute".}
|
size: float64): gboolean{.cdecl, dynlib: lib, importc: "pango_font_description_get_size_is_absolute".}
|
||||||
proc font_description_get_set_fields*(desc: PFontDescription): TFontMask{.cdecl,
|
proc get_set_fields*(desc: PFontDescription): TFontMask{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_get_set_fields".}
|
dynlib: lib, importc: "pango_font_description_get_set_fields".}
|
||||||
proc font_description_unset_fields*(desc: PFontDescription, to_unset: TFontMask){.
|
proc unset_fields*(desc: PFontDescription, to_unset: TFontMask){.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_unset_fields".}
|
cdecl, dynlib: lib, importc: "pango_font_description_unset_fields".}
|
||||||
proc font_description_merge*(desc: PFontDescription,
|
proc merge*(desc: PFontDescription,
|
||||||
desc_to_merge: PFontDescription,
|
desc_to_merge: PFontDescription,
|
||||||
replace_existing: gboolean){.cdecl, dynlib: lib,
|
replace_existing: gboolean){.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_description_merge".}
|
importc: "pango_font_description_merge".}
|
||||||
proc font_description_merge_static*(desc: PFontDescription,
|
proc merge_static*(desc: PFontDescription,
|
||||||
desc_to_merge: PFontDescription,
|
desc_to_merge: PFontDescription,
|
||||||
replace_existing: gboolean){.cdecl,
|
replace_existing: gboolean){.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_merge_static".}
|
dynlib: lib, importc: "pango_font_description_merge_static".}
|
||||||
proc font_description_better_match*(desc: PFontDescription,
|
proc better_match*(desc: PFontDescription,
|
||||||
old_match: PFontDescription,
|
old_match: PFontDescription,
|
||||||
new_match: PFontDescription): gboolean{.
|
new_match: PFontDescription): gboolean{.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_description_better_match".}
|
cdecl, dynlib: lib, importc: "pango_font_description_better_match".}
|
||||||
proc font_description_from_string*(str: cstring): PFontDescription{.cdecl,
|
proc font_description_from_string*(str: cstring): PFontDescription{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_from_string".}
|
dynlib: lib, importc: "pango_font_description_from_string".}
|
||||||
proc font_description_to_string*(desc: PFontDescription): cstring{.cdecl,
|
proc to_string*(desc: PFontDescription): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_to_string".}
|
dynlib: lib, importc: "pango_font_description_to_string".}
|
||||||
proc font_description_to_filename*(desc: PFontDescription): cstring{.cdecl,
|
proc to_filename*(desc: PFontDescription): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_description_to_filename".}
|
dynlib: lib, importc: "pango_font_description_to_filename".}
|
||||||
proc TYPE_FONT_METRICS*(): GType
|
proc TYPE_FONT_METRICS*(): GType
|
||||||
proc font_metrics_get_type*(): GType{.cdecl, dynlib: lib,
|
proc font_metrics_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_metrics_get_type".}
|
importc: "pango_font_metrics_get_type".}
|
||||||
proc font_metrics_ref*(metrics: PFontMetrics): PFontMetrics{.cdecl, dynlib: lib,
|
proc reference*(metrics: PFontMetrics): PFontMetrics{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_metrics_ref".}
|
importc: "pango_font_metrics_ref".}
|
||||||
proc font_metrics_unref*(metrics: PFontMetrics){.cdecl, dynlib: lib,
|
proc unref*(metrics: PFontMetrics){.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_metrics_unref".}
|
importc: "pango_font_metrics_unref".}
|
||||||
proc font_metrics_get_ascent*(metrics: PFontMetrics): int32{.cdecl, dynlib: lib,
|
proc get_ascent*(metrics: PFontMetrics): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_metrics_get_ascent".}
|
importc: "pango_font_metrics_get_ascent".}
|
||||||
proc font_metrics_get_descent*(metrics: PFontMetrics): int32{.cdecl,
|
proc get_descent*(metrics: PFontMetrics): int32{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_metrics_get_descent".}
|
dynlib: lib, importc: "pango_font_metrics_get_descent".}
|
||||||
proc font_metrics_get_approximate_char_width*(metrics: PFontMetrics): int32{.
|
proc get_approximate_char_width*(metrics: PFontMetrics): int32{.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_metrics_get_approximate_char_width".}
|
cdecl, dynlib: lib, importc: "pango_font_metrics_get_approximate_char_width".}
|
||||||
proc font_metrics_get_approximate_digit_width*(metrics: PFontMetrics): int32{.
|
proc get_approximate_digit_width*(metrics: PFontMetrics): int32{.
|
||||||
cdecl, dynlib: lib,
|
cdecl, dynlib: lib,
|
||||||
importc: "pango_font_metrics_get_approximate_digit_width".}
|
importc: "pango_font_metrics_get_approximate_digit_width".}
|
||||||
proc TYPE_FONT_FAMILY*(): GType
|
proc TYPE_FONT_FAMILY*(): GType
|
||||||
|
|
@ -602,33 +613,33 @@ proc FONT_FAMILY*(anObject: Pointer): PFontFamily
|
||||||
proc IS_FONT_FAMILY*(anObject: Pointer): bool
|
proc IS_FONT_FAMILY*(anObject: Pointer): bool
|
||||||
proc font_family_get_type*(): GType{.cdecl, dynlib: lib,
|
proc font_family_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_family_get_type".}
|
importc: "pango_font_family_get_type".}
|
||||||
proc font_family_list_faces*(family: PFontFamily,
|
proc list_faces*(family: PFontFamily,
|
||||||
faces: var openarray[ptr PFontFace]){.cdecl,
|
faces: var openarray[ptr PFontFace]){.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_family_list_faces".}
|
dynlib: lib, importc: "pango_font_family_list_faces".}
|
||||||
proc font_family_get_name*(family: PFontFamily): cstring{.cdecl, dynlib: lib,
|
proc get_name*(family: PFontFamily): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_family_get_name".}
|
importc: "pango_font_family_get_name".}
|
||||||
proc TYPE_FONT_FACE*(): GType
|
proc TYPE_FONT_FACE*(): GType
|
||||||
proc FONT_FACE*(anObject: pointer): PFontFace
|
proc FONT_FACE*(anObject: pointer): PFontFace
|
||||||
proc IS_FONT_FACE*(anObject: pointer): bool
|
proc IS_FONT_FACE*(anObject: pointer): bool
|
||||||
proc font_face_get_type*(): GType{.cdecl, dynlib: lib,
|
proc font_face_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_face_get_type".}
|
importc: "pango_font_face_get_type".}
|
||||||
proc font_face_describe*(face: PFontFace): PFontDescription{.cdecl, dynlib: lib,
|
proc describe*(face: PFontFace): PFontDescription{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_face_describe".}
|
importc: "pango_font_face_describe".}
|
||||||
proc font_face_get_face_name*(face: PFontFace): cstring{.cdecl, dynlib: lib,
|
proc get_face_name*(face: PFontFace): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_face_get_face_name".}
|
importc: "pango_font_face_get_face_name".}
|
||||||
proc TYPE_FONT*(): GType
|
proc TYPE_FONT*(): GType
|
||||||
proc FONT*(anObject: pointer): PFont
|
proc FONT*(anObject: pointer): PFont
|
||||||
proc IS_FONT*(anObject: pointer): bool
|
proc IS_FONT*(anObject: pointer): bool
|
||||||
proc font_get_type*(): GType{.cdecl, dynlib: lib, importc: "pango_font_get_type".}
|
proc font_get_type*(): GType{.cdecl, dynlib: lib, importc: "pango_font_get_type".}
|
||||||
proc font_describe*(font: PFont): PFontDescription{.cdecl, dynlib: lib,
|
proc describe*(font: PFont): PFontDescription{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_describe".}
|
importc: "pango_font_describe".}
|
||||||
proc font_get_coverage*(font: PFont, language: PLanguage): PCoverage{.cdecl,
|
proc get_coverage*(font: PFont, language: PLanguage): PCoverage{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_get_coverage".}
|
dynlib: lib, importc: "pango_font_get_coverage".}
|
||||||
proc font_find_shaper*(font: PFont, language: PLanguage, ch: guint32): PEngineShape{.
|
proc find_shaper*(font: PFont, language: PLanguage, ch: guint32): PEngineShape{.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_find_shaper".}
|
cdecl, dynlib: lib, importc: "pango_font_find_shaper".}
|
||||||
proc font_get_metrics*(font: PFont, language: PLanguage): PFontMetrics{.cdecl,
|
proc get_metrics*(font: PFont, language: PLanguage): PFontMetrics{.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_get_metrics".}
|
dynlib: lib, importc: "pango_font_get_metrics".}
|
||||||
proc font_get_glyph_extents*(font: PFont, glyph: TGlyph, ink_rect: PRectangle,
|
proc get_glyph_extents*(font: PFont, glyph: TGlyph, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_get_glyph_extents".}
|
importc: "pango_font_get_glyph_extents".}
|
||||||
proc TYPE_FONT_MAP*(): GType
|
proc TYPE_FONT_MAP*(): GType
|
||||||
|
|
@ -636,13 +647,13 @@ proc FONT_MAP*(anObject: pointer): PFontMap
|
||||||
proc IS_FONT_MAP*(anObject: pointer): bool
|
proc IS_FONT_MAP*(anObject: pointer): bool
|
||||||
proc font_map_get_type*(): GType{.cdecl, dynlib: lib,
|
proc font_map_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_map_get_type".}
|
importc: "pango_font_map_get_type".}
|
||||||
proc font_map_load_font*(fontmap: PFontMap, context: PContext,
|
proc load_font*(fontmap: PFontMap, context: PContext,
|
||||||
desc: PFontDescription): PFont{.cdecl, dynlib: lib,
|
desc: PFontDescription): PFont{.cdecl, dynlib: lib,
|
||||||
importc: "pango_font_map_load_font".}
|
importc: "pango_font_map_load_font".}
|
||||||
proc font_map_load_fontset*(fontmap: PFontMap, context: PContext,
|
proc load_fontset*(fontmap: PFontMap, context: PContext,
|
||||||
desc: PFontDescription, language: PLanguage): PFontset{.
|
desc: PFontDescription, language: PLanguage): PFontset{.
|
||||||
cdecl, dynlib: lib, importc: "pango_font_map_load_fontset".}
|
cdecl, dynlib: lib, importc: "pango_font_map_load_fontset".}
|
||||||
proc font_map_list_families*(fontmap: PFontMap,
|
proc list_families*(fontmap: PFontMap,
|
||||||
families: var openarray[ptr PFontFamily]){.cdecl,
|
families: var openarray[ptr PFontFamily]){.cdecl,
|
||||||
dynlib: lib, importc: "pango_font_map_list_families".}
|
dynlib: lib, importc: "pango_font_map_list_families".}
|
||||||
const
|
const
|
||||||
|
|
@ -662,22 +673,22 @@ proc glyph_string_copy*(`string`: PGlyphString): PGlyphString{.cdecl,
|
||||||
dynlib: lib, importc: "pango_glyph_string_copy".}
|
dynlib: lib, importc: "pango_glyph_string_copy".}
|
||||||
proc glyph_string_free*(`string`: PGlyphString){.cdecl, dynlib: lib,
|
proc glyph_string_free*(`string`: PGlyphString){.cdecl, dynlib: lib,
|
||||||
importc: "pango_glyph_string_free".}
|
importc: "pango_glyph_string_free".}
|
||||||
proc glyph_string_extents*(glyphs: PGlyphString, font: PFont,
|
proc extents*(glyphs: PGlyphString, font: PFont,
|
||||||
ink_rect: PRectangle, logical_rect: PRectangle){.
|
ink_rect: PRectangle, logical_rect: PRectangle){.
|
||||||
cdecl, dynlib: lib, importc: "pango_glyph_string_extents".}
|
cdecl, dynlib: lib, importc: "pango_glyph_string_extents".}
|
||||||
proc glyph_string_extents_range*(glyphs: PGlyphString, start: int32,
|
proc extents_range*(glyphs: PGlyphString, start: int32,
|
||||||
theEnd: int32, font: PFont,
|
theEnd: int32, font: PFont,
|
||||||
ink_rect: PRectangle, logical_rect: PRectangle){.
|
ink_rect: PRectangle, logical_rect: PRectangle){.
|
||||||
cdecl, dynlib: lib, importc: "pango_glyph_string_extents_range".}
|
cdecl, dynlib: lib, importc: "pango_glyph_string_extents_range".}
|
||||||
proc glyph_string_get_logical_widths*(glyphs: PGlyphString, text: cstring,
|
proc get_logical_widths*(glyphs: PGlyphString, text: cstring,
|
||||||
length: int32, embedding_level: int32,
|
length: int32, embedding_level: int32,
|
||||||
logical_widths: var int32){.cdecl,
|
logical_widths: var int32){.cdecl,
|
||||||
dynlib: lib, importc: "pango_glyph_string_get_logical_widths".}
|
dynlib: lib, importc: "pango_glyph_string_get_logical_widths".}
|
||||||
proc glyph_string_index_to_x*(glyphs: PGlyphString, text: cstring,
|
proc index_to_x*(glyphs: PGlyphString, text: cstring,
|
||||||
length: int32, analysis: PAnalysis, index: int32,
|
length: int32, analysis: PAnalysis, index: int32,
|
||||||
trailing: gboolean, x_pos: var int32){.cdecl,
|
trailing: gboolean, x_pos: var int32){.cdecl,
|
||||||
dynlib: lib, importc: "pango_glyph_string_index_to_x".}
|
dynlib: lib, importc: "pango_glyph_string_index_to_x".}
|
||||||
proc glyph_string_x_to_index*(glyphs: PGlyphString, text: cstring,
|
proc x_to_index*(glyphs: PGlyphString, text: cstring,
|
||||||
length: int32, analysis: PAnalysis, x_pos: int32,
|
length: int32, analysis: PAnalysis, x_pos: int32,
|
||||||
index, trailing: var int32){.cdecl, dynlib: lib,
|
index, trailing: var int32){.cdecl, dynlib: lib,
|
||||||
importc: "pango_glyph_string_x_to_index".}
|
importc: "pango_glyph_string_x_to_index".}
|
||||||
|
|
@ -686,182 +697,182 @@ proc shape*(text: cstring, length: gint, analysis: PAnalysis,
|
||||||
proc reorder_items*(logical_items: PGList): PGList{.cdecl, dynlib: lib,
|
proc reorder_items*(logical_items: PGList): PGList{.cdecl, dynlib: lib,
|
||||||
importc: "pango_reorder_items".}
|
importc: "pango_reorder_items".}
|
||||||
proc item_new*(): PItem{.cdecl, dynlib: lib, importc: "pango_item_new".}
|
proc item_new*(): PItem{.cdecl, dynlib: lib, importc: "pango_item_new".}
|
||||||
proc item_copy*(item: PItem): PItem{.cdecl, dynlib: lib,
|
proc copy*(item: PItem): PItem{.cdecl, dynlib: lib,
|
||||||
importc: "pango_item_copy".}
|
importc: "pango_item_copy".}
|
||||||
proc item_free*(item: PItem){.cdecl, dynlib: lib, importc: "pango_item_free".}
|
proc free*(item: PItem){.cdecl, dynlib: lib, importc: "pango_item_free".}
|
||||||
proc item_split*(orig: PItem, split_index: int32, split_offset: int32): PItem{.
|
proc split*(orig: PItem, split_index: int32, split_offset: int32): PItem{.
|
||||||
cdecl, dynlib: lib, importc: "pango_item_split".}
|
cdecl, dynlib: lib, importc: "pango_item_split".}
|
||||||
proc TYPE_LAYOUT*(): GType
|
proc TYPE_LAYOUT*(): GType
|
||||||
proc LAYOUT*(anObject: pointer): PLayout
|
proc LAYOUT*(anObject: pointer): PLayout
|
||||||
proc LAYOUT_CLASS*(klass: pointer): PLayoutClass
|
proc LAYOUT_CLASS*(klass: pointer): PLayoutClass
|
||||||
proc IS_LAYOUT*(anObject: pointer): bool
|
proc IS_LAYOUT*(anObject: pointer): bool
|
||||||
proc IS_LAYOUT_CLASS*(klass: pointer): bool
|
proc IS_LAYOUT_CLASS*(klass: pointer): bool
|
||||||
proc LAYOUT_GET_CLASS*(obj: PLayout): PLayoutClass
|
proc GET_CLASS*(obj: PLayout): PLayoutClass
|
||||||
proc layout_get_type*(): GType{.cdecl, dynlib: lib,
|
proc layout_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_type".}
|
importc: "pango_layout_get_type".}
|
||||||
proc layout_new*(context: PContext): PLayout{.cdecl, dynlib: lib,
|
proc layout_new*(context: PContext): PLayout{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_new".}
|
importc: "pango_layout_new".}
|
||||||
proc layout_copy*(src: PLayout): PLayout{.cdecl, dynlib: lib,
|
proc copy*(src: PLayout): PLayout{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_copy".}
|
importc: "pango_layout_copy".}
|
||||||
proc layout_get_context*(layout: PLayout): PContext{.cdecl, dynlib: lib,
|
proc get_context*(layout: PLayout): PContext{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_context".}
|
importc: "pango_layout_get_context".}
|
||||||
proc layout_set_attributes*(layout: PLayout, attrs: PAttrList){.cdecl,
|
proc set_attributes*(layout: PLayout, attrs: PAttrList){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_set_attributes".}
|
dynlib: lib, importc: "pango_layout_set_attributes".}
|
||||||
proc layout_get_attributes*(layout: PLayout): PAttrList{.cdecl, dynlib: lib,
|
proc get_attributes*(layout: PLayout): PAttrList{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_attributes".}
|
importc: "pango_layout_get_attributes".}
|
||||||
proc layout_set_text*(layout: PLayout, text: cstring, length: int32){.cdecl,
|
proc set_text*(layout: PLayout, text: cstring, length: int32){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_set_text".}
|
dynlib: lib, importc: "pango_layout_set_text".}
|
||||||
proc layout_get_text*(layout: PLayout): cstring{.cdecl, dynlib: lib,
|
proc get_text*(layout: PLayout): cstring{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_text".}
|
importc: "pango_layout_get_text".}
|
||||||
proc layout_set_markup*(layout: PLayout, markup: cstring, length: int32){.cdecl,
|
proc set_markup*(layout: PLayout, markup: cstring, length: int32){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_set_markup".}
|
dynlib: lib, importc: "pango_layout_set_markup".}
|
||||||
proc layout_set_markup_with_accel*(layout: PLayout, markup: cstring,
|
proc set_markup_with_accel*(layout: PLayout, markup: cstring,
|
||||||
length: int32, accel_marker: gunichar,
|
length: int32, accel_marker: gunichar,
|
||||||
accel_char: Pgunichar){.cdecl, dynlib: lib,
|
accel_char: Pgunichar){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_set_markup_with_accel".}
|
importc: "pango_layout_set_markup_with_accel".}
|
||||||
proc layout_set_font_description*(layout: PLayout, desc: PFontDescription){.
|
proc set_font_description*(layout: PLayout, desc: PFontDescription){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_set_font_description".}
|
cdecl, dynlib: lib, importc: "pango_layout_set_font_description".}
|
||||||
proc layout_set_width*(layout: PLayout, width: int32){.cdecl, dynlib: lib,
|
proc set_width*(layout: PLayout, width: int32){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_set_width".}
|
importc: "pango_layout_set_width".}
|
||||||
proc layout_get_width*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
proc get_width*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_width".}
|
importc: "pango_layout_get_width".}
|
||||||
proc layout_set_wrap*(layout: PLayout, wrap: TWrapMode){.cdecl, dynlib: lib,
|
proc set_wrap*(layout: PLayout, wrap: TWrapMode){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_set_wrap".}
|
importc: "pango_layout_set_wrap".}
|
||||||
proc layout_get_wrap*(layout: PLayout): TWrapMode{.cdecl, dynlib: lib,
|
proc get_wrap*(layout: PLayout): TWrapMode{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_wrap".}
|
importc: "pango_layout_get_wrap".}
|
||||||
proc layout_set_indent*(layout: PLayout, indent: int32){.cdecl, dynlib: lib,
|
proc set_indent*(layout: PLayout, indent: int32){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_set_indent".}
|
importc: "pango_layout_set_indent".}
|
||||||
proc layout_get_indent*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
proc get_indent*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_indent".}
|
importc: "pango_layout_get_indent".}
|
||||||
proc layout_set_spacing*(layout: PLayout, spacing: int32){.cdecl, dynlib: lib,
|
proc set_spacing*(layout: PLayout, spacing: int32){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_set_spacing".}
|
importc: "pango_layout_set_spacing".}
|
||||||
proc layout_get_spacing*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
proc get_spacing*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_spacing".}
|
importc: "pango_layout_get_spacing".}
|
||||||
proc layout_set_justify*(layout: PLayout, justify: gboolean){.cdecl,
|
proc set_justify*(layout: PLayout, justify: gboolean){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_set_justify".}
|
dynlib: lib, importc: "pango_layout_set_justify".}
|
||||||
proc layout_get_justify*(layout: PLayout): gboolean{.cdecl, dynlib: lib,
|
proc get_justify*(layout: PLayout): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_justify".}
|
importc: "pango_layout_get_justify".}
|
||||||
proc layout_set_alignment*(layout: PLayout, alignment: TAlignment){.cdecl,
|
proc set_alignment*(layout: PLayout, alignment: TAlignment){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_set_alignment".}
|
dynlib: lib, importc: "pango_layout_set_alignment".}
|
||||||
proc layout_get_alignment*(layout: PLayout): TAlignment{.cdecl, dynlib: lib,
|
proc get_alignment*(layout: PLayout): TAlignment{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_alignment".}
|
importc: "pango_layout_get_alignment".}
|
||||||
proc layout_set_tabs*(layout: PLayout, tabs: PTabArray){.cdecl, dynlib: lib,
|
proc set_tabs*(layout: PLayout, tabs: PTabArray){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_set_tabs".}
|
importc: "pango_layout_set_tabs".}
|
||||||
proc layout_get_tabs*(layout: PLayout): PTabArray{.cdecl, dynlib: lib,
|
proc get_tabs*(layout: PLayout): PTabArray{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_tabs".}
|
importc: "pango_layout_get_tabs".}
|
||||||
proc layout_set_single_paragraph_mode*(layout: PLayout, setting: gboolean){.
|
proc set_single_paragraph_mode*(layout: PLayout, setting: gboolean){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_set_single_paragraph_mode".}
|
cdecl, dynlib: lib, importc: "pango_layout_set_single_paragraph_mode".}
|
||||||
proc layout_get_single_paragraph_mode*(layout: PLayout): gboolean{.cdecl,
|
proc get_single_paragraph_mode*(layout: PLayout): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_get_single_paragraph_mode".}
|
dynlib: lib, importc: "pango_layout_get_single_paragraph_mode".}
|
||||||
proc layout_context_changed*(layout: PLayout){.cdecl, dynlib: lib,
|
proc context_changed*(layout: PLayout){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_context_changed".}
|
importc: "pango_layout_context_changed".}
|
||||||
proc layout_get_log_attrs*(layout: PLayout, attrs: var PLogAttr, n_attrs: Pgint){.
|
proc get_log_attrs*(layout: PLayout, attrs: var PLogAttr, n_attrs: Pgint){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_get_log_attrs".}
|
cdecl, dynlib: lib, importc: "pango_layout_get_log_attrs".}
|
||||||
proc layout_index_to_pos*(layout: PLayout, index: int32, pos: PRectangle){.
|
proc index_to_pos*(layout: PLayout, index: int32, pos: PRectangle){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_index_to_pos".}
|
cdecl, dynlib: lib, importc: "pango_layout_index_to_pos".}
|
||||||
proc layout_get_cursor_pos*(layout: PLayout, index: int32,
|
proc get_cursor_pos*(layout: PLayout, index: int32,
|
||||||
strong_pos: PRectangle, weak_pos: PRectangle){.
|
strong_pos: PRectangle, weak_pos: PRectangle){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_get_cursor_pos".}
|
cdecl, dynlib: lib, importc: "pango_layout_get_cursor_pos".}
|
||||||
proc layout_move_cursor_visually*(layout: PLayout, strong: gboolean,
|
proc move_cursor_visually*(layout: PLayout, strong: gboolean,
|
||||||
old_index: int32, old_trailing: int32,
|
old_index: int32, old_trailing: int32,
|
||||||
direction: int32,
|
direction: int32,
|
||||||
new_index, new_trailing: var int32){.cdecl,
|
new_index, new_trailing: var int32){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_move_cursor_visually".}
|
dynlib: lib, importc: "pango_layout_move_cursor_visually".}
|
||||||
proc layout_xy_to_index*(layout: PLayout, x: int32, y: int32,
|
proc xy_to_index*(layout: PLayout, x: int32, y: int32,
|
||||||
index, trailing: var int32): gboolean{.cdecl,
|
index, trailing: var int32): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_xy_to_index".}
|
dynlib: lib, importc: "pango_layout_xy_to_index".}
|
||||||
proc layout_get_extents*(layout: PLayout, ink_rect: PRectangle,
|
proc get_extents*(layout: PLayout, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_extents".}
|
importc: "pango_layout_get_extents".}
|
||||||
proc layout_get_pixel_extents*(layout: PLayout, ink_rect: PRectangle,
|
proc get_pixel_extents*(layout: PLayout, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_pixel_extents".}
|
importc: "pango_layout_get_pixel_extents".}
|
||||||
proc layout_get_size*(layout: PLayout, width: var int32, height: var int32){.
|
proc get_size*(layout: PLayout, width: var int32, height: var int32){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_get_size".}
|
cdecl, dynlib: lib, importc: "pango_layout_get_size".}
|
||||||
proc layout_get_pixel_size*(layout: PLayout, width: var int32, height: var int32){.
|
proc get_pixel_size*(layout: PLayout, width: var int32, height: var int32){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_get_pixel_size".}
|
cdecl, dynlib: lib, importc: "pango_layout_get_pixel_size".}
|
||||||
proc layout_get_line_count*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
proc get_line_count*(layout: PLayout): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_line_count".}
|
importc: "pango_layout_get_line_count".}
|
||||||
proc layout_get_line*(layout: PLayout, line: int32): PLayoutLine{.cdecl,
|
proc get_line*(layout: PLayout, line: int32): PLayoutLine{.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_get_line".}
|
dynlib: lib, importc: "pango_layout_get_line".}
|
||||||
proc layout_get_lines*(layout: PLayout): PGSList{.cdecl, dynlib: lib,
|
proc get_lines*(layout: PLayout): PGSList{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_lines".}
|
importc: "pango_layout_get_lines".}
|
||||||
proc layout_line_ref*(line: PLayoutLine){.cdecl, dynlib: lib,
|
proc reference*(line: PLayoutLine){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_line_ref".}
|
importc: "pango_layout_line_ref".}
|
||||||
proc layout_line_unref*(line: PLayoutLine){.cdecl, dynlib: lib,
|
proc unref*(line: PLayoutLine){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_line_unref".}
|
importc: "pango_layout_line_unref".}
|
||||||
proc layout_line_x_to_index*(line: PLayoutLine, x_pos: int32, index: var int32,
|
proc x_to_index*(line: PLayoutLine, x_pos: int32, index: var int32,
|
||||||
trailing: var int32): gboolean{.cdecl, dynlib: lib,
|
trailing: var int32): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_line_x_to_index".}
|
importc: "pango_layout_line_x_to_index".}
|
||||||
proc layout_line_index_to_x*(line: PLayoutLine, index: int32,
|
proc index_to_x*(line: PLayoutLine, index: int32,
|
||||||
trailing: gboolean, x_pos: var int32){.cdecl,
|
trailing: gboolean, x_pos: var int32){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_line_index_to_x".}
|
dynlib: lib, importc: "pango_layout_line_index_to_x".}
|
||||||
proc layout_line_get_extents*(line: PLayoutLine, ink_rect: PRectangle,
|
proc get_extents*(line: PLayoutLine, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_line_get_extents".}
|
importc: "pango_layout_line_get_extents".}
|
||||||
proc layout_line_get_pixel_extents*(layout_line: PLayoutLine,
|
proc get_pixel_extents*(layout_line: PLayoutLine,
|
||||||
ink_rect: PRectangle,
|
ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl,
|
logical_rect: PRectangle){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_line_get_pixel_extents".}
|
dynlib: lib, importc: "pango_layout_line_get_pixel_extents".}
|
||||||
proc layout_get_iter*(layout: PLayout): PLayoutIter{.cdecl, dynlib: lib,
|
proc get_iter*(layout: PLayout): PLayoutIter{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_get_iter".}
|
importc: "pango_layout_get_iter".}
|
||||||
proc layout_iter_free*(iter: PLayoutIter){.cdecl, dynlib: lib,
|
proc free*(iter: PLayoutIter){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_free".}
|
importc: "pango_layout_iter_free".}
|
||||||
proc layout_iter_get_index*(iter: PLayoutIter): int32{.cdecl, dynlib: lib,
|
proc get_index*(iter: PLayoutIter): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_get_index".}
|
importc: "pango_layout_iter_get_index".}
|
||||||
proc layout_iter_get_run*(iter: PLayoutIter): PLayoutRun{.cdecl, dynlib: lib,
|
proc get_run*(iter: PLayoutIter): PLayoutRun{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_get_run".}
|
importc: "pango_layout_iter_get_run".}
|
||||||
proc layout_iter_get_line*(iter: PLayoutIter): PLayoutLine{.cdecl, dynlib: lib,
|
proc get_line*(iter: PLayoutIter): PLayoutLine{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_get_line".}
|
importc: "pango_layout_iter_get_line".}
|
||||||
proc layout_iter_at_last_line*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
proc at_last_line*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_at_last_line".}
|
importc: "pango_layout_iter_at_last_line".}
|
||||||
proc layout_iter_next_char*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
proc next_char*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_next_char".}
|
importc: "pango_layout_iter_next_char".}
|
||||||
proc layout_iter_next_cluster*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
proc next_cluster*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_next_cluster".}
|
importc: "pango_layout_iter_next_cluster".}
|
||||||
proc layout_iter_next_run*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
proc next_run*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_next_run".}
|
importc: "pango_layout_iter_next_run".}
|
||||||
proc layout_iter_next_line*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
proc next_line*(iter: PLayoutIter): gboolean{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_next_line".}
|
importc: "pango_layout_iter_next_line".}
|
||||||
proc layout_iter_get_char_extents*(iter: PLayoutIter, logical_rect: PRectangle){.
|
proc get_char_extents*(iter: PLayoutIter, logical_rect: PRectangle){.
|
||||||
cdecl, dynlib: lib, importc: "pango_layout_iter_get_char_extents".}
|
cdecl, dynlib: lib, importc: "pango_layout_iter_get_char_extents".}
|
||||||
proc layout_iter_get_cluster_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
proc get_cluster_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl,
|
logical_rect: PRectangle){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_iter_get_cluster_extents".}
|
dynlib: lib, importc: "pango_layout_iter_get_cluster_extents".}
|
||||||
proc layout_iter_get_run_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
proc get_run_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
logical_rect: PRectangle){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_get_run_extents".}
|
importc: "pango_layout_iter_get_run_extents".}
|
||||||
proc layout_iter_get_line_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
proc get_line_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl,
|
logical_rect: PRectangle){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_iter_get_line_extents".}
|
dynlib: lib, importc: "pango_layout_iter_get_line_extents".}
|
||||||
proc layout_iter_get_line_yrange*(iter: PLayoutIter, y0: var int32,
|
proc get_line_yrange*(iter: PLayoutIter, y0: var int32,
|
||||||
y1: var int32){.cdecl, dynlib: lib,
|
y1: var int32){.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_get_line_yrange".}
|
importc: "pango_layout_iter_get_line_yrange".}
|
||||||
proc layout_iter_get_layout_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
proc get_layout_extents*(iter: PLayoutIter, ink_rect: PRectangle,
|
||||||
logical_rect: PRectangle){.cdecl,
|
logical_rect: PRectangle){.cdecl,
|
||||||
dynlib: lib, importc: "pango_layout_iter_get_layout_extents".}
|
dynlib: lib, importc: "pango_layout_iter_get_layout_extents".}
|
||||||
proc layout_iter_get_baseline*(iter: PLayoutIter): int32{.cdecl, dynlib: lib,
|
proc get_baseline*(iter: PLayoutIter): int32{.cdecl, dynlib: lib,
|
||||||
importc: "pango_layout_iter_get_baseline".}
|
importc: "pango_layout_iter_get_baseline".}
|
||||||
proc TYPE_TAB_ARRAY*(): GType
|
proc TYPE_TAB_ARRAY*(): GType
|
||||||
proc tab_array_new*(initial_size: gint, positions_in_pixels: gboolean): PTabArray{.
|
proc tab_array_new*(initial_size: gint, positions_in_pixels: gboolean): PTabArray{.
|
||||||
cdecl, dynlib: lib, importc: "pango_tab_array_new".}
|
cdecl, dynlib: lib, importc: "pango_tab_array_new".}
|
||||||
proc tab_array_get_type*(): GType{.cdecl, dynlib: lib,
|
proc tab_array_get_type*(): GType{.cdecl, dynlib: lib,
|
||||||
importc: "pango_tab_array_get_type".}
|
importc: "pango_tab_array_get_type".}
|
||||||
proc tab_array_copy*(src: PTabArray): PTabArray{.cdecl, dynlib: lib,
|
proc copy*(src: PTabArray): PTabArray{.cdecl, dynlib: lib,
|
||||||
importc: "pango_tab_array_copy".}
|
importc: "pango_tab_array_copy".}
|
||||||
proc tab_array_free*(tab_array: PTabArray){.cdecl, dynlib: lib,
|
proc free*(tab_array: PTabArray){.cdecl, dynlib: lib,
|
||||||
importc: "pango_tab_array_free".}
|
importc: "pango_tab_array_free".}
|
||||||
proc tab_array_get_size*(tab_array: PTabArray): gint{.cdecl, dynlib: lib,
|
proc get_size*(tab_array: PTabArray): gint{.cdecl, dynlib: lib,
|
||||||
importc: "pango_tab_array_get_size".}
|
importc: "pango_tab_array_get_size".}
|
||||||
proc tab_array_resize*(tab_array: PTabArray, new_size: gint){.cdecl,
|
proc resize*(tab_array: PTabArray, new_size: gint){.cdecl,
|
||||||
dynlib: lib, importc: "pango_tab_array_resize".}
|
dynlib: lib, importc: "pango_tab_array_resize".}
|
||||||
proc tab_array_set_tab*(tab_array: PTabArray, tab_index: gint,
|
proc set_tab*(tab_array: PTabArray, tab_index: gint,
|
||||||
alignment: TTabAlign, location: gint){.cdecl,
|
alignment: TTabAlign, location: gint){.cdecl,
|
||||||
dynlib: lib, importc: "pango_tab_array_set_tab".}
|
dynlib: lib, importc: "pango_tab_array_set_tab".}
|
||||||
proc tab_array_get_tab*(tab_array: PTabArray, tab_index: gint,
|
proc get_tab*(tab_array: PTabArray, tab_index: gint,
|
||||||
alignment: PTabAlign, location: Pgint){.cdecl,
|
alignment: PTabAlign, location: Pgint){.cdecl,
|
||||||
dynlib: lib, importc: "pango_tab_array_get_tab".}
|
dynlib: lib, importc: "pango_tab_array_get_tab".}
|
||||||
proc tab_array_get_positions_in_pixels*(tab_array: PTabArray): gboolean{.cdecl,
|
proc get_positions_in_pixels*(tab_array: PTabArray): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "pango_tab_array_get_positions_in_pixels".}
|
dynlib: lib, importc: "pango_tab_array_get_positions_in_pixels".}
|
||||||
proc ASCENT*(rect: TRectangle): int32 =
|
proc ASCENT*(rect: TRectangle): int32 =
|
||||||
result = - int(rect.y)
|
result = - int(rect.y)
|
||||||
|
|
@ -878,7 +889,7 @@ proc RBEARING*(rect: TRectangle): int32 =
|
||||||
proc TYPE_LANGUAGE*(): GType =
|
proc TYPE_LANGUAGE*(): GType =
|
||||||
result = language_get_type()
|
result = language_get_type()
|
||||||
|
|
||||||
proc language_to_string*(language: PLanguage): cstring =
|
proc to_string*(language: PLanguage): cstring =
|
||||||
result = cast[cstring](language)
|
result = cast[cstring](language)
|
||||||
|
|
||||||
proc PIXELS*(d: int): int =
|
proc PIXELS*(d: int): int =
|
||||||
|
|
@ -998,7 +1009,7 @@ proc IS_CONTEXT*(anObject: pointer): bool =
|
||||||
proc IS_CONTEXT_CLASS*(klass: pointer): bool =
|
proc IS_CONTEXT_CLASS*(klass: pointer): bool =
|
||||||
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_CONTEXT())
|
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_CONTEXT())
|
||||||
|
|
||||||
proc CONTEXT_GET_CLASS*(obj: PContext): PContextClass =
|
proc GET_CLASS*(obj: PContext): PContextClass =
|
||||||
result = cast[PContextClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_CONTEXT()))
|
result = cast[PContextClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_CONTEXT()))
|
||||||
|
|
||||||
proc TYPE_FONTSET*(): GType =
|
proc TYPE_FONTSET*(): GType =
|
||||||
|
|
@ -1016,7 +1027,7 @@ proc FONTSET_CLASS*(klass: pointer): PFontsetClass =
|
||||||
proc IS_FONTSET_CLASS*(klass: pointer): bool =
|
proc IS_FONTSET_CLASS*(klass: pointer): bool =
|
||||||
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONTSET())
|
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONTSET())
|
||||||
|
|
||||||
proc FONTSET_GET_CLASS*(obj: PFontset): PFontsetClass =
|
proc GET_CLASS*(obj: PFontset): PFontsetClass =
|
||||||
result = cast[PFontsetClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_FONTSET()))
|
result = cast[PFontsetClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_FONTSET()))
|
||||||
|
|
||||||
proc fontset_simple_get_type(): GType{.importc: "pango_fontset_simple_get_type",
|
proc fontset_simple_get_type(): GType{.importc: "pango_fontset_simple_get_type",
|
||||||
|
|
@ -1054,7 +1065,7 @@ proc FONT_FAMILY_CLASS*(klass: Pointer): PFontFamilyClass =
|
||||||
proc IS_FONT_FAMILY_CLASS*(klass: Pointer): bool =
|
proc IS_FONT_FAMILY_CLASS*(klass: Pointer): bool =
|
||||||
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONT_FAMILY())
|
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONT_FAMILY())
|
||||||
|
|
||||||
proc FONT_FAMILY_GET_CLASS*(obj: PFontFamily): PFontFamilyClass =
|
proc GET_CLASS*(obj: PFontFamily): PFontFamilyClass =
|
||||||
result = cast[PFontFamilyClass](G_TYPE_INSTANCE_GET_CLASS(obj,
|
result = cast[PFontFamilyClass](G_TYPE_INSTANCE_GET_CLASS(obj,
|
||||||
TYPE_FONT_FAMILY()))
|
TYPE_FONT_FAMILY()))
|
||||||
|
|
||||||
|
|
@ -1091,7 +1102,7 @@ proc FONT_CLASS*(klass: Pointer): PFontClass =
|
||||||
proc IS_FONT_CLASS*(klass: Pointer): bool =
|
proc IS_FONT_CLASS*(klass: Pointer): bool =
|
||||||
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONT())
|
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONT())
|
||||||
|
|
||||||
proc FONT_GET_CLASS*(obj: PFont): PFontClass =
|
proc GET_CLASS*(obj: PFont): PFontClass =
|
||||||
result = cast[PFontClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_FONT()))
|
result = cast[PFontClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_FONT()))
|
||||||
|
|
||||||
proc TYPE_FONT_MAP*(): GType =
|
proc TYPE_FONT_MAP*(): GType =
|
||||||
|
|
@ -1109,7 +1120,7 @@ proc FONT_MAP_CLASS*(klass: pointer): PFontMapClass =
|
||||||
proc IS_FONT_MAP_CLASS*(klass: pointer): bool =
|
proc IS_FONT_MAP_CLASS*(klass: pointer): bool =
|
||||||
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONT_MAP())
|
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_FONT_MAP())
|
||||||
|
|
||||||
proc FONT_MAP_GET_CLASS*(obj: PFontMap): PFontMapClass =
|
proc GET_CLASS*(obj: PFontMap): PFontMapClass =
|
||||||
result = cast[PFontMapClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_FONT_MAP()))
|
result = cast[PFontMapClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_FONT_MAP()))
|
||||||
|
|
||||||
proc is_cluster_start*(a: var TGlyphVisAttr): guint =
|
proc is_cluster_start*(a: var TGlyphVisAttr): guint =
|
||||||
|
|
@ -1139,7 +1150,7 @@ proc IS_LAYOUT*(anObject: pointer): bool =
|
||||||
proc IS_LAYOUT_CLASS*(klass: pointer): bool =
|
proc IS_LAYOUT_CLASS*(klass: pointer): bool =
|
||||||
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_LAYOUT())
|
result = G_TYPE_CHECK_CLASS_TYPE(klass, TYPE_LAYOUT())
|
||||||
|
|
||||||
proc LAYOUT_GET_CLASS*(obj: PLayout): PLayoutClass =
|
proc GET_CLASS*(obj: PLayout): PLayoutClass =
|
||||||
result = cast[PLayoutClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_LAYOUT()))
|
result = cast[PLayoutClass](G_TYPE_INSTANCE_GET_CLASS(obj, TYPE_LAYOUT()))
|
||||||
|
|
||||||
proc TYPE_TAB_ARRAY*(): GType =
|
proc TYPE_TAB_ARRAY*(): GType =
|
||||||
|
|
|
||||||
|
|
@ -38,5 +38,5 @@ proc log2vis_get_embedding_levels*(str: Pgunichar, len: int32,
|
||||||
cdecl, dynlib: lib, importc: "pango_log2vis_get_embedding_levels".}
|
cdecl, dynlib: lib, importc: "pango_log2vis_get_embedding_levels".}
|
||||||
proc get_mirror_char*(ch: gunichar, mirrored_ch: Pgunichar): gboolean{.cdecl,
|
proc get_mirror_char*(ch: gunichar, mirrored_ch: Pgunichar): gboolean{.cdecl,
|
||||||
dynlib: lib, importc: "pango_get_mirror_char".}
|
dynlib: lib, importc: "pango_get_mirror_char".}
|
||||||
proc language_get_sample_string*(language: PLanguage): cstring{.cdecl,
|
proc get_sample_string*(language: PLanguage): cstring{.cdecl,
|
||||||
dynlib: lib, importc: "pango_language_get_sample_string".}
|
dynlib: lib, importc: "pango_language_get_sample_string".}
|
||||||
|
|
|
||||||
|
|
@ -588,18 +588,13 @@ proc m(s: string, p: TPeg, start: int, c: var TMatchClosure): int =
|
||||||
#else: silently ignore the capture
|
#else: silently ignore the capture
|
||||||
else:
|
else:
|
||||||
c.ml = idx
|
c.ml = idx
|
||||||
of pkBackRef:
|
of pkBackRef..pkBackRefIgnoreStyle:
|
||||||
if p.index >= c.ml: return -1
|
if p.index >= c.ml: return -1
|
||||||
var (a, b) = c.matches[p.index]
|
var (a, b) = c.matches[p.index]
|
||||||
result = m(s, term(s.copy(a, b)), start, c)
|
var n: TPeg
|
||||||
of pkBackRefIgnoreCase:
|
n.kind = succ(pkTerminal, ord(p.kind)-ord(pkBackRef))
|
||||||
if p.index >= c.ml: return -1
|
n.term = s.copy(a, b)
|
||||||
var (a, b) = c.matches[p.index]
|
result = m(s, n, start, c)
|
||||||
result = m(s, termIgnoreCase(s.copy(a, b)), start, c)
|
|
||||||
of pkBackRefIgnoreStyle:
|
|
||||||
if p.index >= c.ml: return -1
|
|
||||||
var (a, b) = c.matches[p.index]
|
|
||||||
result = m(s, termIgnoreStyle(s.copy(a, b)), start, c)
|
|
||||||
of pkRule, pkList: assert false
|
of pkRule, pkList: assert false
|
||||||
|
|
||||||
proc match*(s: string, pattern: TPeg, matches: var openarray[string],
|
proc match*(s: string, pattern: TPeg, matches: var openarray[string],
|
||||||
|
|
|
||||||
|
|
@ -279,19 +279,57 @@ const ## common regular expressions
|
||||||
## describes an URL
|
## describes an URL
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
echo matchLen("key", re"[a-zA-Z_][a-zA-Z_0-9]*")
|
assert match("(a b c)", re"'(' @ ')'")
|
||||||
|
assert match("WHiLe", re(r"while", {reIgnoreCase}))
|
||||||
|
|
||||||
|
assert "0158787".match(re"\d+")
|
||||||
|
assert "ABC 0232".match(re"\w+\s+\d+")
|
||||||
|
assert "ABC".match(re"\d+ / \w+")
|
||||||
|
|
||||||
var pattern = re"[a-zA-Z_][a-zA-Z_0-9]*\s*=\s*[a-zA-Z_][a-zA-Z_0-9]*"
|
for word in split("00232this02939is39an22example111", re"\d+"):
|
||||||
echo matchLen("key1= cal9", pattern, 2)
|
writeln(stdout, word)
|
||||||
|
|
||||||
echo find("_____abc_______", re("abc"), 3)
|
assert matchLen("key", re(reIdentifier)) == 3
|
||||||
#echo "var1=key; var2=key2".replace(peg"{\ident}'='{\ident}", "$1<-$2$2")
|
|
||||||
#echo "var1=key; var2=key2".endsWith(peg"{\ident}'='{\ident}")
|
|
||||||
|
|
||||||
if "abc" =~ re"(a)bc xyz|([a-z]+)":
|
var pattern = re"[a-z0-9]+\s*=\s*[a-z0-9]+")
|
||||||
echo matches[0]
|
assert matchLen("key1= cal9", pattern) == 11
|
||||||
|
|
||||||
|
var c: TMatchClosure
|
||||||
|
var s = "a+b + c +d+e+f"
|
||||||
|
assert m(s, expr.rule, 0, c) == len(s)
|
||||||
|
var a = ""
|
||||||
|
for i in 0..c.ml-1:
|
||||||
|
a.add(copy(s, c.matches[i][0], c.matches[i][1]))
|
||||||
|
assert a == "abcdef"
|
||||||
|
#echo expr.rule
|
||||||
|
|
||||||
|
#const filename = "lib/devel/peg/grammar.txt"
|
||||||
|
#var grammar = parsePeg(newFileStream(filename, fmRead), filename)
|
||||||
|
#echo "a <- [abc]*?".match(grammar)
|
||||||
|
assert find("_____abc_______", term("abc")) == 5
|
||||||
|
assert match("_______ana", peg"A <- 'ana' / . A")
|
||||||
|
assert match("abcs%%%", peg"A <- ..A / .A / '%'")
|
||||||
|
|
||||||
|
if "abc" =~ peg"{'a'}'bc' 'xyz' / {\ident}":
|
||||||
|
assert matches[0] == "abc"
|
||||||
else:
|
else:
|
||||||
echo "BUG"
|
assert false
|
||||||
|
|
||||||
|
var g2 = peg"""S <- A B / C D
|
||||||
|
A <- 'a'+
|
||||||
|
B <- 'b'+
|
||||||
|
C <- 'c'+
|
||||||
|
D <- 'd'+
|
||||||
|
"""
|
||||||
|
assert($g2 == "((A B) / (C D))")
|
||||||
|
assert match("cccccdddddd", g2)
|
||||||
|
assert("var1=key; var2=key2".replace(peg"{\ident}'='{\ident}", "$1<-$2$2") ==
|
||||||
|
"var1<-keykey; var2<-key2key2")
|
||||||
|
assert "var1=key; var2=key2".endsWith(peg"{\ident}'='{\ident}")
|
||||||
|
|
||||||
|
if "aaaaaa" =~ peg"'aa' !. / ({'a'})+":
|
||||||
|
assert matches[0] == "a"
|
||||||
|
else:
|
||||||
|
assert false
|
||||||
|
|
||||||
|
|
||||||
# for word in split("00232this02939is39an22example111", peg"\d+"):
|
|
||||||
# writeln(stdout, word)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue