Documentation | InterfaceKit
SYNOPSIS
Perl
use HaikuR1::InterfaceKit qw(run_be_about);
Python
from HaikuR1.InterfaceKit import run_be_about
DESCRIPTION
Exposes functions from the Interface Kit.
For more information on the Interface Kit, see the Be Book introduction and the Haiku Book introduction.
> warning!
Some of the functions in this module can change the user's configuration. Use them with caution and never change the user's configuration without user approval.
CLASSES AND SUBMODULES
- AffineTransform
- Alert
- Alignment
- Bitmap
- Control (see also Views and Controls)
- Dragger
- Font
- Picture
- Picture Player Callbacks
- Point
- Polygon
- PrintJob
- Rect
- Region
- Screen
- Shape
- ShapeIterator
- Shelf
- Size
- ToolTip
- View (see also Views and Controls)
- Window
Views and Controls
- Box
- Button
- ChannelControl
- ChannelSlider
- CheckBox
- ColorControl
- GridView
- GroupView
- ListView
- OptionControl
- OptionPopUp
- PictureButton
- RadioButton
- ScrollBar
- ScrollView
- SeparatorView
- Slider
- SplitView
- StatusBar
- StringView
- TabView
- TextControl
- TextView
Menus
structures
- color_map
- key_info
- key_map
- mouse_map
- overlay_rect_limits
- overlay_restrictions
- pattern
- rgb_color
- screen_id
- scroll_bar_info
Layout
Gradients
COLOR FUNCTIONS
bitmaps_support_space
Returns a set of flags which can be tested against the
Bitmap support constants. 0
means no support.
Perl
bitmaps_support_space($space);
Python
bitmaps_support_space(space)
space
A color space constant.
get_pixel_size_for
Returns three values describing the pixel size for the give color space:
* an integer, the number of bytes it takes to store a pixel; if multiple
pixels are stored in a byte, this value will be 1
.
* an integer, the row alignment; each row of pixel data consists of a multiple of this number of bytes.
* an integer, the number of pixels per "chunk" of data; that is, if pixel
data is "mixed" (i.e., interleaved, non-contiguous), how many pixels are
stored in the smallest run of bytes that can completely describe a pixel;
if this value is 1
, each pixel is completely described before the next
pixel data begins.
Perl
get_pixel_size_for($space);
Python
get_pixel_size_for(space)
space
A color space constant.
keyboard_navigation_color
Returns the keyboard navigation color as an rgb_color.
Perl
keyboard_navigation_color();
Python
keyboard_navigation_color()
system_colors
Returns the system color map.
Perl
system_colors();
Python
system_colors()
tint_color
Tints a color; that is, it multiplies each color value by the given floating point number to return a darker color (for values less than 1) or a lighter color (for values greater than 1).
Returns the new color.
Haiku also has several tint constants.
Perl
tint_color($color, $tint);
Python
tint_color(color, tint)
color
An rgb_color structure.
tint
A floating point number.
ui_color
set_ui_color
Get or set the UI color
Perl
ui_color($which); set_ui_color($which, $color);
Python
ui_color(which) set_ui_color(which, color)
which
A UI color name constant.
color
An rgb_color structure.
KEYBOARD FUNCTIONS
Key info
get_key_info
Returns a key_info structure containing information about the state of the keyboard. Signals an error if the results are unreliable.
Perl
get_key_info();
Python
get_key_info()
Key map
get_key_map
Returns a key_map structure containing information about the current key map.
Perl
get_key_map();
Python
get_key_map()
Keyboard id
get_keyboard_id
Gets the id for the keyboard currently attached to the computer.
According to the Be Book, the id "for the standard 101-key PC
keyboard—and for keyboards with a similar set of keys—is
0x83ab
".
Perl
get_keyboard_id();
Python
get_keyboard_id()
Modifiers
modifiers
get_modifier_key
set_modifier_key
set_keyboard_locks
modifiers
returns an integer that can be tested against the
modifier key constants to determine which modifiers are in
effect. The modifier is in effect when a modifier key is being held down or
when the corresponding keyboard lock is set.
get_modifier_key
and set_modifier_key
do what you expect, but be aware
that they operate on key codes. See key_info for more
information on key codes.
Perl
modifiers(); get_modifier_key($modifier); set_modifier_key($modifier, $key); set_keyboard_locks($modifiers);
Python
modifiers() get_modifier_key(modifier) set_modifier_key(modifier, key) set_keyboard_locks(modifiers)
modifier
An integer combination of one or more of the modifier key constants.
key
An integer, the key code.
modifiers
One of
B_CAPS_LOCK
,B_NUM_LOCK
, orB_SCROLL_LOCK
, or combinations of these values OR'd together.
Repeated keys
get_key_repeat_rate
set_key_repeat_rate
get_key_repeat_delay
set_key_repeat_delay
These functions do what you expect. They may signal an error.
Perl
get_key_repeat_rate(); set_key_repeat_rate($rate); get_key_repeat_delay(); set_key_repeat_delay($delay);
Python
get_key_repeat_rate() set_key_repeat_rate(rate) get_key_repeat_delay() set_key_repeat_delay(delay)
rate
An integer, the number of
B_KEY_DOWN
messages sent per second for a key that is held down.delay
An integer, the wait time in microseconds before a key held down begins sending repeated messages.
MOUSE FUNCTIONS
First-click behavior
accept_first_click
set_accept_first_click
Gets or sets the first click behavior; if this value is true, the first click on an inactive window will be sent the application; otherwise, the first click will merely make the window active, and additional clicks are required before click events are sent to the application.
Perl
accept_first_click(); set_accept_first_click($acceptFirstClick);
Python
accept_first_click() set_accept_first_click(acceptFirstClick)
acceptFirstClick
A boolean.
get_mouse
Returns two items: a Point indicating where on the screen the mouse is, and and an integer indicating which buttons are pressed. This integer can be tested against the mouse button constants.
Perl
get_mouse();
Python
get_mouse()
get_mouse_bitmap
Returns two items: a Bitmap containing the cursor image and a Point containing the hotspot.
Perl
get_mouse_bitmap();
Python
get_mouse_bitmap()
Mouse map
get_mouse_map
set_mouse_map
Gets or sets the mouse_map.
Perl
get_mouse_map(); set_mouse_map($map);
Python
get_mouse_map() set_mouse_map(map)
map
A mouse_map structure.
Mouse mode
mouse_mode
set_mouse_mode
focus_follows_mouse_mode
set_focus_follows_mouse_mode
focus_follows_mouse
set_focus_follows_mouse
The first four functions get or set the given mode.
focus_follows_mouse
and set_focus_follows_mouse
are older functions; in
their current implementations, focus_follows_mouse
returns true if the
mouse mode is B_FOCUS_FOLLOWS_MOUSE
and false otherwise, while
set_focus_follows_mouse
sets the mouse mode to B_FOCUS_FOLLOWS_MOUSE
no
matter what input you pas to it.
Perl
mouse_mode(); set_mouse_mode($mode); focus_follows_mouse_mode(); set_focus_follows_mouse_mode($mode); focus_follows_mouse(); set_focus_follows_mouse($follow);
Python
mouse_mode() set_mouse_mode(mode) focus_follows_mouse_mode() set_focus_follows_mouse_mode(mode) focus_follows_mouse() set_focus_follows_mouse(follow)
mode
A mouse mode or mouse focus mode constant, depending on the function.
follow
A boolean (which is ignored).
Mouse speed
get_click_speed
set_click_speed
get_mouse_speed
set_mouse_speed
get_mouse_acceleration
set_mouse_acceleration
Click speed is the maximum time in microseconds between clicks of a double mouse click. That is, if more than this amount of time passes between clicks, the clicks will be reported as two single clicks instead of a double click.
Mouse speed is the speed of the cursor on the screen relative to the speed of
the mouse across the mouse pad (or other surface). The maximum value is 20
.
Mouse acceleration is the rate at which the cursor begins and stops moving when the mouse begins and stops moving across the mouse pad (or other surface.) That is, it is the rate at which the mouse accelerates from 0 to the mouse speed.
Perl
get_click_speed(); set_click_speed($speed); get_mouse_speed(); set_mouse_speed($speed); get_mouse_acceleration(); set_mouse_acceleration($speed);
Python
get_click_speed() set_click_speed(speed) get_mouse_speed() set_mouse_speed(speed) get_mouse_acceleration() set_mouse_acceleration(speed)
speed
An integer, the desired rate or speed.
Mouse type
get_mouse_type
set_mouse_type
The "type" of the mouse is the number of buttons it has.
Perl
get_mouse_type(); set_mouse_type($type);
Python
get_mouse_type() set_mouse_type(type)
type
An integer, the number of buttons on the mouse.
WORKSPACE FUNCTIONS
Active workspace
current_workspace
activate_workspace
Gets or sets the currently active workspace.
Perl
current_workspace(); activate_workspace($workspace);
Python
current_workspace() activate_workspace(workspace)
workspace
A 0-based integer workspace index.
Workspace count
count_workspaces
set_workspace_count
Gets or sets the number of workspaces.
Perl
count_workspaces(); set_workspace_count($count);
Python
count_workspaces() set_workspace_count(count)
count
An integer, the new workspace count.
OTHER FUNCTIONS
get_deskbar_frame
Returns a Rect containing the deskbar frame.
Perl
get_deskbar_frame();
Python
get_deskbar_frame()
set_screen_space
Sets the resolution and colordepth of the given screen.
Perl
set_screen_space($index, $resolution, $save);
Python
set_screen_space(index, resolution, save)
index
An integer, the 0-based screen index. (Currently only one screen is supported, so this should always be
0
.)resolution
An integer, one of the screen space constants.
save
A boolean; if true, the new setting will be saved to the system; otherwise, the previous setting will be restored at the next boot.
Scroll bar info
get_scroll_bar_info
set_scroll_bar_info
Gets or sets the scroll bar settings.
Perl
get_scroll_bar_info(); set_scroll_bar_info($info);
Python
get_scroll_bar_info() set_scroll_bar_info(info)
info
A scroll_bar_info structure.
idle_time
Returns the time in microseconds since the user last used the mouse or keyboard.
Perl
idle_time();
Python
idle_time()
Panels
run_select_printer_panel
run_add_printer_panel
run_be_about
Runs the given panel and returns immediately, without waiting for the user to close the panel.
Perl
run_select_printer_panel(); run_add_printer_panel(); run_be_about();
Python
run_select_printer_panel() run_add_printer_panel() run_be_about()
CONSTANTS
Alignment
Perl
use HaikuR1::InterfaceKit qw(:alignment)
Python
Python does not support export tags.
- B_ALIGN_LEFT
- B_ALIGN_RIGHT
- B_ALIGN_CENTER
- B_ALIGN_HORIZONTAL_CENTER
- B_ALIGN_HORIZONTAL_UNSET
- B_ALIGN_USE_FULL_WIDTH
Alpha functions
Perl
use HaikuR1::InterfaceKit qw(:alpha_function)
Python
Python does not support export tags.
B_ALPHA_OVERLAY
Used to draw a transparent image over an opaque background.
B_ALPHA_COMPOSITE
Used to combine two images together offscreen, to create a new transparent image. (This image can then be drawn using
B_ALPHA_OVERLAY
.
Bitmap drawing options
Perl
use HaikuR1::InterfaceKit qw(:bitmap_drawing_options)
Python
Python does not support export tags.
- B_FILTER_BITMAP_BILINEAR
- B_WAIT_FOR_RETRACE
Bitmap support
Perl
use HaikuR1::InterfaceKit qw(:bitmap_support)
Python
Python does not support export tags.
- B_VIEWS_SUPPORT_DRAW_BITMAP
- B_BITMAPS_SUPPORT_ATTACHED_VIEWS
- B_BITMAPS_SUPPORT_OVERLAY
Bitmap tiling
Perl
use HaikuR1::InterfaceKit qw(:bitmap_tiling)
Python
Python does not support export tags.
- B_TILE_BITMAP_X
- B_TILE_BITMAP_Y
- B_TILE_BITMAP
Border style
Perl
use HaikuR1::InterfaceKit qw(:border_style)
Python
Python does not support export tags.
- B_PLAIN_BORDER
- B_FANCY_BORDER
- B_NO_BORDER
Buffer layout
Perl
use HaikuR1::InterfaceKit qw(:buffer_layout)
Python
Python does not support export tags.
- B_BUFFER_NONINTERLEAVED
Buffer orientation
Perl
use HaikuR1::InterfaceKit qw(:buffer_orientation)
Python
Python does not support export tags.
- B_BUFFER_TOP_TO_BOTTOM
- B_BUFFER_BOTTOM_TO_TOP
Button width
Perl
use HaikuR1::InterfaceKit qw(:button_width)
Python
Python does not support export tags.
- B_WIDTH_AS_USUAL
- B_WIDTH_FROM_WIDEST
- B_WIDTH_FROM_LABEL
Cap modes
Perl
use HaikuR1::InterfaceKit qw(:cap_modes)
Python
Python does not support export tags.
- B_ROUND_CAP
- B_BUTT_CAP
- B_SQUARE_CAP
Color spaces
Perl
use HaikuR1::InterfaceKit qw(:color_space)
Python
Python does not support export tags.
B_NO_COLOR_SPACE
Undefined color space.
B_RGB32
32-bit color (little-endian). [xxxxxxxx RRRRRRRR GGGGGGGG BBBBBBBB]
B_RGBA32
32-bit color (little-endian) with alpha channel. [AAAAAAAA RRRRRRRR GGGGGGGG BBBBBBBB]
B_RGB24
24-bit color. (According to the Be Book, currently unused).
B_RGB16
16-bit color (little-endian). [RRRRRGGG GGGBBBBB]
B_RGB15
15-bit color (little-endian). [xRRRRRGG GGGBBBBB]
B_RGBA15
15-bit color (little-endian) with alpha channel. [ARRRRRGG GGGBBBBB]
B_CMAP8
256-color index into the system color table.
B_GRAY8
256-color grayscale value.
B_GRAY1
1 bit per pixel; 0 is the low color and 1 is the high color.
B_RGB32_BIG
- B_RGBA32_BIG
- B_RGB24_BIG
- B_RGB16_BIG
- B_RGB15_BIG
- B_RGBA15_BIG
- B_RGB32_LITTLE
- B_RGBA32_LITTLE
- B_RGB24_LITTLE
- B_RGB16_LITTLE
- B_RGB15_LITTLE
- B_RGBA15_LITTLE
The *_LITTLE
constants are synonyms of the similarly named constants at the
top of this list, while the *_BIG
constants are the same formats, but
stored as big-endian integers.
- B_YCbCr422
- B_YCbCr411
- B_YCbCr444
- B_YCbCr420
- B_YUV422
- B_YUV411
- B_YUV444
- B_YUV420
- B_YUV9
- B_YUV12
- B_UVL24
- B_UVL32
- B_UVLA32
- B_LAB24
- B_LAB32
- B_LABA32
According to the Be Book, the YCB*
, YUV*
, UVL*
, and LAB*
constants
are currently unsupported.
B_HSI24
24-bit hue, saturation, and intensity. [HHHHHHHH SSSSSSSS IIIIIIII]
B_HSI32
32-bit hue, saturation, and intensity. [xxxxxxxx HHHHHHHH SSSSSSSS IIIIIIII]
B_HSIA32
32-bit hue, saturation, and intensity with alpha channel. [HHHHHHHH SSSSSSSS IIIIIIII AAAAAAAA]
B_HSV24
24-bit hue, saturation, and value. [HHHHHHHH SSSSSSSS VVVVVVVV]
B_HSV32
32-bit hue, saturation, and value. [xxxxxxxx HHHHHHHH SSSSSSSS VVVVVVVV]
B_HSVA32
32-bit hue, saturation, and value with alpha channel. [HHHHHHHH SSSSSSSS VVVVVVVV AAAAAAAA]
B_HLS24
24-bit hue, lightness, and saturation. [xxxxxxxx HHHHHHHH LLLLLLLL SSSSSSSS]
B_HLS32
32-bit hue, lightness, and saturation. [HHHHHHHH LLLLLLLL SSSSSSSS]
B_HLSA32
32-bit hue, lightness, and saturation with alpha channel. [HHHHHHHH LLLLLLLL SSSSSSSS AAAAAAAA]
B_CMY24
24-bit cyan, magenta, and yellow. [CCCCCCCC MMMMMMMM YYYYYYYY]
B_CMY32
32-bit cyan, magenta, and yellow. [xxxxxxxx CCCCCCCC MMMMMMMM YYYYYYYY]
B_CMYA32
32-bit cyan, magenta, and yellow with alpha channel. [CCCCCCCC MMMMMMMM YYYYYYYY AAAAAAAA]
B_CMYK32
32-bit cyan, magenta, yellow, and black. [CCCCCCCC MMMMMMMM YYYYYYYY KKKKKKKK]
B_MONOCHROME_1_BIT
Synonym for
B_GRAY1
.B_GRAYSCALE_8_BIT
Synonym for
B_GRAY8
.B_COLOR_8_BIT
Synonym for
B_CMAP8
.B_RGB_32_BIT
Synonym for
B_RGB32
.B_RGB_16_BIT
Synonym for
B_RGB15
.B_BIG_RGB_32_BIT
Synonym for
B_RGB32_BIG
.B_BIG_RGB_16_BIT
Synonym for
B_RGB15_BIG
.
UI Colors
Perl
use HaikuR1::InterfaceKit qw(:ui_colors)
Python
Python does not support export tags.
- B_PANEL_BACKGROUND_COLOR
- B_PANEL_TEXT_COLOR
- B_DOCUMENT_BACKGROUND_COLOR
- B_DOCUMENT_TEXT_COLOR
- B_CONTROL_BACKGROUND_COLOR
- B_CONTROL_TEXT_COLOR
- B_CONTROL_BORDER_COLOR
- B_CONTROL_MARK_COLOR
- B_CONTROL_HIGHLIGHT_COLOR
- B_NAVIGATION_BASE_COLOR
- B_NAVIGATION_PULSE_COLOR
- B_SHINE_COLOR
- B_SHADOW_COLOR
- B_MENU_BACKGROUND_COLOR
- B_MENU_SELECTED_BACKGROUND_COLOR
- B_MENU_ITEM_TEXT_COLOR
- B_MENU_SELECTED_ITEM_TEXT_COLOR
- B_MENU_SELECTED_BORDER_COLOR
- B_LIST_BACKGROUND_COLOR
- B_LIST_SELECTED_BACKGROUND_COLOR
- B_LIST_ITEM_TEXT_COLOR
- B_LIST_SELECTED_ITEM_TEXT_COLOR
- B_SCROLL_BAR_THUMB_COLOR
- B_TOOL_TIP_BACKGROUND_COLOR
- B_TOOL_TIP_TEXT_COLOR
- B_SUCCESS_COLOR
- B_FAILURE_COLOR
- B_WINDOW_TAB_COLOR
- B_WINDOW_TEXT_COLOR
- B_WINDOW_INACTIVE_TAB_COLOR
- B_WINDOW_INACTIVE_TEXT_COLOR
- B_WINDOW_BORDER_COLOR
- B_WINDOW_INACTIVE_BORDER_COLOR
B_KEYBOARD_NAVIGATION_COLOR
Synonym for
B_NAVIGATION_BASE_COLOR
.B_MENU_SELECTION_BACKGROUND_COLOR
Synonym for
B_MENU_SELECTED_BACKGROUND_COLOR
.B_DESKTOP_COLOR
Use Screen.DesktopColor instead.
Drawing modes
Perl
use HaikuR1::InterfaceKit qw(:drawing_modes)
Python
Python does not support export tags.
B_OP_COPY
Copies the source to the destination.
B_OP_OVER
Copies the source to the destination, except where the source is transparent.
B_OP_ERASE
Erases the destination, replacing it with the low color, except where the source is transparent.
B_OP_INVERT
Inverts the destination, except where the source is transparent.
B_OP_ADD
Adds the source to the destination, except where the source is transparent.
B_OP_SUBTRACT
Subtracts the source from the destination, except where the source is transparent.
B_OP_BLEND
Averages the source and the destination, except where the source is transparent.
B_OP_MIN
Takes the minimum of the source and the destination, except where the source is transparent.
B_OP_MAX
Takes the maximum of the source and the destination, except where the source is transparent.
B_OP_SELECT
Swaps the low color and the high color in the destination, except where the source is transparent.
B_OP_ALPHA
The meaning of this constant depends on the source alpha.
Fixed screen space
Perl
use HaikuR1::InterfaceKit qw(:fixed_screen)
Python
Python does not support export tags.
- B_8_BIT_640x480
- B_8_BIT_800x600
- B_8_BIT_1024x768
- B_8_BIT_1280x1024
- B_8_BIT_1600x1200
- B_16_BIT_640x480
- B_16_BIT_800x600
- B_16_BIT_1024x768
- B_16_BIT_1280x1024
- B_16_BIT_1600x1200
- B_32_BIT_640x480
- B_32_BIT_800x600
- B_32_BIT_1024x768
- B_32_BIT_1280x1024
- B_32_BIT_1600x1200
- B_8_BIT_1152x900
- B_16_BIT_1152x900
- B_32_BIT_1152x900
- B_15_BIT_640x480
- B_15_BIT_800x600
- B_15_BIT_1024x768
- B_15_BIT_1280x1024
- B_15_BIT_1600x1200
- B_15_BIT_1152x900
- B_8_BIT_640x400
Icon bitmap options
Perl
use HaikuR1::InterfaceKit qw(:icon_bitmap)
Python
Python does not support export tags.
- B_INACTIVE_ICON_BITMAP
- B_ACTIVE_ICON_BITMAP
- B_PARTIALLY_ACTIVATE_ICON_BITMAP
- B_DISABLED_ICON_BITMAP
Icon bitmap flags
Perl
use HaikuR1::InterfaceKit qw(:icon_bitmap_flags)
Python
Python does not support export tags.
B_TRIM_ICON_BITMAP
Crop out all fully transparent areas
B_TRIM_ICON_BITMAP_KEEP_ASPECT
Crop out all fully transparent areas, but maintain aspect ratio.
B_CREATE_ACTIVE_ICON_BITMAP
- B_CREATE_PARTIALLY_ACTIVE_ICON_BITMAP
- B_CREATE_DISABLED_ICON_BITMAPS
Join modes
Perl
use HaikuR1::InterfaceKit qw(:join_modes)
Python
Python does not support export tags.
- B_ROUND_JOIN
- B_MITER_JOIN
- B_BEVEL_JOIN
- B_BUTT_JOIN
- B_SQUARE_JOIN
Keymap tables
Perl
use HaikuR1::InterfaceKit qw(:keymap)
Python
Python does not support export tags.
- B_CONTROL_TABLE
- B_OPTION_CAPS_SHIFT_TABLE
- B_OPTION_CAPS_TABLE
- B_OPTION_SHIFT_TABLE
- B_OPTION_TABLE
- B_CAPS_SHIFT_TABLE
- B_CAPS_TABLE
- B_SHIFT_TABLE
- B_NORMAL_TABLE
Keys
Perl
use HaikuR1::InterfaceKit qw(:keys)
Python
Python does not support export tags.
- B_BACKSPACE
- B_RETURN
- B_ENTER
- B_SPACE
- B_TAB
- B_ESCAPE
- B_SUBSTITUTE
- B_LEFT_ARROW
- B_RIGHT_ARROW
- B_UP_ARROW
- B_DOWN_ARROW
- B_INSERT
- B_DELETE
- B_HOME
- B_END
- B_PAGE_UP
- B_PAGE_DOWN
- B_FUNCTION_KEY
- B_KATAKANA_HIRAGANA
- B_HANKAKU_ZENKAKU
- B_F1_KEY
- B_F2_KEY
- B_F3_KEY
- B_F4_KEY
- B_F5_KEY
- B_F6_KEY
- B_F7_KEY
- B_F8_KEY
- B_F9_KEY
- B_F10_KEY
- B_F11_KEY
- B_F12_KEY
- B_PRINT_KEY
- B_SCROLL_KEY
- B_PAUSE_KEY
Layout spacing
Perl
use HaikuR1::InterfaceKit qw(:layout_spacing)
Python
Python does not support export tags.
- B_USE_DEFAULT_SPACING
- B_USE_ITEM_INSETS
- B_USE_HALF_ITEM_SPACING
- B_USE_HALF_ITEM_INSETS
- B_USE_WINDOW_INSETS
- B_USE_WINDOW_SPACING
- B_USE_SMALL_INSETS
- B_USE_SMALL_SPACING
- B_USE_BIG_INSETS
- B_USE_BIG_SPACING
Modifier keys
Perl
use HaikuR1::InterfaceKit qw(:modifiers)
Python
Python does not support export tags.
See https://www.haiku-os.org/legacy-docs/bebook/TheKeyboard_ModifierKeys.html for more information on modifier keys.
- B_SHIFT_KEY
- B_COMMAND_KEY
- B_CONTROL_KEY
- B_CAPS_LOCK
- B_SCROLL_LOCK
- B_NUM_LOCK
- B_OPTION_KEY
- B_MENU_KEY
- B_LEFT_SHIFT_KEY
- B_RIGHT_SHIFT_KEY
- B_LEFT_COMMAND_KEY
- B_RIGHT_COMMAND_KEY
- B_LEFT_CONTROL_KEY
- B_RIGHT_CONTROL_KEY
- B_LEFT_OPTION_KEY
- B_RIGHT_OPTION_KEY
Mouse modes
Perl
use HaikuR1::InterfaceKit qw(:mode_mouse)
Python
Python does not support export tags.
- B_NORMAL_MOUSE
- B_CLICK_TO_FOCUS_MOUSE
- B_FOCUS_FOLLOWS_MOUSE
Mouse focus modes
Perl
use HaikuR1::InterfaceKit qw(:mode_focus_follows_mouse)
Python
Python does not support export tags.
- B_NORMAL_FOCUS_FOLLOWS_MOUSE
- B_WARP_FOCUS_FOLLOWS_MOUSE
- B_INSTANT_WARP_FOCUS_FOLLOWS_MOUSE
Orientation
Perl
use HaikuR1::InterfaceKit qw(:orientation)
Python
Python does not support export tags.
- B_HORIZONTAL
- B_VERTICAL
Overlay options
Perl
use HaikuR1::InterfaceKit qw(:overlay_options)
Python
Python does not support export tags.
- B_OVERLAY_FILTER_HORIZONTAL
- B_OVERLAY_FILTER_VERTICAL
- B_OVERLAY_MIRROR
- B_OVERLAY_TRANSFER_CHANNEL
Patterns
Perl
use HaikuR1::InterfaceKit qw(:patterns)
Python
Python does not support export tags.
See pattern for more information about patterns.
- B_SOLID_HIGH
- B_MIXED_COLORS
- B_SOLID_LOW
Polygon filling
Perl
use HaikuR1::InterfaceKit qw(:polygon_filling)
Python
Python does not support export tags.
- B_EVEN_ODD
- B_NONZERO
Source alpha
Perl
use HaikuR1::InterfaceKit qw(:source_alpha)
Python
Python does not support export tags.
B_PIXEL_ALPHA
Use each pixel's own alpha channel for transparency.
B_CONSTANT_ALPHA
Use the alpha channel of the high color as a constant alpha value.
Tinting
Perl
use HaikuR1::InterfaceKit qw(:tinting)
Python
Python does not support export tags.
- B_LIGHTEN_MAX_TINT
- B_LIGHTEN_2_TINT
- B_LIGHTEN_1_TINT
- B_NO_TINT
- B_DARKEN_1_TINT
- B_DARKEN_2_TINT
- B_DARKEN_3_TINT
- B_DARKEN_4_TINT
- B_DARKEN_MAX_TINT
- B_DISABLED_LABEL_TINT
- B_HIGHLIGHT_BACKGROUND_TINT
- B_DISABLED_MARK_TINT
Transparency
Perl
use HaikuR1::InterfaceKit qw(:transparency)
Python
Python does not support export tags.
- B_TRANSPARENT_COLOR
- B_TRANSPARENT_MAGIC_CMAP8
- B_TRANSPARENT_MAGIC_RGBA15
- B_TRANSPARENT_MAGIC_RGBA15_BIG
- B_TRANSPARENT_MAGIC_RGBA32
- B_TRANSPARENT_MAGIC_RGBA32_BIG
- B_TRANSPARENT_8_BIT
- B_TRANSPARENT_32_BIT
Utf8 characters
Perl
use HaikuR1::InterfaceKit qw(:utf8)
Python
Python does not support export tags.
- B_UTF8_BULLET
- B_UTF8_ELLIPSIS
- B_UTF8_OPEN_QUOTE
- B_UTF8_CLOSE_QUOTE
- B_UTF8_COPYRIGHT
- B_UTF8_REGISTERED
- B_UTF8_TRADEMARK
- B_UTF8_SMILING_FACE
- B_UTF8_HIROSHI
Vertical alignment
Perl
use HaikuR1::InterfaceKit qw(:vertical_alignment)
Python
Python does not support export tags.
- B_ALIGN_TOP
- B_ALIGN_MIDDLE
- B_ALIGN_BOTTOM
- B_ALIGN_VERTICAL_CENTER
- B_ALIGN_VERTICAL_UNSET
- B_ALIGN_NO_VERTICAL
- B_ALIGN_USE_FULL_HEIGHT
Other constants
These constants do not have an export tag.
B_MAX_MOUSE_BUTTONS
This is currently set to
16
.B_DEFAULT_MITER_LIMIT
This is currently set to
10.0
.B_KEEP_ICON_BITMAP
Tells the Control to take ownership of a Bitmap.
B_MAIN_SCREEN_ID