Class: Wx::HTML::HtmlContainerCell
- Defined in:
- lib/wx/doc/gen/html/html_cell.rb
Overview
The HtmlContainerCell class is an implementation of a cell that may contain more cells in it.
It is heavily used in the Wx::HTML layout algorithm.
Category: Wx::HTML
Instance Method Summary collapse
-
#detach(cell) ⇒ void
Detach a child cell.
-
#get_align_hor ⇒ Integer
(also: #align_hor)
Returns container’s horizontal alignment.
-
#get_align_ver ⇒ Integer
(also: #align_ver)
Returns container’s vertical alignment.
-
#get_background_colour ⇒ Wx::Colour
(also: #background_colour)
Returns the background colour of the container or NULL_COLOUR if no background colour is set.
-
#get_indent(ind) ⇒ Integer
(also: #indent)
Returns the indentation.
-
#get_indent_units(ind) ⇒ Integer
(also: #indent_units)
Returns the units of indentation for ind where ind is one of the Wx::HTML_INDENT_* constants.
-
#initialize(parent) ⇒ Wx::HTML::HtmlContainerCell
constructor
Constructor.
-
#insert_cell(cell) ⇒ void
Inserts a new cell into the container.
-
#set_align_hor(al) ⇒ void
(also: #align_hor=)
Sets the container’s horizontal alignment.
-
#set_align_ver(al) ⇒ void
(also: #align_ver=)
Sets the container’s vertical alignment.
-
#set_background_colour(clr) ⇒ void
(also: #background_colour=)
Sets the background colour for this container.
-
#set_border(clr1, clr2, border = 1) ⇒ void
Sets the border (frame) colours.
-
#set_indent(i, what, units = Wx::HTML::HTML_UNITS_PIXELS) ⇒ void
Sets the indentation (free space between borders of container and subcells).
-
#set_min_height(h, align = Wx::HTML::HTML_ALIGN_TOP) ⇒ void
(also: #min_height=)
Sets minimal height of the container.
Methods inherited from HtmlCell
#convert_to_text, #find_cell_by_pos, #get_descent, #get_first_child, #get_height, #get_id, #get_link, #get_next, #get_parent, #get_pos_x, #get_pos_y, #get_width, #set_id, #set_link, #set_next, #set_parent, #set_pos
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize(parent) ⇒ Wx::HTML::HtmlContainerCell
Constructor.
parent is pointer to parent container or NULL.
338 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 338 def initialize(parent) end |
Instance Method Details
#detach(cell) ⇒ void
This method returns an undefined value.
Detach a child cell.
Detaching a cell removes it from this container and allows reattaching it to another one by using #insert_cell. Alternatively, this method can be used to selectively remove some elements of the HTML document tree by deleting the cell after calling it.
345 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 345 def detach(cell) end |
#get_align_hor ⇒ Integer Also known as: align_hor
Returns container’s horizontal alignment.
349 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 349 def get_align_hor; end |
#get_align_ver ⇒ Integer Also known as: align_ver
Returns container’s vertical alignment.
354 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 354 def get_align_ver; end |
#get_background_colour ⇒ Wx::Colour Also known as: background_colour
Returns the background colour of the container or NULL_COLOUR if no background colour is set.
359 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 359 def get_background_colour; end |
#get_indent(ind) ⇒ Integer Also known as: indent
Returns the indentation.
ind is one of the Wx::HTML_INDENT_* constants.
You must call #get_indent_units with same ind parameter in order to correctly interpret the returned integer value. It is NOT always in pixels!
373 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 373 def get_indent(ind) end |
#get_indent_units(ind) ⇒ Integer Also known as: indent_units
Returns the units of indentation for ind where ind is one of the Wx::HTML_INDENT_* constants.
379 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 379 def get_indent_units(ind) end |
#insert_cell(cell) ⇒ void
This method returns an undefined value.
Inserts a new cell into the container.
Note that the container takes ownership of the cell and will delete it when it itself is destroyed.
387 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 387 def insert_cell(cell) end |
#set_align_hor(al) ⇒ void Also known as: align_hor=
This method returns an undefined value.
Sets the container’s horizontal alignment.
During Wx::HTML::HtmlCell#layout each line is aligned according to al value.
399 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 399 def set_align_hor(al) end |
#set_align_ver(al) ⇒ void Also known as: align_ver=
This method returns an undefined value.
Sets the container’s vertical alignment.
This is per-line alignment!
411 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 411 def set_align_ver(al) end |
#set_background_colour(clr) ⇒ void Also known as: background_colour=
This method returns an undefined value.
Sets the background colour for this container.
417 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 417 def set_background_colour(clr) end |
#set_border(clr1, clr2, border = 1) ⇒ void
This method returns an undefined value.
Sets the border (frame) colours.
A border is a rectangle around the container.
427 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 427 def set_border(clr1, clr2, border=1) end |
#set_indent(i, what, units = Wx::HTML::HTML_UNITS_PIXELS) ⇒ void
This method returns an undefined value.
Sets the indentation (free space between borders of container and subcells).
445 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 445 def set_indent(i, what, units=Wx::HTML::HTML_UNITS_PIXELS) end |
#set_min_height(h, align = Wx::HTML::HTML_ALIGN_TOP) ⇒ void Also known as: min_height=
This method returns an undefined value.
Sets minimal height of the container.
When container’s Wx::HTML::HtmlCell#layout is called, m_Height is set depending on layout of subcells to the height of area covered by layed-out subcells. Calling this method guarantees you that the height of container is never smaller than h - even if the subcells cover much smaller area.
453 |
# File 'lib/wx/doc/gen/html/html_cell.rb', line 453 def set_min_height(h, align=Wx::HTML::HTML_ALIGN_TOP) end |