Dalchemy 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/dalchemy.rb +6 -0
- data/lib/src/app.rb +9 -0
- data/lib/src/components/button.rb +9 -0
- data/lib/src/components/label.rb +14 -0
- data/lib/src/window.rb +25 -0
- metadata +63 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 83e87b9bb061a893d39fae78a8c6a74aa6b15921461c53b0a6b3e38492734c75
|
4
|
+
data.tar.gz: 8ba93b73750e5102a197147fc8f7d9852920d8ed2493085be8c7b43eb21f3f9b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a555428fae9ab9ecab46b476eddbc712f4b2107d921230144c9a6f8b73780386f38a0c6916e51ae4af61fbe64e2f5a8662901cbd2a8cc856977fadd94f6615e8
|
7
|
+
data.tar.gz: 18df7614516c4cd7ab26656dc0776ecbadcaa757bbefbc67ff2bf0786d266d879cd5ac93eb528c7a603e982a4bba653e28d1c4b65d5b70ebf359fa9800ab23ab
|
data/lib/dalchemy.rb
ADDED
data/lib/src/app.rb
ADDED
data/lib/src/window.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Dalchemy
|
2
|
+
class Window
|
3
|
+
def initialize(title:, width:, height:, &block)
|
4
|
+
@window = Gtk::Window.new
|
5
|
+
@window.set_title(title)
|
6
|
+
@window.set_default_size(width, height)
|
7
|
+
@window.signal_connect("destroy") { Gtk.main_quit }
|
8
|
+
|
9
|
+
@fixed = Gtk::Fixed.new
|
10
|
+
@window.add(@fixed)
|
11
|
+
|
12
|
+
instance_eval(&block) if block_given?
|
13
|
+
|
14
|
+
@window.show_all
|
15
|
+
end
|
16
|
+
|
17
|
+
def label(text, x:, y:)
|
18
|
+
Dalchemy::Label.new(@fixed, text, x, y)
|
19
|
+
end
|
20
|
+
|
21
|
+
def button(text, x:, y:, &block)
|
22
|
+
Dalchemy::Button.new(@fixed, text, x, y, &block)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: Dalchemy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- mvghasty
|
8
|
+
bindir: bin
|
9
|
+
cert_chain: []
|
10
|
+
date: 2025-04-15 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: gtk3
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
description: Dalchemy is a Ruby library for creating fast, elegant and functional
|
27
|
+
graphical interfaces using GTK3.
|
28
|
+
email:
|
29
|
+
- fasmagoric.dev@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- lib/dalchemy.rb
|
35
|
+
- lib/src/app.rb
|
36
|
+
- lib/src/components/button.rb
|
37
|
+
- lib/src/components/label.rb
|
38
|
+
- lib/src/window.rb
|
39
|
+
homepage: https://github.com/mvghasty/Dalchemy
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata:
|
43
|
+
source_code_uri: https://github.com/mvghasty/Dalchemy
|
44
|
+
homepage_uri: https://github.com/mvghasty/Dalchemy
|
45
|
+
bug_tracker_uri: https://github.com/mvghasty/Dalchemy/issues
|
46
|
+
rdoc_options: []
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
requirements: []
|
60
|
+
rubygems_version: 3.6.6
|
61
|
+
specification_version: 4
|
62
|
+
summary: Create GUIs with Ruby the easy way
|
63
|
+
test_files: []
|