class Boleite::GUI::Window

Defined in:

boleite/gui/window.cr

Constant Summary

DEFAULT_HEADER_SIZE = 24.0
DEFAULT_SIZE = Vector2f.new(100.0, 30.0)

Constructors

Instance Method Summary

Instance methods inherited from class Boleite::GUI::Container

[](args)
[](*args, **options)
[](*args, **options, &)
[]
, acc_allocation acc_allocation, add(child) add, clear clear, contract_ensures_add(return_value, child) contract_ensures_add, contract_ensures_remove(return_value, child) contract_ensures_remove, contract_post_add(check_depth, return_value, child) contract_post_add, contract_post_remove(check_depth, return_value, child) contract_post_remove, contract_pre_add(check_depth, child) contract_pre_add, contract_pre_remove(check_depth, child) contract_pre_remove, contract_requires_add(child) contract_requires_add, contract_requires_remove(child) contract_requires_remove, each_widget(&)
each_widget
each_widget
, find(name) find, min_size min_size, min_size=(min_size) min_size=, num_widgets num_widgets, on_state_change on_state_change, pass_input_to_children(event : InputEvent) pass_input_to_children, remove(child) remove, reset_acc_allocation reset_acc_allocation, reset_body_allocation reset_body_allocation, test_invariant_contracts(method = "") test_invariant_contracts, update_acc_allocation update_acc_allocation, update_body_allocation update_body_allocation

Constructor methods inherited from class Boleite::GUI::Container

new new

Instance methods inherited from class Boleite::GUI::Widget

absolute_allocation absolute_allocation, absolute_position absolute_position, allocation allocation, clear_repaint clear_repaint, contract_ensures_parentassign(return_value, parent) contract_ensures_parentassign, contract_post_parentassign(check_depth, return_value, parent) contract_post_parentassign, contract_pre_parentassign(check_depth, parent) contract_pre_parentassign, contract_requires_parentassign(parent) contract_requires_parentassign, enabled=(enabled) enabled=, enabled? enabled?, has_mouse_focus? has_mouse_focus?, input input, left_click : Signal_left_click left_click, mark_dirty mark_dirty, mouse_enter : Signal_mouse_enter mouse_enter, mouse_leave : Signal_mouse_leave mouse_leave, mouse_over : Signal_mouse_over mouse_over, move(pos) move, name name, name=(name) name=, on_mouse_enter on_mouse_enter, on_mouse_leave on_mouse_leave, on_state_change on_state_change, parent parent, parent=(val : Nil)
parent=(parent)
parent=
, position position, position=(pos) position=, pulse : Signal_pulse pulse, repaint? repaint?, right_click : Signal_right_click right_click, size size, size=(size) size=, state_change : Signal_state_change state_change, test_invariant_contracts(method = "") test_invariant_contracts, visible=(visible) visible=, visible? visible?

Constructor methods inherited from class Boleite::GUI::Widget

new new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(child) #

[View source]
def add_close_button(&block) #

[View source]
def close_button : Boleite::GUI::Button? #

[View source]
def header_allocation #

[View source]
def header_character_size=(size) #

[View source]
def header_drag : Signal_header_drag #

[View source]
def header_label : Boleite::GUI::Label #

[View source]
def header_size : Float64 #

[View source]
def header_size=(header_size : Float64) #

[View source]
def header_text=(text) #

[View source]
def remove_close_button #

[View source]
def reset_acc_allocation #

[View source]
def set_next_to(other : Window) #

[View source]
def update_acc_allocation #

[View source]