Comments (3)
You finally committed code to the repository using git.
Glad to see your great step!
from libui.
\o/
Now if only I would understand C ... :)
(It's on my perpetual todo list ... but first I have to improve Java - there are many
opportunities via Java too; Andy showed that via glimmer-SWT, and there is
truffleruby in graalvm, as well as jruby. C and C++ are kind of the "real deal"
though, even ruby is written in C.)
from libui.
If you are interested in using C from Ruby, it is not difficult.
- Prepare the shared library.
- Check the library's header file and remember the signature of the function you want to call.
- Use gems like FFI or Fiddle to define the FFI module.
- Specify the path to the shared library.
- Define the method in the module using
attach_function
orextern
.
With these steps, the module will be able to call C functions.
from libui.
Related Issues (20)
- Warning message when running LibUI::FFI.uiInit on Mac HOT 2
- Example for Parent and Child Windows HOT 8
- [Question] Field Edit sign restriction visible in GUI? HOT 1
- libui-ng related methods: how to use it? HOT 1
- Organising on https://github.com/kojix2 ? HOT 3
- Custom toplevel methods: aiming to enhance LibUI HOT 2
- Two things about libui-ng: one is a build failure with "rake"; the other is a suggestion HOT 2
- Table Selection API HOT 12
- Question: Why choose `fiddle` rather than `ffi`? HOT 4
- Optimize performance of area draw methods HOT 3
- Version 0.0.13.pre x86-mingw32 does not work HOT 3
- Table example: HOT 4
- `LibUI.draw_text_layout_extents` always returns 0 values
- [Just info] https://github.com/jamescook/libui-ruby has been archived as of October 2023 HOT 1
- Changelog or compatibility table for (ruby) LibUI? HOT 2
- Request for the addition of a new example: an example in how to use LibUI.new_scrolling_area HOT 2
- [Question mostly] A conceptual API-question: passing 1 (or 0), as opposed to true (or false), in libui HOT 1
- How to build? HOT 8
- Ruby 3.3 fiddle issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libui.