roderik11 / squid Goto Github PK
View Code? Open in Web Editor NEWC# Realtime GUI System
License: MIT License
C# Realtime GUI System
License: MIT License
Just a note of appreciation for open-sourcing this! I e-mailed you some time back about when this was going to happen. I forked your repository and will be pushing things to you as I encounter them.
I have been using a decompiled version so far and made a few adjustments that are already worth-while to push back in the short future, most notable: Rotation with working collision (currently a desktop as a whole, since that's what I needed).
Hello!
Thanks for OSS it. It looks very promissor!
I was trying to run it on one of our devices here without success... nothing renders...
I've implemented your renderer interface and got this sample:
var width = 320;
var height = 240;
var gfx = new FramebufferDeviceDriver("/dev/fb", width, height, (width * height * 16) >> 3, 90);
Gui.Renderer = new PIRenderer(gfx);
var desktop = new Desktop();
desktop.Size = new Point(240, 320);
desktop.ModalColor = ColorInt.RGB(0, 0, 200);
desktop.Visible = true;
desktop.Skin = Gui.GenerateStandardSkin();
var window = new Window();
window.Name = "home";
window.Size = new Point(240, 320);
var label = new Label();
label.Name = "lblText";
label.Text = "Testing Skia on new GUI!!!";
label.Position = new Point(0, 20);
label.Size = new Point(20, 20);
label.TextColor = ColorInt.RGB(200, 0, 0);
window.Controls.Add(label);
window.Show(desktop);
desktop.Draw();
Basically it draws to the underlying framebuffer on the PIRenderer class... I put a breakpoint for instance on DrawBox at our renderer implementation but it is never called by the window or the desktop...
Am I missing something? Can you provide a barebone sample on how to use it?
Thanks! Keep the good work!
Best regards,
Gutemberg
After we can window.Show(desktop)
how can we close a window and stop it to being invoked on the render loop?
We noticed that after we call window.Close() the window still receive calls on DrawBefore() and DrawCustom()
How do make it stop rendering?
Thanks
Hi!
I have the following code that is used in a message screen:
_msgFrame = new Frame();
_msgFrame.Dock = DockStyle.Bottom;
_msgFrame.Size = new Point(240, 280);
Controls.Add(_msgFrame);
_lblMsg = new Label();
_lblMsg.Dock = DockStyle.Fill;
_lblMsg.TextWrap = true;
_lblMsg.Style = textStyle;
_lblMsg.Text = message;
_lblMsg.Margin = new Margin(10);
_msgFrame.Controls.Add(_lblMsg);
So, how does the Label.TextWrap
works? I would expect that set it to true would make a word which will cross the right border of the control to be wrapped to the next line but that isn't happening...
Am I doing anything wrong?
Thanks again for the great framework! :)
In the Forum the Squid have a lot of tips which is now unreachable because the forum is down. I tried to visit the webpage with WayBackMachine but it seems it didn't save any of the topics :(.
@Roderik11 Please if you have the local files can you submit it? Thank you in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.