Class: GamesAndRpgParadise::GUI::Gtk::ShakesAndFidgets
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- GamesAndRpgParadise::GUI::Gtk::ShakesAndFidgets
show all
- Includes:
- Gtk::BaseModule
- Defined in:
- lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb
Overview
GamesAndRpgParadise::GUI::Gtk::ShakesAndFidgets
Constant Summary
collapse
- NAMESPACE =
inspect
- TITLE =
'Shakes and Fidgets'
- FULL_PATH_TO_THE_IMAGE =
#
FULL_PATH_TO_THE_IMAGE
#
'/home/x/DATA/PROGRAMMING_LANGUAGES/RUBY/src/games_paradise/lib/games_paradise/images/shakes_and_fidgets/SHAKES_AND_FIDGETS_MAIN_TITLE.jpg'
- WIDTH =
1280
- HEIGHT =
600
- USE_THIS_FONT =
:dejavu_condensed_22
Class Method Summary
collapse
-
.run(i = ARGV) ⇒ Object
# === GamesAndRpgParadise::GUI::Gtk::ShakesAndFidgets.run ========================================================================= #.
Instance Method Summary
collapse
Constructor Details
#initialize(commandline_arguments = ARGV, run_already = true) ⇒ ShakesAndFidgets
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 57
def initialize(
commandline_arguments = ARGV,
run_already = true
)
super(:vertical)
reset
set_commandline_arguments(
commandline_arguments
)
run if run_already
end
|
Class Method Details
.run(i = ARGV) ⇒ Object
#
GamesAndRpgParadise::GUI::Gtk::ShakesAndFidgets.run
#
137
138
139
140
141
142
143
144
145
146
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 137
def self.run(
i = ARGV
)
require 'gtk_paradise/run'
_ = ::GamesAndRpgParadise::GUI::Gtk::ShakesAndFidgets.new(i)
r = ::Gtk.run
r << _
r.automatic_size_then_automatic_title
r.top_left_then_run
end
|
Instance Method Details
#border_size? ⇒ Boolean
105
106
107
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 105
def border_size?
0
end
|
#connect_skeleton ⇒ Object
#
connect_skeleton (connect tag)
#
118
119
120
121
122
123
124
125
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 118
def connect_skeleton
abort_on_exception
minimal(gtk_left_aligned_label('Shakes and Fidgets'))
@label = gtk_label 'Shakes & Fidget'
@image = gtk_image(FULL_PATH_TO_MAIN_TITLE)
@hbox = add_hbox(@label, @image)
add(@hbox)
end
|
#create_skeleton ⇒ Object
#
create_skeleton (create tag)
#
112
113
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 112
def create_skeleton
end
|
#padding? ⇒ Boolean
98
99
100
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 98
def padding?
0
end
|
#reset ⇒ Object
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 72
def reset
reset_the_internal_variables
@configuration = [true, __dir__, NAMESPACE]
@title = TITLE
set_width(WIDTH)
set_height(HEIGHT)
set_use_this_font(USE_THIS_FONT)
use_gtk_paradise_project_css_file infer_the_size_automatically
end
|
#run ⇒ Object
130
131
132
|
# File 'lib/games_and_rpg_paradise/games/shakes_and_fidgets/gui/gtk3/shakes_and_fidgets.rb', line 130
def run
create_skeleton_then_connect_skeleton
end
|