README.textile in fidgit-0.0.6alpha vs README.textile in fidgit-0.1.0
- old
+ new
@@ -47,11 +47,11 @@
class MyGuiState < Fidgit::GuiState
def initialize
super
# Create a vertically packed section, centred in the window.
- pack :vertical, align: :center do
+ vertical align: :center do
# Create a label with a dark green background.
my_label = label "Hello world!", background_color: Gosu::Color.rgb(0, 100, 0)
# Create a button that, when clicked, changes the label.
button("Goodbye", align_h: :center, tip: "Press me and be done with it!") do
@@ -69,10 +69,10 @@
As well as a cursor and tool-tips that are managed by the GuiState for you, there are several elements you can use inside your GuiState.
Elements are best added by using simple methods (listed below). Most of these method accept a block, some offering access to public methods of the element and others being default event handlers.
-The GuiState itself only accepts #pack, but any packer or group accepts any other element method.
+The GuiState itself only accepts #vertical/#horizontal/#grid, but any packer or group accepts any other element method.
h3. GuiState methods
* _pack([:vertical|:horizontal|:grid], ...)_ - Add a packer to the state (Block has access to public methods).
* _clear()_ - remove any packers added to the state.