Function Macro

GLibSTRUCT_OFFSET

Declaration

#define G_STRUCT_OFFSET (
  struct_type,
  member
)

Description

Returns the offset, in bytes, of a member of a struct.

This function is not directly available to language bindings.

Parameters

struct_type

Type: -

A structure type, e.g. GtkWidget.

member

Type: -

A field in the structure, e.g. window.