Is there a way to giver a Layer Object in Pebble C a black (Or any kind) line border?
How to set a line border around a Layer in Pebble C API?
103 Views Asked by coderrick At
1
There are 1 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in PEBBLE-WATCH
- Pebble App Message send timed out
- Pebble Data Logging for Android not doing anything
- Pebble Watch: Send notification to wake up iPhone (Watch -> Phone)
- Can't Connect to Pebble Emulator
- Array breaking in Pebble C
- Cloud pebble does not receive data from iOS app?
- lastConnectedWatch() of PBPebbleCentral returns always nil?
- Why does my Pebble watchface not update the time every minute?
- Image element 'clear' backgroundColor doesn't work
- AppMessage from Android doesnt seem to reach the Pebble watch app
- How to add an image to a window in Pebble.js?
- iOS: 'PebbleKit/PebbleKit.h' file not found Issue
- Failed to fetch events (404) from Google+ Calendars after OAuth 2.0 for limited devices
- Passing functions as parameters to button handlers in C
- Accessing strings in AppMessage array on the pebble
Related Questions in PEBBLE-SDK
- Setting up Pebble SDK with DOCKER
- Hiding Bitmap Layers on Pebble Watchface
- How to change color of individual pebble action bar slot?
- How to round pebble action bar edges?
- Pebble App is not compiling to due image menu icon
- Google Fit sleep doesn't return Pebble deep sleep
- Pebble SDK with Ionic or similar cross platform environment
- Use fontgen.py make custom font for Pebble
- dereferencing pointer to incomplete type pebble GBitmap
- Pebble SDK - Arrays of Structs with Strings (and probably pointers too)
- How to set a line border around a Layer in Pebble C API?
- pebble-clay says my project is outdated, but it's not
- AppMessages Sporadically Don't Get Delivered
- Reverse an ASCII string using C macros only
- Problems with DataLogging after Pebble SDK update to v4.0
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Since you can't draw outside the layer frame, you should want to draw a border just inside it.
You could draw the layer and then draw a rectangle just inside it.
OR
You could have a layer, and another over it, but slightly smaller and appropriately coloured and reduced in size.
OR
You could place a bitmap with the border on the layer.
Edit: Since you asked for code, here is some...
You register a callback after initializing the layer itself with this:
layer_set_update_proc( layer, layer_update_proc );Your callback (which is a separate function) could look like this, with other added garnish: