本文整理汇总了Golang中github.com/gotk3/gotk3/glib.Type函数的典型用法代码示例。如果您正苦于以下问题:Golang Type函数的具体用法?Golang Type怎么用?Golang Type使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Type函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
{glib.Type(C.pango_attr_type_get_type()), marshalAttrType},
{glib.Type(C.pango_underline_get_type()), marshalUnderline},
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:raichu,项目名称:gotk3,代码行数:8,代码来源:pango-attributes.go
示例2: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
{glib.Type(C.gtk_revealer_transition_type_get_type()), marshalRevealerTransitionType},
{glib.Type(C.gtk_stack_transition_type_get_type()), marshalStackTransitionType},
// Objects/Interfaces
{glib.Type(C.gtk_header_bar_get_type()), marshalHeaderBar},
{glib.Type(C.gtk_list_box_get_type()), marshalListBox},
{glib.Type(C.gtk_list_box_row_get_type()), marshalListBoxRow},
{glib.Type(C.gtk_revealer_get_type()), marshalRevealer},
{glib.Type(C.gtk_search_bar_get_type()), marshalSearchBar},
{glib.Type(C.gtk_stack_get_type()), marshalStack},
{glib.Type(C.gtk_stack_switcher_get_type()), marshalStackSwitcher},
}
glib.RegisterGValueMarshalers(tm)
//Contribute to casting
for k, v := range map[string]WrapFn{
"GtkHeaderBar": wrapHeaderBar,
"GtkListBox": wrapListBox,
"GtkListBoxRow": wrapListBoxRow,
"GtkRevealer": wrapRevealer,
"GtkSearchBar": wrapSearchBar,
"GtkStack": wrapStack,
} {
WrapMap[k] = v
}
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:29,代码来源:gtk_since_3_10.go
示例3: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_level_bar_mode_get_type()), marshalLevelBarMode},
{glib.Type(C.gtk_level_bar_get_type()), marshalLevelBar},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkLevelBar"] = wrapLevelBar
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:11,代码来源:level_bar.go
示例4: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_color_chooser_get_type()), marshalColorChooser},
{glib.Type(C.gtk_color_chooser_dialog_get_type()), marshalColorChooserDialog},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkColorChooser"] = wrapColorChooser
WrapMap["GtkColorChooserDialog"] = wrapColorChooserDialog
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:11,代码来源:color_chooser.go
示例5: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_combo_box_get_type()), marshalComboBox},
{glib.Type(C.gtk_combo_box_text_get_type()), marshalComboBoxText},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkComboBox"] = wrapComboBox
WrapMap["GtkComboBoxText"] = wrapComboBoxText
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:11,代码来源:combo_box.go
示例6: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
{glib.Type(C.pango_alignment_get_type()), marshalAlignment},
{glib.Type(C.pango_ellipsize_mode_get_type()), marshalEllipsizeMode},
{glib.Type(C.pango_wrap_mode_get_type()), marshalWrapMode},
// Objects/Interfaces
// {glib.Type(C.pango_layout_get_type()), marshalLayout},
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:raichu,项目名称:gotk3,代码行数:12,代码来源:pango-layout.go
示例7: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_app_chooser_get_type()), marshalAppChooser},
{glib.Type(C.gtk_app_chooser_button_get_type()), marshalAppChooserButton},
{glib.Type(C.gtk_app_chooser_widget_get_type()), marshalAppChooserWidget},
{glib.Type(C.gtk_app_chooser_dialog_get_type()), marshalAppChooserDialog},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkAppChooser"] = wrapAppChooser
WrapMap["GtkAppChooserButton"] = wrapAppChooserButton
WrapMap["GtkAppChooserWidget"] = wrapAppChooserWidget
WrapMap["GtkAppChooserDialog"] = wrapAppChooserDialog
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:15,代码来源:app_chooser.go
示例8: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
// Objects/Interfaces
{glib.Type(C.g_menu_model_get_type()), marshalMenuModel},
{glib.Type(C.g_menu_link_iter_get_type()), marshalMenuLinkIter},
{glib.Type(C.g_menu_attribute_iter_get_type()), marshalMenuAttributeIter},
// Boxed
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:gotk3,项目名称:gio,代码行数:15,代码来源:GMenuModel.go
示例9: unwrapTypes
func unwrapTypes(ts []glibi.Type) []glib.Type {
result := make([]glib.Type, len(ts))
for ix, rr := range ts {
result[ix] = glib.Type(rr)
}
return result
}
开发者ID:twstrike,项目名称:coyim,代码行数:7,代码来源:real_gtk.go
示例10: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_popover_get_type()), marshalPopover},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkPopover"] = wrapPopover
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:8,代码来源:popover_since_3_12.go
示例11: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
// Objects/Interfaces
{glib.Type(C.pango_font_description_get_type()), marshalFontDescription},
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:8,代码来源:pango-font.go
示例12: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_about_dialog_get_type()), marshalAboutDialog},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkAboutDialog"] = wrapAboutDialog
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:9,代码来源:aboutdialog.go
示例13: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_info_bar_get_type()), marshalInfoBar},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkInfoBar"] = wrapInfoBar
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:9,代码来源:info_bar.go
示例14: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_settings_get_type()), marshalSettings},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkSettings"] = wrapSettings
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:9,代码来源:settings.go
示例15: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
{glib.Type(C.cairo_gobject_antialias_get_type()), marshalAntialias},
{glib.Type(C.cairo_gobject_content_get_type()), marshalContent},
{glib.Type(C.cairo_gobject_fill_rule_get_type()), marshalFillRule},
{glib.Type(C.cairo_gobject_line_cap_get_type()), marshalLineCap},
{glib.Type(C.cairo_gobject_line_join_get_type()), marshalLineJoin},
{glib.Type(C.cairo_gobject_operator_get_type()), marshalOperator},
{glib.Type(C.cairo_gobject_status_get_type()), marshalStatus},
{glib.Type(C.cairo_gobject_surface_type_get_type()), marshalSurfaceType},
// Boxed
{glib.Type(C.cairo_gobject_context_get_type()), marshalContext},
{glib.Type(C.cairo_gobject_surface_get_type()), marshalSurface},
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:raichu,项目名称:gotk3,代码行数:18,代码来源:cairo.go
示例16: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_action_bar_get_type()), marshalActionBar},
}
glib.RegisterGValueMarshalers(tm)
WrapMap["GtkActionBar"] = wrapActionBar
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:9,代码来源:actionbar_since_3_12.go
示例17: init
func init() {
tm := []glib.TypeMarshaler{
{glib.Type(C.gtk_alignment_get_type()), marshalAlignment},
{glib.Type(C.gtk_arrow_get_type()), marshalArrow},
{glib.Type(C.gtk_misc_get_type()), marshalMisc},
{glib.Type(C.gtk_status_icon_get_type()), marshalStatusIcon},
}
glib.RegisterGValueMarshalers(tm)
//Contribute to casting
for k, v := range map[string]WrapFn{
"GtkAlignment": wrapAlignment,
"GtkArrow": wrapArrow,
"GtkMisc": wrapMisc,
"GtkStatusIcon": wrapStatusIcon,
} {
WrapMap[k] = v
}
}
开发者ID:yamnikov-oleg,项目名称:gotk3,代码行数:19,代码来源:gtk_deprecated_since_3_14.go
示例18: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
// Objects/Interfaces
{glib.Type(C.g_menu_get_type()), marshalMenu},
// Boxed
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:gotk3,项目名称:gio,代码行数:13,代码来源:GMenu.go
示例19: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
// Objects/Interfaces
{glib.Type(C.g_action_map_get_type()), marshalActionMap},
// Boxed
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:gotk3,项目名称:gio,代码行数:13,代码来源:GActionMap.go
示例20: init
func init() {
tm := []glib.TypeMarshaler{
// Enums
{glib.Type(C.g_application_flags_get_type()), marshalApplicationFlags},
// Objects/Interfaces
{glib.Type(C.g_application_get_type()), marshalApplication},
{glib.Type(C.g_cancellable_get_type()), marshalCancellable},
{glib.Type(C.g_dbus_connection_get_type()), marshalDBusConnection},
{glib.Type(C.g_file_get_type()), marshalFile},
{glib.Type(C.g_notification_get_type()), marshalNotification},
{glib.Type(C.g_type_module_get_type()), marshalTypeModule},
// Boxed
}
glib.RegisterGValueMarshalers(tm)
}
开发者ID:gotk3,项目名称:gio,代码行数:17,代码来源:gio.go
注:本文中的github.com/gotk3/gotk3/glib.Type函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论