_id stringlengths 2 7 | title stringlengths 1 118 | partition stringclasses 3
values | text stringlengths 52 85.5k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q169500 | SimpleActionNew | validation | func SimpleActionNew(name string, parameterType *VariantType) *SimpleAction {
c := C.g_simple_action_new((*C.gchar)(C.CString(name)), parameterType.native())
if c == nil {
return nil
}
return wrapSimpleAction(wrapObject(unsafe.Pointer(c)))
} | go | {
"resource": ""
} |
q169501 | SimpleActionNewStateful | validation | func SimpleActionNewStateful(name string, parameterType *VariantType, state *Variant) *SimpleAction {
c := C.g_simple_action_new_stateful((*C.gchar)(C.CString(name)), parameterType.native(), state.native())
if c == nil {
return nil
}
return wrapSimpleAction(wrapObject(unsafe.Pointer(c)))
} | go | {
"resource": ""
} |
q169502 | SetEnabled | validation | func (v *SimpleAction) SetEnabled(enabled bool) {
C.g_simple_action_set_enabled(v.native(), gbool(enabled))
} | go | {
"resource": ""
} |
q169503 | PropertyActionNew | validation | func PropertyActionNew(name string, object *Object, propertyName string) *PropertyAction {
c := C.g_property_action_new((*C.gchar)(C.CString(name)), C.gpointer(unsafe.Pointer(object.native())), (*C.gchar)(C.CString(propertyName)))
if c == nil {
return nil
}
return wrapPropertyAction(wrapObject(unsafe.Pointer(c)))... | go | {
"resource": ""
} |
q169504 | native | validation | func (v *Adjustment) native() *C.GtkAdjustment {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkAdjustment(p)
} | go | {
"resource": ""
} |
q169505 | native | validation | func (v *Assistant) native() *C.GtkAssistant {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkAssistant(p)
} | go | {
"resource": ""
} |
q169506 | native | validation | func (v *Bin) native() *C.GtkBin {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkBin(p)
} | go | {
"resource": ""
} |
q169507 | native | validation | func (v *ColorButton) native() *C.GtkColorButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkColorButton(p)
} | go | {
"resource": ""
} |
q169508 | native | validation | func (v *CellRenderer) native() *C.GtkCellRenderer {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCellRenderer(p)
} | go | {
"resource": ""
} |
q169509 | native | validation | func (v *CellRendererSpinner) native() *C.GtkCellRendererSpinner {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCellRendererSpinner(p)
} | go | {
"resource": ""
} |
q169510 | native | validation | func (v *CellRendererPixbuf) native() *C.GtkCellRendererPixbuf {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCellRendererPixbuf(p)
} | go | {
"resource": ""
} |
q169511 | native | validation | func (v *CellRendererText) native() *C.GtkCellRendererText {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCellRendererText(p)
} | go | {
"resource": ""
} |
q169512 | native | validation | func (v *CellRendererToggle) native() *C.GtkCellRendererToggle {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCellRendererToggle(p)
} | go | {
"resource": ""
} |
q169513 | native | validation | func (v *CheckButton) native() *C.GtkCheckButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCheckButton(p)
} | go | {
"resource": ""
} |
q169514 | native | validation | func (v *CheckMenuItem) native() *C.GtkCheckMenuItem {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCheckMenuItem(p)
} | go | {
"resource": ""
} |
q169515 | native | validation | func (v *Clipboard) native() *C.GtkClipboard {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkClipboard(p)
} | go | {
"resource": ""
} |
q169516 | WaitIsTextAvailable | validation | func (v *Clipboard) WaitIsTextAvailable() bool {
c := C.gtk_clipboard_wait_is_text_available(v.native())
return gobool(c)
} | go | {
"resource": ""
} |
q169517 | WaitForText | validation | func (v *Clipboard) WaitForText() (string, error) {
c := C.gtk_clipboard_wait_for_text(v.native())
if c == nil {
return "", nilPtrErr
}
defer C.g_free(C.gpointer(c))
return goString(c), nil
} | go | {
"resource": ""
} |
q169518 | WaitIsRichTextAvailable | validation | func (v *Clipboard) WaitIsRichTextAvailable(buf *TextBuffer) bool {
c := C.gtk_clipboard_wait_is_rich_text_available(v.native(), buf.native())
return gobool(c)
} | go | {
"resource": ""
} |
q169519 | WaitIsUrisAvailable | validation | func (v *Clipboard) WaitIsUrisAvailable() bool {
c := C.gtk_clipboard_wait_is_uris_available(v.native())
return gobool(c)
} | go | {
"resource": ""
} |
q169520 | WaitIsImageAvailable | validation | func (v *Clipboard) WaitIsImageAvailable() bool {
c := C.gtk_clipboard_wait_is_image_available(v.native())
return gobool(c)
} | go | {
"resource": ""
} |
q169521 | SetImage | validation | func (v *Clipboard) SetImage(pixbuf *gdk.Pixbuf) {
C.gtk_clipboard_set_image(v.native(), (*C.GdkPixbuf)(unsafe.Pointer(pixbuf.Native())))
} | go | {
"resource": ""
} |
q169522 | WaitForImage | validation | func (v *Clipboard) WaitForImage() (*gdk.Pixbuf, error) {
c := C.gtk_clipboard_wait_for_image(v.native())
if c == nil {
return nil, nilPtrErr
}
p := &gdk.Pixbuf{glib.Take(unsafe.Pointer(c))}
return p, nil
} | go | {
"resource": ""
} |
q169523 | WaitIsTargetAvailable | validation | func (v *Clipboard) WaitIsTargetAvailable(target gdk.Atom) bool {
c := C.gtk_clipboard_wait_is_target_available(v.native(), C.GdkAtom(unsafe.Pointer(target)))
return gobool(c)
} | go | {
"resource": ""
} |
q169524 | WaitForContents | validation | func (v *Clipboard) WaitForContents(target gdk.Atom) (*SelectionData, error) {
c := C.gtk_clipboard_wait_for_contents(v.native(), C.GdkAtom(unsafe.Pointer(target)))
if c == nil {
return nil, nilPtrErr
}
p := &SelectionData{c}
runtime.SetFinalizer(p, (*SelectionData).free)
return p, nil
} | go | {
"resource": ""
} |
q169525 | native | validation | func (v *Container) native() *C.GtkContainer {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkContainer(p)
} | go | {
"resource": ""
} |
q169526 | native | validation | func (v *CssProvider) native() *C.GtkCssProvider {
if v == nil || v.Object == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkCssProvider(p)
} | go | {
"resource": ""
} |
q169527 | native | validation | func (v *Dialog) native() *C.GtkDialog {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkDialog(p)
} | go | {
"resource": ""
} |
q169528 | native | validation | func (v *Entry) native() *C.GtkEntry {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkEntry(p)
} | go | {
"resource": ""
} |
q169529 | native | validation | func (v *EntryBuffer) native() *C.GtkEntryBuffer {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkEntryBuffer(p)
} | go | {
"resource": ""
} |
q169530 | native | validation | func (v *EntryCompletion) native() *C.GtkEntryCompletion {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkEntryCompletion(p)
} | go | {
"resource": ""
} |
q169531 | native | validation | func (v *EventBox) native() *C.GtkEventBox {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkEventBox(p)
} | go | {
"resource": ""
} |
q169532 | native | validation | func (v *Expander) native() *C.GtkExpander {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkExpander(p)
} | go | {
"resource": ""
} |
q169533 | native | validation | func (v *FileChooser) native() *C.GtkFileChooser {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkFileChooser(p)
} | go | {
"resource": ""
} |
q169534 | native | validation | func (v *FileChooserButton) native() *C.GtkFileChooserButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkFileChooserButton(p)
} | go | {
"resource": ""
} |
q169535 | native | validation | func (v *FileChooserDialog) native() *C.GtkFileChooserDialog {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkFileChooserDialog(p)
} | go | {
"resource": ""
} |
q169536 | native | validation | func (v *FileChooserWidget) native() *C.GtkFileChooserWidget {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkFileChooserWidget(p)
} | go | {
"resource": ""
} |
q169537 | native | validation | func (v *FileFilter) native() *C.GtkFileFilter {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkFileFilter(p)
} | go | {
"resource": ""
} |
q169538 | native | validation | func (v *Frame) native() *C.GtkFrame {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkFrame(p)
} | go | {
"resource": ""
} |
q169539 | native | validation | func (v *AspectFrame) native() *C.GtkAspectFrame {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkAspectFrame(p)
} | go | {
"resource": ""
} |
q169540 | native | validation | func (v *Grid) native() *C.GtkGrid {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkGrid(p)
} | go | {
"resource": ""
} |
q169541 | native | validation | func (v *Image) native() *C.GtkImage {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkImage(p)
} | go | {
"resource": ""
} |
q169542 | SetSize | validation | func (v *Layout) SetSize(width, height uint) {
C.gtk_layout_set_size(v.native(), C.guint(width), C.guint(height))
} | go | {
"resource": ""
} |
q169543 | GetSize | validation | func (v *Layout) GetSize() (width, height uint) {
var w, h C.guint
C.gtk_layout_get_size(v.native(), &w, &h)
return uint(w), uint(h)
} | go | {
"resource": ""
} |
q169544 | native | validation | func (v *LinkButton) native() *C.GtkLinkButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkLinkButton(p)
} | go | {
"resource": ""
} |
q169545 | native | validation | func (v *ListStore) native() *C.GtkListStore {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkListStore(p)
} | go | {
"resource": ""
} |
q169546 | native | validation | func (v *MenuButton) native() *C.GtkMenuButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkMenuButton(p)
} | go | {
"resource": ""
} |
q169547 | native | validation | func (v *MenuItem) native() *C.GtkMenuItem {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkMenuItem(p)
} | go | {
"resource": ""
} |
q169548 | SetLabel | validation | func (v *MenuItem) SetLabel(label string) {
cstr := C.CString(label)
defer C.free(unsafe.Pointer(cstr))
C.gtk_menu_item_set_label(v.native(), (*C.gchar)(cstr))
} | go | {
"resource": ""
} |
q169549 | GetLabel | validation | func (v *MenuItem) GetLabel() string {
l := C.gtk_menu_item_get_label(v.native())
return goString(l)
} | go | {
"resource": ""
} |
q169550 | native | validation | func (v *MessageDialog) native() *C.GtkMessageDialog {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkMessageDialog(p)
} | go | {
"resource": ""
} |
q169551 | native | validation | func (v *Notebook) native() *C.GtkNotebook {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkNotebook(p)
} | go | {
"resource": ""
} |
q169552 | native | validation | func (v *OffscreenWindow) native() *C.GtkOffscreenWindow {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkOffscreenWindow(p)
} | go | {
"resource": ""
} |
q169553 | native | validation | func (v *Orientable) native() *C.GtkOrientable {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkOrientable(p)
} | go | {
"resource": ""
} |
q169554 | native | validation | func (v *Overlay) native() *C.GtkOverlay {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkOverlay(p)
} | go | {
"resource": ""
} |
q169555 | native | validation | func (v *Paned) native() *C.GtkPaned {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkPaned(p)
} | go | {
"resource": ""
} |
q169556 | native | validation | func (v *ProgressBar) native() *C.GtkProgressBar {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkProgressBar(p)
} | go | {
"resource": ""
} |
q169557 | native | validation | func (v *RadioButton) native() *C.GtkRadioButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkRadioButton(p)
} | go | {
"resource": ""
} |
q169558 | native | validation | func (v *RadioMenuItem) native() *C.GtkRadioMenuItem {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkRadioMenuItem(p)
} | go | {
"resource": ""
} |
q169559 | native | validation | func (v *Range) native() *C.GtkRange {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkRange(p)
} | go | {
"resource": ""
} |
q169560 | native | validation | func (v *RecentChooser) native() *C.GtkRecentChooser {
if v == nil || v.Object == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkRecentChooser(p)
} | go | {
"resource": ""
} |
q169561 | native | validation | func (v *RecentFilter) native() *C.GtkRecentFilter {
if v == nil || v.Object == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkRecentFilter(p)
} | go | {
"resource": ""
} |
q169562 | native | validation | func (v *Scale) native() *C.GtkScale {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkScale(p)
} | go | {
"resource": ""
} |
q169563 | native | validation | func (v *Scrollbar) native() *C.GtkScrollbar {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkScrollbar(p)
} | go | {
"resource": ""
} |
q169564 | native | validation | func (v *ScrolledWindow) native() *C.GtkScrolledWindow {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkScrolledWindow(p)
} | go | {
"resource": ""
} |
q169565 | native | validation | func (v *SearchEntry) native() *C.GtkSearchEntry {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSearchEntry(p)
} | go | {
"resource": ""
} |
q169566 | native | validation | func (v *SelectionData) native() *C.GtkSelectionData {
if v == nil {
return nil
}
return v.GtkSelectionData
} | go | {
"resource": ""
} |
q169567 | GetData | validation | func (v *SelectionData) GetData() (data []byte) {
var length C.gint
c := C.gtk_selection_data_get_data_with_length(v.native(), &length)
sliceHeader := (*reflect.SliceHeader)(unsafe.Pointer(&data))
sliceHeader.Data = uintptr(unsafe.Pointer(c))
sliceHeader.Len = int(length)
sliceHeader.Cap = int(length)
return
} | go | {
"resource": ""
} |
q169568 | GetData | validation | func GetData(pointer uintptr) (data []byte) {
c := (*C.GValue)(unsafe.Pointer(pointer))
p := (*C.GtkSelectionData)(unsafe.Pointer(c))
C.gtk_selection_data_get_text(p)
var byteData []byte
var length C.gint
cptr := C.gtk_selection_data_get_data_with_length(p, &length)
sliceHeader := (*reflect.SliceHeader)(unsafe.... | go | {
"resource": ""
} |
q169569 | SetData | validation | func SetData(pointer uintptr, atom gdk.Atom, data []byte) {
c := (*C.GValue)(unsafe.Pointer(pointer))
p := (*C.GtkSelectionData)(unsafe.Pointer(c))
C.gtk_selection_data_set(p, C.GdkAtom(unsafe.Pointer(atom)), C.gint(8), (*C.guchar)(unsafe.Pointer(&data[0])), C.gint(len(data)))
} | go | {
"resource": ""
} |
q169570 | DragSetIconPixbuf | validation | func DragSetIconPixbuf(context *gdk.DragContext, pixbuf *gdk.Pixbuf, hot_x int, hot_y int) {
ctx := unsafe.Pointer(context.Native())
pix := unsafe.Pointer(pixbuf.Native())
C.gtk_drag_set_icon_pixbuf((*C.GdkDragContext)(ctx), (*C.GdkPixbuf)(pix), C.gint(hot_x), C.gint(hot_y))
} | go | {
"resource": ""
} |
q169571 | native | validation | func (v *Separator) native() *C.GtkSeparator {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSeparator(p)
} | go | {
"resource": ""
} |
q169572 | native | validation | func (v *SeparatorMenuItem) native() *C.GtkSeparatorMenuItem {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSeparatorMenuItem(p)
} | go | {
"resource": ""
} |
q169573 | native | validation | func (v *SeparatorToolItem) native() *C.GtkSeparatorToolItem {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSeparatorToolItem(p)
} | go | {
"resource": ""
} |
q169574 | native | validation | func (v *SpinButton) native() *C.GtkSpinButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSpinButton(p)
} | go | {
"resource": ""
} |
q169575 | native | validation | func (v *Spinner) native() *C.GtkSpinner {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSpinner(p)
} | go | {
"resource": ""
} |
q169576 | native | validation | func (v *Statusbar) native() *C.GtkStatusbar {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkStatusbar(p)
} | go | {
"resource": ""
} |
q169577 | native | validation | func (v *Switch) native() *C.GtkSwitch {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkSwitch(p)
} | go | {
"resource": ""
} |
q169578 | native | validation | func (v *TextTag) native() *C.GtkTextTag {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTextTag(p)
} | go | {
"resource": ""
} |
q169579 | native | validation | func (v *TextTagTable) native() *C.GtkTextTagTable {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTextTagTable(p)
} | go | {
"resource": ""
} |
q169580 | native | validation | func (v *TextBuffer) native() *C.GtkTextBuffer {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTextBuffer(p)
} | go | {
"resource": ""
} |
q169581 | SelectRange | validation | func (v *TextBuffer) SelectRange(start, end *TextIter) {
C.gtk_text_buffer_select_range(v.native(), (*C.GtkTextIter)(start), (*C.GtkTextIter)(end))
} | go | {
"resource": ""
} |
q169582 | native | validation | func (v *ToggleButton) native() *C.GtkToggleButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkToggleButton(p)
} | go | {
"resource": ""
} |
q169583 | native | validation | func (v *Toolbar) native() *C.GtkToolbar {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkToolbar(p)
} | go | {
"resource": ""
} |
q169584 | native | validation | func (v *ToolButton) native() *C.GtkToolButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkToolButton(p)
} | go | {
"resource": ""
} |
q169585 | native | validation | func (v *ToggleToolButton) native() *C.GtkToggleToolButton {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkToggleToolButton(p)
} | go | {
"resource": ""
} |
q169586 | native | validation | func (v *ToolItem) native() *C.GtkToolItem {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkToolItem(p)
} | go | {
"resource": ""
} |
q169587 | native | validation | func (v *TreeIter) native() *C.GtkTreeIter {
if v == nil {
return nil
}
return &v.GtkTreeIter
} | go | {
"resource": ""
} |
q169588 | native | validation | func (v *TreeModel) native() *C.GtkTreeModel {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTreeModel(p)
} | go | {
"resource": ""
} |
q169589 | TreePathFromList | validation | func TreePathFromList(list *glib.List) *TreePath {
if list == nil {
return nil
}
return &TreePath{(*C.GtkTreePath)(list.Data().(unsafe.Pointer))}
} | go | {
"resource": ""
} |
q169590 | native | validation | func (v *TreePath) native() *C.GtkTreePath {
if v == nil {
return nil
}
return v.GtkTreePath
} | go | {
"resource": ""
} |
q169591 | GetIndices | validation | func (v *TreePath) GetIndices() []int {
var depth C.gint
var goindices []int
var ginthelp C.gint
indices := uintptr(unsafe.Pointer(C.gtk_tree_path_get_indices_with_depth(v.native(), &depth)))
size := unsafe.Sizeof(ginthelp)
for i := 0; i < int(depth); i++ {
goind := int(*((*C.gint)(unsafe.Pointer(indices))))
... | go | {
"resource": ""
} |
q169592 | native | validation | func (v *TreeSelection) native() *C.GtkTreeSelection {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTreeSelection(p)
} | go | {
"resource": ""
} |
q169593 | GetPath | validation | func (v *TreeRowReference) GetPath() *TreePath {
c := C.gtk_tree_row_reference_get_path(v.native())
if c == nil {
return nil
}
t := &TreePath{c}
runtime.SetFinalizer(t, (*TreePath).free)
return t
} | go | {
"resource": ""
} |
q169594 | GetModel | validation | func (v *TreeRowReference) GetModel() ITreeModel {
c := C.gtk_tree_row_reference_get_model(v.native())
if c == nil {
return nil
}
m := wrapTreeModel(glib.Take(unsafe.Pointer(c)))
return m
} | go | {
"resource": ""
} |
q169595 | Valid | validation | func (v *TreeRowReference) Valid() bool {
c := C.gtk_tree_row_reference_valid(v.native())
return gobool(c)
} | go | {
"resource": ""
} |
q169596 | native | validation | func (v *TreeStore) native() *C.GtkTreeStore {
if v == nil || v.GObject == nil {
return nil
}
p := unsafe.Pointer(v.GObject)
return C.toGtkTreeStore(p)
} | go | {
"resource": ""
} |
q169597 | Insert | validation | func (v *TreeStore) Insert(parent *TreeIter, position int) *TreeIter {
var ti C.GtkTreeIter
var cParent *C.GtkTreeIter
if parent != nil {
cParent = parent.native()
}
C.gtk_tree_store_insert(v.native(), &ti, cParent, C.gint(position))
iter := &TreeIter{ti}
return iter
} | go | {
"resource": ""
} |
q169598 | SettingsGetDefault | validation | func SettingsGetDefault() (*Settings, error) {
c := C.gtk_settings_get_default()
if c == nil {
return nil, nilPtrErr
}
return wrapSettings(glib.Take(unsafe.Pointer(c))), nil
} | go | {
"resource": ""
} |
q169599 | native | validation | func (v *TextMark) native() *C.GtkTextMark {
if v == nil {
return nil
}
return (*C.GtkTextMark)(v)
} | go | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.