Module: TkComponent::Builder

Defined in:
lib/tk_component/builder/node.rb,
lib/tk_component/builder/event.rb,
lib/tk_component/builder/tk_item.rb,
lib/tk_component/builder/grid_map.rb,
lib/tk_component/builder/event_handler.rb

Defined Under Namespace

Modules: Scrollable, ValueTyping Classes: Event, EventHandler, GridMap, HPanedWindow, HScrollbar, Node, PanedWindow, ScrollBar, TkEntry, TkItem, TkItemWithVariable, TkRadioButton, TkRadioSet, TkScale, TkText, TkTree, TkTreeNode, TkWindow, VPanedWindow, VScrollbar

Constant Summary collapse

TK_CMDS =
%w(label entry button radio_set radio_button canvas text scale group tree tree_node hscroll_bar vscroll_bar hpaned vpaned).to_set.freeze
LAYOUT_CMDS =
%w(frame hframe vframe row cell).to_set.freeze
EVENT_CMDS =
%w(on_change on_mouse_down on_mouse_up on_mouse_drag on_mouse_wheel on_click on_select on_item_open on_event).to_set.freeze
TOKENS =
(TK_CMDS + LAYOUT_CMDS + EVENT_CMDS).freeze
LAYOUT_OPTIONS =
%i(column row rowspan columnspan sticky x_flex y_flex)
TK_CLASSES =
{
  root: TkRoot,
  frame: Tk::Tile::Frame,
  hframe: Tk::Tile::Frame,
  vframe: Tk::Tile::Frame,
  label: Tk::Tile::Label,
  entry: Tk::Tile::Entry,
  button: Tk::Tile::Button,
  radio_set: Tk::Tile::Frame,
  radio_button: Tk::Tile::RadioButton,
  canvas: Tk::Canvas,
  text: ::TkText,
  scale: Tk::Tile::Scale,
  group: Tk::Tile::LabelFrame,
  tree: Tk::Tile::Treeview,
  hscroll_bar: Tk::Tile::Scrollbar,
  vscroll_bar: Tk::Tile::Scrollbar,
  hpaned: Tk::Tile::Paned,
  vpaned: Tk::Tile::Paned
}
ITEM_CLASSES =
{
  root: TkComponent::Builder::TkWindow,
  frame: TkComponent::Builder::TkItem,
  hframe: TkComponent::Builder::TkItem,
  vframe: TkComponent::Builder::TkItem,
  label: TkComponent::Builder::TkItem,
  entry: TkComponent::Builder::TkEntry,
  button: TkComponent::Builder::TkItem,
  radio_set: TkComponent::Builder::TkRadioSet,
  radio_button: TkComponent::Builder::TkRadioButton,
  canvas: TkComponent::Builder::TkItem,
  text: TkComponent::Builder::TkText,
  scale: TkComponent::Builder::TkScale,
  group: TkComponent::Builder::TkItem,
  tree: TkComponent::Builder::TkTree,
  tree_node: TkComponent::Builder::TkTreeNode,
  hscroll_bar: TkComponent::Builder::HScrollbar,
  vscroll_bar: TkComponent::Builder::VScrollbar,
  hpaned: TkComponent::Builder::HPanedWindow,
  vpaned: TkComponent::Builder::VPanedWindow

}