Class: Wx::AUI::AuiToolBarArt
- Inherits:
-
Object
- Object
- Wx::AUI::AuiToolBarArt
- Defined in:
- lib/wx/doc/gen/aui/aui_tool_bar_art.rb
Overview
AuiToolBarArt is part of the Wx::AUI class framework.
See also AuiToolBar and wxAUI Overview.
Category: Window Docking (wxAUI)
Direct Known Subclasses
Instance Method Summary collapse
- #clone ⇒ Wx::AUI::AuiToolBarArt
- #draw_background(dc, wnd, rect) ⇒ void
- #draw_button(dc, wnd, item, rect) ⇒ void
- #draw_control_label(dc, wnd, item, rect) ⇒ void
- #draw_drop_down_button(dc, wnd, item, rect) ⇒ void
- #draw_gripper(dc, wnd, rect) ⇒ void
- #draw_label(dc, wnd, item, rect) ⇒ void
- #draw_overflow_button(dc, wnd, rect, state) ⇒ void
- #draw_plain_background(dc, wnd, rect) ⇒ void
- #draw_separator(dc, wnd, rect) ⇒ void
-
#get_element_size(elementId) ⇒ Integer
(also: #element_size)
Returns the size of the given element in DIPs.
-
#get_element_size_for_window(elementId, window) ⇒ Integer
(also: #element_size_for_window)
Get the element size scaled by the DPI of the given window.
- #get_flags ⇒ Integer (also: #flags)
- #get_font ⇒ Wx::Font (also: #font)
-
#get_label_size(dc, wnd, item) ⇒ Wx::Size
(also: #label_size)
Return the size of the label for the given item.
- #get_text_orientation ⇒ Integer (also: #text_orientation)
-
#get_tool_size(dc, wnd, item) ⇒ Wx::Size
(also: #tool_size)
Return the size of the given item.
- #initialize ⇒ Wx::AUI::AuiToolBarArt constructor
-
#set_element_size(elementId, size) ⇒ void
Sets the size of the given element in DIPs.
- #set_flags(flags) ⇒ void (also: #flags=)
- #set_font(font) ⇒ void (also: #font=)
- #set_text_orientation(orientation) ⇒ void (also: #text_orientation=)
- #show_drop_down(wnd, items) ⇒ Integer
Constructor Details
#initialize ⇒ Wx::AUI::AuiToolBarArt
21 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 21 def initialize; end |
Instance Method Details
#clone ⇒ Wx::AUI::AuiToolBarArt
24 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 24 def clone; end |
#draw_background(dc, wnd, rect) ⇒ void
This method returns an undefined value.
57 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 57 def draw_background(dc, wnd, rect) end |
#draw_button(dc, wnd, item, rect) ⇒ void
This method returns an undefined value.
77 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 77 def (dc, wnd, item, rect) end |
#draw_control_label(dc, wnd, item, rect) ⇒ void
This method returns an undefined value.
91 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 91 def draw_control_label(dc, wnd, item, rect) end |
#draw_drop_down_button(dc, wnd, item, rect) ⇒ void
This method returns an undefined value.
84 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 84 def (dc, wnd, item, rect) end |
#draw_gripper(dc, wnd, rect) ⇒ void
This method returns an undefined value.
103 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 103 def draw_gripper(dc, wnd, rect) end |
#draw_label(dc, wnd, item, rect) ⇒ void
This method returns an undefined value.
70 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 70 def draw_label(dc, wnd, item, rect) end |
#draw_overflow_button(dc, wnd, rect, state) ⇒ void
This method returns an undefined value.
110 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 110 def (dc, wnd, rect, state) end |
#draw_plain_background(dc, wnd, rect) ⇒ void
This method returns an undefined value.
63 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 63 def draw_plain_background(dc, wnd, rect) end |
#draw_separator(dc, wnd, rect) ⇒ void
This method returns an undefined value.
97 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 97 def draw_separator(dc, wnd, rect) end |
#get_element_size(elementId) ⇒ Integer Also known as: element_size
Returns the size of the given element in DIPs.
This function is typically more convenient to override, as it can just return the same value as was passed to #set_element_size, but it shouldn’t usually be called, use #get_element_size_for_window instead.
The size of the element in DIPs.
152 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 152 def get_element_size(elementId) end |
#get_element_size_for_window(elementId, window) ⇒ Integer Also known as: element_size_for_window
Get the element size scaled by the DPI of the given window.
This function should be used to get the size of the element in pixels. The default version delegates to #get_element_size, override this function if a different behaviour (e.g. to use some smarter algorithm for scaling instead of just multiplying by the DPI factor) is needed.
The size of the element in pixels.
142 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 142 def get_element_size_for_window(elementId, window) end |
#get_flags ⇒ Integer Also known as: flags
32 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 32 def get_flags; end |
#get_font ⇒ Wx::Font Also known as: font
41 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 41 def get_font; end |
#get_label_size(dc, wnd, item) ⇒ Wx::Size Also known as: label_size
Return the size of the label for the given item.
Note that the type of dc was DC until wxWidgets 3.3.0, where it was changed to ReadOnlyDC as this function doesn’t modify the DC contents.
119 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 119 def get_label_size(dc, wnd, item) end |
#get_text_orientation ⇒ Integer Also known as: text_orientation
50 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 50 def get_text_orientation; end |
#get_tool_size(dc, wnd, item) ⇒ Wx::Size Also known as: tool_size
Return the size of the given item.
Note that the type of dc was DC until wxWidgets 3.3.0, where it was changed to ReadOnlyDC as this function doesn’t modify the DC contents.
129 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 129 def get_tool_size(dc, wnd, item) end |
#set_element_size(elementId, size) ⇒ void
This method returns an undefined value.
Sets the size of the given element in DIPs.
Note that this function takes the size in DPI-independent pixels and this size will be scaled by the factor depending on the DPI being actually used by #get_element_size_for_window. In particular, do not use Window#from_dip for the size argument passed to this function.
161 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 161 def set_element_size(elementId, size) end |
#set_flags(flags) ⇒ void Also known as: flags=
This method returns an undefined value.
28 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 28 def set_flags(flags) end |
#set_font(font) ⇒ void Also known as: font=
This method returns an undefined value.
37 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 37 def set_font(font) end |
#set_text_orientation(orientation) ⇒ void Also known as: text_orientation=
This method returns an undefined value.
46 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 46 def set_text_orientation(orientation) end |
#show_drop_down(wnd, items) ⇒ Integer
166 |
# File 'lib/wx/doc/gen/aui/aui_tool_bar_art.rb', line 166 def show_drop_down(wnd, items) end |