/ Published in: Java
This snippet presents how the java library to ubuntu unity launcher could look like.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * This interface provides access to some native Unity methods. * @author kdaniel * */ public interface UnityLauncherLibrary extends Library { UnityLauncherLibrary INSTANCE = (UnityLauncherLibrary) Native.loadLibrary("libunity", UnityLauncherLibrary.class); /** * Gets an "object" corresponding to particular *.desktop file. * @param id - the id of the launcher * @return a pointer to the object */ /** * Makes a progress bar visible for particular launcher entry. * @param self - a launcher entry that should or should not display the progress bar * @param visible - true if the progress bar should be made visible. */ public abstract void unity_launcher_entry_set_progress_visible (Pointer self, boolean visible); /** * Actually updates the progress bar in Unity Launcher. * @param self - a launcher entry that should or should not display the progress bar * @param progress - a value from range 0.0 to 1.0. */ public abstract void unity_launcher_entry_set_progress (Pointer self, double progress); }
URL: http://eclipseandlinux.blogspot.com/