Class: Wx::AUI::AuiSimpleTabArt
- Defined in:
- lib/wx/doc/gen/aui/aui_tab_art.rb
Overview
Another standard tab art provider for AuiNotebook.
AuiSimpleTabArt is derived from AuiTabArt demonstrating how to write a completely new tab art class. It can also be used as alternative to AuiDefaultTabArt. <div class=‘appearance’><span class=‘appearance’>Appearance:</span><table class=‘appearance’><tr><td> Generic Appearance </td></tr></table></div>
Category: Window Docking (wxAUI)
Instance Method Summary collapse
-
#clone ⇒ Wx::AUI::AuiTabArt
Clones the art object.
-
#draw_background(dc, wnd, rect) ⇒ void
Draws a background on the given area.
-
#draw_button(dc, wnd, in_rect, bitmap_id, button_state, orientation, out_rect) ⇒ void
Draws a button.
-
#draw_tab(dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect) ⇒ Integer
Draws a tab.
-
#get_best_tab_ctrl_size(arg, arg1, arg2) ⇒ Integer
(also: #best_tab_ctrl_size)
Returns the tab control size.
-
#get_indent_size ⇒ Integer
(also: #indent_size)
Returns the indent size.
- #get_tab_size(dc, wnd, caption, bitmap, active, closeButtonState) ⇒ Array(Wx::Size,Integer) (also: #tab_size)
- #initialize ⇒ Wx::AUI::AuiSimpleTabArt constructor
-
#set_active_colour(colour) ⇒ void
(also: #active_colour=)
Sets the colour of the selected tab.
-
#set_colour(colour) ⇒ void
(also: #colour=)
Sets the colour of the inactive tabs.
-
#set_flags(flags) ⇒ void
(also: #flags=)
Sets flags.
-
#set_measuring_font(font) ⇒ void
(also: #measuring_font=)
Sets the font used for calculating measurements.
-
#set_normal_font(font) ⇒ void
(also: #normal_font=)
Sets the normal font for drawing labels.
-
#set_selected_font(font) ⇒ void
(also: #selected_font=)
Sets the font for drawing text for selected UI elements.
-
#set_sizing_info(tab_ctrl_size, tab_count, wnd = nil) ⇒ void
Sets sizing information.
- #show_drop_down(wnd, items, activeIdx) ⇒ Integer
Methods inherited from AuiTabArt
#draw_page_tab, #get_button_rect, #get_normal_font, #get_page_tab_size, #get_selected_font
Constructor Details
#initialize ⇒ Wx::AUI::AuiSimpleTabArt
227 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 227 def initialize; end |
Instance Method Details
#clone ⇒ Wx::AUI::AuiTabArt
Clones the art object.
231 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 231 def clone; end |
#draw_background(dc, wnd, rect) ⇒ void
This method returns an undefined value.
Draws a background on the given area.
289 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 289 def draw_background(dc, wnd, rect) end |
#draw_button(dc, wnd, in_rect, bitmap_id, button_state, orientation, out_rect) ⇒ void
This method returns an undefined value.
Draws a button.
313 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 313 def (dc, wnd, in_rect, bitmap_id, , orientation, out_rect) end |
#draw_tab(dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect) ⇒ Integer
Draws a tab.
This function used to be pure virtual and so had to be overridden in the derived classes in the previous versions of wxWidgets, however since version 3.3.0 it doesn’t have to be overridden if Wx::AUI::AuiTabArt#draw_page_tab is overridden and, moreover, it is recommended to override Wx::AUI::AuiTabArt#draw_page_tab instead of this function in the new code.
302 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 302 def draw_tab(dc, wnd, page, rect, , out_tab_rect, ) end |
#get_best_tab_ctrl_size(arg, arg1, arg2) ⇒ Integer Also known as: best_tab_ctrl_size
Returns the tab control size.
341 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 341 def get_best_tab_ctrl_size(arg, arg1, arg2) end |
#get_indent_size ⇒ Integer Also known as: indent_size
Returns the indent size.
317 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 317 def get_indent_size; end |
#get_tab_size(dc, wnd, caption, bitmap, active, closeButtonState) ⇒ Array(Wx::Size,Integer) Also known as: tab_size
327 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 327 def get_tab_size(dc, wnd, caption, bitmap, active, closeButtonState) end |
#set_active_colour(colour) ⇒ void Also known as: active_colour=
This method returns an undefined value.
Sets the colour of the selected tab.
281 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 281 def set_active_colour(colour) end |
#set_colour(colour) ⇒ void Also known as: colour=
This method returns an undefined value.
Sets the colour of the inactive tabs.
275 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 275 def set_colour(colour) end |
#set_flags(flags) ⇒ void Also known as: flags=
This method returns an undefined value.
Sets flags.
236 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 236 def set_flags(flags) end |
#set_measuring_font(font) ⇒ void Also known as: measuring_font=
This method returns an undefined value.
Sets the font used for calculating measurements.
269 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 269 def set_measuring_font(font) end |
#set_normal_font(font) ⇒ void Also known as: normal_font=
This method returns an undefined value.
Sets the normal font for drawing labels.
254 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 254 def set_normal_font(font) end |
#set_selected_font(font) ⇒ void Also known as: selected_font=
This method returns an undefined value.
Sets the font for drawing text for selected UI elements.
263 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 263 def set_selected_font(font) end |
#set_sizing_info(tab_ctrl_size, tab_count, wnd = nil) ⇒ void
This method returns an undefined value.
Sets sizing information.
The wnd argument is only present in wxWidgets 3.1.6 and newer and is required, it only has nil default value for compatibility reasons.
246 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 246 def set_sizing_info(tab_ctrl_size, tab_count, wnd=nil) end |
#show_drop_down(wnd, items, activeIdx) ⇒ Integer
334 |
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 334 def show_drop_down(wnd, items, activeIdx) end |