xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::tool_bar Class Referencefinal
Inheritance diagram for xtd::forms::native::tool_bar:
xtd::static_object

Definition

Contains tool bar native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static intptr add_tool_bar_button (intptr tool_bar, const xtd::string &text, const xtd::string &tool_tip_text, const xtd::drawing::image &image, bool enabled, bool visible)
 Adds tool bar push button.
 
static intptr add_tool_bar_drop_down_button (intptr tool_bar, const xtd::string &text, const xtd::string &tool_tip_text, const xtd::drawing::image &image, bool enabled, bool visible, intptr drop_down_menu)
 Adds tool bar drop down button.
 
static intptr add_tool_bar_toggle_button (intptr tool_bar, const xtd::string &text, const xtd::string &tool_tip_text, const xtd::drawing::image &image, bool pushed, bool enabled, bool visible)
 Adds tool bar toggle button.
 
static intptr add_tool_bar_separator (intptr tool_bar)
 Adds tool bar separator.
 
static intptr add_tool_bar_stretchable_separator (intptr tool_bar)
 Adds tool bar stretchable separator.
 
static intptr add_tool_bar_control (intptr tool_bar, intptr control, const xtd::string &text, const xtd::string &tool_tip_text)
 Adds tool bar control.
 
static bool set_system_tool_bar (intptr control, intptr tool_bar)
 Sets the tool_bar that is displayed in the form.
 
static void update_tool_bar_item (intptr tool_bar, intptr handle, const xtd::string &text, const xtd::string &tool_tip_text, const xtd::drawing::image &image, bool pushed, bool enabled, bool visible)
 Updates tool bar item.
 
static xtd::drawing::rectangle tool_bar_item_rectangle (intptr tool_bar, intptr handle)
 Gets the tool bar item rectangle.
 

Member Function Documentation

◆ add_tool_bar_button()

static intptr xtd::forms::native::tool_bar::add_tool_bar_button ( intptr  tool_bar,
const xtd::string text,
const xtd::string tool_tip_text,
const xtd::drawing::image image,
bool  enabled,
bool  visible 
)
staticprotected

Adds tool bar push button.

Parameters
tool_barThe tool bar that contains the button.
textThe button text
tool_tip_textThe tool tip text.
imageThe button image.
enabledtrue if button is enabled; otherwise false.
visibletrue if button is visible; otherwise false.
Warning
Internal use only

◆ add_tool_bar_drop_down_button()

static intptr xtd::forms::native::tool_bar::add_tool_bar_drop_down_button ( intptr  tool_bar,
const xtd::string text,
const xtd::string tool_tip_text,
const xtd::drawing::image image,
bool  enabled,
bool  visible,
intptr  drop_down_menu 
)
staticprotected

Adds tool bar drop down button.

Parameters
tool_barThe tool bar that contains the button.
textThe button text
tool_tip_textThe tool tip text.
imageThe button image.
enabledtrue if button is enabled; otherwise false.
visibletrue if button is visible; otherwise false.
drop_down_menuThe context menu handle.
Warning
Internal use only

◆ add_tool_bar_toggle_button()

static intptr xtd::forms::native::tool_bar::add_tool_bar_toggle_button ( intptr  tool_bar,
const xtd::string text,
const xtd::string tool_tip_text,
const xtd::drawing::image image,
bool  pushed,
bool  enabled,
bool  visible 
)
staticprotected

Adds tool bar toggle button.

Parameters
tool_barThe tool bar that contains the button.
textThe button text
tool_tip_textThe tool tip text.
imageThe button image.
pushedtrue if button is pushed; otherwise false.
enabledtrue if button is enabled; otherwise false.
visibletrue if button is visible; otherwise false.
Warning
Internal use only

◆ add_tool_bar_separator()

static intptr xtd::forms::native::tool_bar::add_tool_bar_separator ( intptr  tool_bar)
staticprotected

Adds tool bar separator.

Parameters
tool_barThe tool bar that contains the separator.
Warning
Internal use only

◆ add_tool_bar_stretchable_separator()

static intptr xtd::forms::native::tool_bar::add_tool_bar_stretchable_separator ( intptr  tool_bar)
staticprotected

Adds tool bar stretchable separator.

Parameters
tool_barThe tool bar that contains the stretchable separator.
Warning
Internal use only

◆ add_tool_bar_control()

static intptr xtd::forms::native::tool_bar::add_tool_bar_control ( intptr  tool_bar,
intptr  control,
const xtd::string text,
const xtd::string tool_tip_text 
)
staticprotected

Adds tool bar control.

Parameters
tool_barThe tool bar that contains the control.
controlThe control handle.
textThe control text
tool_tip_textThe tool tip text.
Warning
Internal use only

◆ set_system_tool_bar()

static bool xtd::forms::native::tool_bar::set_system_tool_bar ( intptr  control,
intptr  tool_bar 
)
staticprotected

Sets the tool_bar that is displayed in the form.

Parameters
controlControl window handle.
tool_barA tool bar handle that represents the tool bar to display in the form.
Warning
Internal use only

◆ update_tool_bar_item()

static void xtd::forms::native::tool_bar::update_tool_bar_item ( intptr  tool_bar,
intptr  handle,
const xtd::string text,
const xtd::string tool_tip_text,
const xtd::drawing::image image,
bool  pushed,
bool  enabled,
bool  visible 
)
staticprotected

Updates tool bar item.

Parameters
tool_barThe tool bar that contains the button.
handleThe tool bar item handle.
textThe button text
tool_tip_textThe tool tip text.
imageThe button image.
pushedtrue if button is pushed; otherwise false.
enabledtrue if button is enabled; otherwise false.
visibletrue if button is visible; otherwise false.
Warning
Internal use only

◆ tool_bar_item_rectangle()

static xtd::drawing::rectangle xtd::forms::native::tool_bar::tool_bar_item_rectangle ( intptr  tool_bar,
intptr  handle 
)
staticprotected

Gets the tool bar item rectangle.

Parameters
tool_barThe tool bar that contains the button.
handleThe tool bar item handle.
Returns
A xtd::drawing::rectangle that contains the tool bar item rectangle.
Warning
Internal use only

The documentation for this class was generated from the following file: