gogoa

package module
v0.0.0-...-a6376c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2015 License: MIT Imports: 2 Imported by: 0

README

gogoa

Cocoa bindings for Go

Why?

Just for fun and curiosity. I was wondering how would it take to show a Cocoa Window through Go and here you Go 😄

I don't know if this project will ever be useful and I'm rather sure this won't be useful anytime if it's just me coding it so I welcome contributions. They would make me feel I'm not alone :p

Getting started

The fastest way to try this project is running a Cocoa window. Actually this is the only thing you can do with it currently.

package main

import (
  "github.com/alediaferia/gogoa"
)

func main() {
  app := gogoa.SharedApplication()
  window := gogoa.NewWindow(0, 0, 200, 200)
  window.SetTitle("Gogoga!")
  window.MakeKeyAndOrderFront()

  app.Run()
}

Screenshots

Gogoa runs

Contribute

I would really love other people interested in this to help me build something useful. Please, feel free to push whatever pull request comes to your mind. Also, I'd be happy to discuss the next steps with you.

License

This codebase is currently licensed under MIT License you can find here

Copyright (c) Alessandro Diaferia alediaferia@gmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func SharedApplication

func SharedApplication() *Application

func (*Application) Run

func (this *Application) Run()

type Window

type Window struct {
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(x, y, width, height int) *Window

func (*Window) MakeKeyAndOrderFront

func (self *Window) MakeKeyAndOrderFront()

func (*Window) SetTitle

func (self *Window) SetTitle(title string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL