Class: Wx::AUI::AuiTabArt

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/aui/aui_tab_art.rb

Overview

Tab art provider defines all the drawing functions used by AuiNotebook.

This allows the AuiNotebook to have a pluggable look-and-feel. By default, a AuiNotebook uses an instance of this class called AuiDefaultTabArt which provides bitmap art and a colour scheme that is adapted to the major platforms’ look. You can either derive from that class to alter its behaviour or write a completely new tab art class. Another example of creating a new AuiNotebook tab bar is AuiSimpleTabArt. Call Wx::AUI::AuiNotebook#set_art_provider to make use of this new tab art.

Category: Window Docking (wxAUI)

Requires:

  • USE_AUI

Direct Known Subclasses

AuiDefaultTabArt, AuiSimpleTabArt

Instance Method Summary collapse

Constructor Details

#initializeWx::AUI::AuiTabArt

Constructor.



25
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 25

def initialize; end

Instance Method Details

#cloneWx::AUI::AuiTabArt

Clones the art object.

Returns:



29
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 29

def clone; end

#draw_background(dc, wnd, rect) ⇒ void

This method returns an undefined value.

Draws a background on the given area.

Parameters:



36
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 36

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.

Parameters:



47
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 47

def draw_button(dc, wnd, in_rect, bitmap_id, button_state, orientation, out_rect) end

#draw_tab(dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect) ⇒ Integer

Draws a tab.

Parameters:

Returns:

  • (Integer)


58
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 58

def draw_tab(dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect) end

#get_best_tab_ctrl_size(arg, arg1, arg2) ⇒ Integer Also known as: best_tab_ctrl_size

Returns the tab control size.

Parameters:

Returns:

  • (Integer)


65
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 65

def get_best_tab_ctrl_size(arg, arg1, arg2) end

#get_indent_sizeInteger Also known as: indent_size

Returns the indent size.

Returns:

  • (Integer)


70
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 70

def get_indent_size; end

#get_tab_size(dc, wnd, caption, bitmap, active, close_button_state) ⇒ Array(Wx::Size,Integer) Also known as: tab_size

Returns the tab size for the given caption, bitmap and state.

Parameters:

Returns:



81
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 81

def get_tab_size(dc, wnd, caption, bitmap, active, close_button_state) end

#set_active_colour(colour) ⇒ void Also known as: active_colour=

This method returns an undefined value.

Sets the colour of the selected tab.

Parameters:



117
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 117

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.

Parameters:



111
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 111

def set_colour(colour) end

#set_flags(flags) ⇒ void Also known as: flags=

This method returns an undefined value.

Sets flags.

Parameters:

  • flags (Integer)


87
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 87

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.

Parameters:



93
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 93

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.

Parameters:



99
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 99

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.

Parameters:



105
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 105

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 NULL default value for compatibility reasons.

Parameters:

  • tab_ctrl_size (Array(Integer, Integer), Wx::Size)
  • tab_count (Integer)
  • wnd (Wx::Window) (defaults to: nil)


127
# File 'lib/wx/doc/gen/aui/aui_tab_art.rb', line 127

def set_sizing_info(tab_ctrl_size, tab_count, wnd=nil) end