一切從這一篇開始 http://developer.chrome.com/apps/about_apps Chrome Apps deliver an experience as capable as a native app, but as safe as a web page. Just like web apps, Chrome Apps are written in HTML5, JavaScript, and CSS. But Chrome Apps look and behave like native apps, and they have native-like capabilities that are much more powerful than those available to web apps. Chrome Apps 就是用網頁語言單是想要做成像原生的App一樣,如果是網頁開發者應該很容易上手,因為語言相同,同樣的一份Code,可以用Chrome Browser直接打開網址,也可以藉由Chrome App的擴充功能(Extension)打開,也可以在Chrome Book(Chrome OS )上打開。 上圖顯示的是用Browser直接打開 localhost的 Hello World 以及載入extension 後開啟的小視窗版Hello World。 Hello World的程式碼 https://github.com/GoogleChrome/chrome-app-samples/tree/master/hello-world Chrome Apps 的基本,就是要可以 local 處理 。 Chrome Apps get the following for free: Your app’s files—all of its JavaScript, CSS, and fonts, plus other resources it needs (such as images)—are already downloaded . Your app can save and optionally sync small amounts of data using the ...
GtkContainer : "gtk_container_get_focus_vadjustment () GtkAdjustment* gtk_container_get_focus_vadjustment (GtkContainer *container); Retrieves the vertical focus adjustment for the container. See gtk_container_set_focus_vadjustment(). container : a GtkContainer Returns : the vertical focus adjustment, or NULL if none has been set. gtk_container_set_focus_vadjustment () void gtk_container_set_focus_vadjustment (GtkContainer *container, GtkAdjustment *adjustment); Hooks up an adjustment to focus handling in a container, so when a child of the container is focused, the adjustment is scrolled to show that widget. This function sets the vertical alignment. See gtk_scrolled_window_get_vadjustment() for a typical way of obtaining the adjustment and gtk_container_set_focus_hadjustment() for setting the horizontal adjustment. The adjustments have to be in pixel units and in the same coordinate system as the allo...
留言
張貼留言