Provides the BAbstractSocket interface.
More...
Provides the BAbstractSocket interface.
Only accept messages from your own local application.
Definition: MessageFilter.h:39
static BArchivable * Instantiate(BMessage *archive)
Creates a new BWindow object from the data message.
const uint32 B_INVALIDATE_AFTER_LAYOUT
Indicates that the view should be redraw after being added to a layout.
Definition: View.h:96
int32 count_font_styles(font_family name)
Gets the number of styles available for a font family.
The translator add-ons directory.
Definition: FindDirectory.h:157
virtual void AttachedToLayout()
Hook method inherited from BLayoutItem, classes derived from BLayout must include the BLayout version...
border_style Border() const
Gets the current border_style.
int32 CountOnClickArgs() const
Returns the number of args to be passed when the user clicks on the notification.
Undocumented...
Definition: Message.h:51
bool HasHost() const
Check wether the URL has an host.
virtual BAlignment Alignment()
Returns the requested alignment for this item.
BTextControl(BRect frame, const char *name, const char *label, const char *initialText, BMessage *message, uint32 resizeMask=B_FOLLOW_LEFT_TOP, uint32 flags=B_WILL_DRAW|B_NAVIGABLE)
Creates a new BTextControl object.
void Unset()
Returns the BResources object to an uninitialized state.
status_t(* read_stat)(fs_volume *volume, fs_vnode *vnode, struct stat *stat)
Retrieves the stat data for a given node.
Definition: fs_interface.h:167
Represents bitmap data in the B_GRAYSCALE_8_BIT color space (8-bits per pixel.)
Definition: TypeConstants.h:26
void AddFields(std::initializer_list< Field > fields)
Add a list of fields.
void IntersectWith(const BRegion *region)
Modifies the region, so that it will contain only the area in common with region.
static BSpaceLayoutItem * CreateVerticalStrut(float height)
Create a layout item that vertically expands to a maximum height.
The trash directory for a given volume.
Definition: FindDirectory.h:15
virtual void WasHidden()
Hook method that gets called when the file panel is hidden due to a user action.
int32 tls_allocate(void)
Allocate a unique index to use for storing variables.
virtual status_t Invoke(BMessage *message=NULL)
Sends a copy of the model message to the designated target.
virtual void Cut(BClipboard *clipboard)
Moves the current selection to the clipboard.
BBitmapStream(BBitmap *bitmap=NULL)
Initializes this object to either use the BBitmap passed to it as the object to read/write to or to c...
text run struct
Definition: TextView.h:21
Group< ThisBuilder > GroupBuilder
Shorthand for builders returned by this builder's AddGroup() methods.
Definition: LayoutBuilder.h:246
void ScrollToSelection()
Scrolls the text so that the character that begins the selection is visible.
virtual status_t IterateClose()
Called by Iterate() to close the BShape.
virtual void Relayout(bool immediate=false)
Relayout any children or onscreen data this item contains. Often this request is forwarded to another...
virtual BTab * TabAt(int32 index) const
Returns a pointer to the BTab object at the specified index.
void RemoveField(const std::string_view &name) noexcept
Remove all fields with the name.
virtual status_t Perform(perform_code code, void *arg)
Performs an action give a perform_code and arg. (Internal Method)
A list item of a text string used as a member of a BListView or BOutlineListView.
Definition: StringItem.h:12
void Sync() const
Synchronizes the attached window's connection to App Server causing any pending messages to be proces...
The runtime library directory.
Definition: FindDirectory.h:148
virtual BSize PreferredSize()=0
Returns the preferred size for this item.
status_t get_mouse_speed(int32 *speed)
Get the mouse speed.
status_t GetRootDirectory(BDirectory *directory) const
Writes the root directory of the volume referred to by this object into directory.
usb_interface_list * interface
The list of interfaces available to this configuration.
Definition: USB3.h:74
float width
The horizontal dimension.
Definition: Size.h:21
sem_id Sem() const
Return the sem_id of the semaphore this object holds.
The request was canceled before it was completed.
Definition: NetServicesDefs.h:58
BShape()
Creates an empty BShape object.
void AlignLayoutWith(BTwoDimensionalLayout *other, orientation orientation)
Align the BLayoutItem's in the specified orientation within two or more BTwoDimensionalLayout's.
virtual void FrameMoved(BPoint newLocation)
Hook method called when the view is moved.
bool IsLocked()
Verify whether the associated BLocker or BLooper are actually locked.
Definition: Autolock.h:70
status_t SetFeel(window_feel feel)
Changes the window feel set in the constructor to feel.
virtual BString DebugMessage() const override
Retrieve a debug message that contains all info in this error.
status_t GetSupertype(BMimeType *supertype) const
Gets the supertype of the MIME type represented by this object.
virtual status_t Perform(perform_code d, void *arg)
Perform some action (Internal method defined for binary compatibility purposes).
void SetViewCursor(const BCursor *cursor, bool sync=true)
Assigns cursor to the view.
Defines the BEntryList class.
status_t get_ref_for_path(const char *path, entry_ref *ref)
Returns an entry_ref for a given path.
void StrokeShape(BShape *shape, ::pattern pattern=B_SOLID_HIGH)
Stroke shape.
BPoint LeftBottom() const
Returns the left bottom point of the BRect.
Definition: Rect.h:106
virtual int32 TranslatorVersion() const =0
Pure virtual. Returns the version of the translator.
status_t(* write_fs_info)(fs_volume *volume, const struct fs_info *info, uint32 mask)
Update filesystem information on the volume.
Definition: fs_interface.h:80
The BeOS apps directory.
Definition: FindDirectory.h:112
const BString & Protocol() const
Returns the protocol used in the url.
virtual bool AcceptsPaste(BClipboard *clipboard)
Returns whether or not the BTextView can accept the clipboard data.
virtual BSize MinSize()=0
Returns the minimum desirable size for this item.
BString & ToUpper()
Convert each of the characters in the BString to uppercase.
bool IsUsingAttributes() const
Returns whether the object (also) stores the metadata in the attributes of the associated file.
void SetCursor(const void *cursor)
Sets the cursor to be used when the application is active.
void UpdateSizeLimits()
Updates the window's size limits from the minimum and maximum sizes of its top view.
virtual void ArgvReceived(int32 argc, char **argv)
Hook method that gets invoked when the application receives a B_ARGV_RECEIVED message.
BPoint RightBottom() const
Returns the right bottom point of the BRect.
Definition: Rect.h:99
status_t(* create_special_node)(fs_volume *volume, fs_vnode *dir, const char *name, fs_vnode *subVnode, mode_t mode, uint32 flags, fs_vnode *_superVnode, ino_t *_nodeID)
TODO: Document!
Definition: fs_interface.h:241
Provides the BHandler class.
T & operator*() const
Dereferences the pointer.
Definition: ExclusiveBorrow.h:166
thread_id Thread() const
Return the thread id of the internal message looper thread.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
virtual status_t Archive(BMessage *data, bool deep=true) const
Archives the control into data.
BCursor & operator=(const BCursor &other)
Set the cursor to another cursor object.
static bool IsSpace(uint32 c)
Determine if c is a space.
status_t InitCheck() const
Returns whether or not the constructor initialized the time zone.
const BFile & File() const
Gets a reference to the internal BFile object.
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
status_t SetTo(const char *signature, team_id team=-1)
Reinitializes a BMessenger to target the already running application identified by the supplied signa...
virtual void MouseDown(BPoint point)
Hook method called when a mouse button is pressed.
virtual off_t Position() const
Return the position of the cursor.
status_t FindApp(const char *mimeType, entry_ref *app) const
Finds an application associated with a MIME type.
BTextView * TextView() const
Returns the Alert's TextView.
virtual status_t SetChannelCount(int32 count)
Undocumented public method.
virtual status_t SetRef(const entry_ref &file, bool create, bigtime_t *_time)=0
Used when an application wants your node to use a specific file.
virtual void DetachedFromWindow()
Hook method called when the object is detached from a window.
void ShowCursor()
Restores the cursor.
A class that represents a MIME (Multi-purpose Internet Mail Extensions) type string.
Definition: MimeType.h:74
bool IsRunning(const char *signature) const
Returns whether or not an application with the supplied signature is currently running.
virtual ~BReferenceable()
Destructor.
void Set(float x, float y)
Sets the x and y coordinates of a BPoint object.
Definition: Point.h:82
virtual void AttachedToWindow()
Hook method called when the object is attached to a window.
int64 atomic_or64(int64 *value, int64 orValue)
Atomically perform a bitwise OR operation of orValue to the variable andValue.
BMessage * MessageFromPort(bigtime_t=B_INFINITE_TIMEOUT)
Hook method to retrieve a message from the looper's port.
float ItemWeight(int32 index) const
Get the weight of the item at index.
virtual status_t Archive(BMessage *into, bool deep=true) const
Archive this layout into a BMessage.
BRect & OffsetToSelf(BPoint offset)
Like BRect::OffsetTo() but returns the translated BRect.
float HorizontalSpacing() const
Returns the spacing between columns for this layout.
static bool IsPunctuation(uint32 c)
Determine if c is punctuation character.
Files that already have a BEOS:TYPE attribute will be updated too, but BEOS:TYPE itself will remain u...
Definition: Mime.h:24
virtual void SetEnabled(bool enable)
Does nothing, this method is defined to override the default BMenuItem behavior.
virtual ~BResources()
Destroys the BResources object and frees any associated resources.
status_t SetTo(const entry_ref *ref)
Re-initializes the BDirectory to the directory referred to by the supplied entry_ref.
bool IsFullAndHalfFixed() const
Returns whether or not the font is fixed-width and contains both full and half-width characters.
virtual ~BColorControl()
Destructor method.
virtual status_t Archive(BMessage *into, bool deep=true) const
Undocumented public method.
void SetPulseRate(bigtime_t rate)
Sets how often B_PULSE messages are posted to the window.
BString input
The input that contains the invalid contents.
Definition: HttpRequest.h:72
status_t watch_volume(dev_t volume, uint32 flags, BMessenger target)
Subscribes target to watch node changes on volume.
status_t SetSupportedTypes(const BMessage *types, bool updateMimeDB, bool syncAll)
Sets the MIME types that are supported by the application and allows you to specify whether or not th...
virtual status_t AllArchived(BMessage *into) const
Hook method called when all views have been archived.
virtual void MouseUp(BPoint where)
Hook method overridden from BView.
virtual ~BBitmapStream()
Destroys the object and the BBitmap object if attached.
BFile()
Creates an uninitialized BFile object.
virtual bool AddList(BList *newItems)
Adds a list of items to the end of the list.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
The system translator directory.
Definition: FindDirectory.h:28
static status_t Register(BMidiEndpoint *endp)
Publishes an endpoint to other applications.
virtual off_t Size() const
Gets the current stream size.
virtual void MessageReceived(BMessage *message)
Handle message received by the associated looper.
void ** tls_address(int32 index)
Retrieve the pointer that refers to the data of this thread at the provided index.
unicode_block()
Construct a unicode_block and set block data to 0.
Definition: Font.h:341
status_t ActivateApp(team_id team) const
Activates the application identified by the supplied team ID.
virtual bool AllowsTypeCode(type_code code) const
Implements BFlattenable::AllowsTypeCode(). Checks if type code is equal to B_REF_TYPE.
The BeOS fonts directory.
Definition: FindDirectory.h:109
virtual status_t MIMEType(BMimeType *mime)
Places the MIME type of the data into mime.
virtual off_t Seek(off_t position, uint32 seekMode)
Move the cursor to a given position.
static BMessage * PrepareArchive(BMessage *&archive)
Prepares archive for use by a BUnarchiver.
const char * Name() const
Returns the name of the stop watch.
void SpraySystemRealTime(uchar status, bigtime_t time=0) const
Sends a Real Time event to the connected consumers.
BLayoutContext * LayoutContext() const
Returns the BLayoutContext for this View.
BSpaceLayoutItem(BSize minSize, BSize maxSize, BSize preferredSize, BAlignment alignment)
Create a space layout item with specific properties.
BString * BStringText()
Returns the internal UTF8 format BString used by this component.
status_t AddKey(const BKey &key)
Add a key to the Master keyring.
virtual type_code TypeCode() const
Always returns B_PROPERTY_INFO_TYPE.
virtual status_t GetRef(entry_ref *_ref, char *_mimeType)=0
Implement to set the entry_ref and the MIME type of the file referenced by the current node.
virtual void SelectionChanged()
Hook method that is called when the selection changes.
status_t SetAlwaysOnTop(bool alwaysOnTop)
Undocumented public method.
BRect InsetByCopy(BPoint inset) const
Like BRect::InsetBy() but returns a copy of the transformed BRect leaving the original unmodified.
status_t system_beep(const char *eventName)
Invokes the sound for event eventName.
const uchar B_CABLE_MESSAGE
Identifier of cable message.
Definition: Midi2Defs.h:25
bool operator<=(const BString &string) const
Lexicographically compare if this BString is less than or equal to the given string.
Definition: String.h:541
virtual status_t AllArchived(BMessage *into) const
Method relating to the use of BArchiver.
void SprayControlChange(uchar channel, uchar controlNumber, uchar controlValue, bigtime_t time=0) const
Sends a Controller Change event to all connected consumers.
status_t GetIcon(BBitmap *icon, icon_size size) const
Fetches the large or mini icon associated with the MIME type.
virtual status_t WaitForWritable(bigtime_t timeout=B_INFINITE_TIMEOUT) const
wait until writing is possible
virtual bool RemoveChild(BView *view)
Removes a BView from the bitmap's view hierarchy.
void Layout(bool force)
Update the size limits and do the layout of the topmost view attached to the window.
BUrl & SetProtocol(const BString &scheme)
Set the protocol.
BHandler * NextHandler() const
Return the next hander in the chain to which the message is passed on.
status_t RemoveMasterUnlockKey()
Not implemented.
virtual BSize PreferredSize()
Undocumented public method.
virtual void GetPreferredSize(float *_width, float *_height)
Fills out the preferred width and height of the string view into the _width and _height parameters re...
void SetText(const char *text)
Sets the text string displayed by the string view.
bool HasItem(void *item) const
Return whether or not item is in the list.
uint32 Flags() const
Gets the antialiasing flags.
status_t ReplaceColor(const char *name, rgb_color value)
Replace a color at the label name.
The user documentation directory, contains e.g. man pages.
Definition: FindDirectory.h:88
virtual status_t Invoke(BMessage *message=NULL)
Sends a copy of the model message to the designated target.
void AddButton(const char *label, char key=0)
Adds a button to the alert.
bool IsValid()
Returns whether this layout has been invalidated (via BLayout::InvalidateLayout()) and has not yet be...
BAlignment ExplicitAlignment() const
Returns the explicit alignment size.
void OffsetBy(const BPoint &point)
Applies the given offsets given by the x and y coordinates of point to each rectangle contained in th...
bool IsMinimized() const
Returns whether or not the window is minimized.
~BExclusiveBorrow()
Destructor.
Definition: ExclusiveBorrow.h:128
virtual BKeyType Type() const
Returns BKeyType::B_KEY_TYPE_PASSWORD.
Definition: Key.h:102
virtual void Disconnected(BMidiConsumer *cons)
Invoked when a consumer is disconnected from this producer.
BLayoutItem * CreateTextViewLayoutItem()
Creates a text view layout item and returns a pointer to it.
BMenuBar * KeyMenuBar() const
Returns a pointer to the key menu bar set to the window.
Defines abstract BDataIO and BPositionIO and the derived BMallocIO and BMemoryIO classes.
const uint32 _VIEW_CENTER_
View center mask variable. Do not use.
Definition: View.h:105
BString Join(const char *separator, int32 length=-1) const
Undocumented public method.
virtual void SetEnabled(bool enabled)
Enable or disable the list item.
ParentBuilder & End()
Returns this builder's parent.
Definition: LayoutBuilder.h:436
Represents the POST method.
Definition: HttpRequest.h:36
status_t DisposeOutputCookie(int32 cookie)
Does nothing because the cookie has no use as of yet.
void Unlock()
Unlocks the clipboard.
The global package links directory.
Definition: FindDirectory.h:102
status_t MoveTo(BDirectory *dir, const char *path=NULL, bool clobber=false)
Moves the BEntry to directory or directory and path combination, replacing an existing entry if clobb...
size_t BufferSize() const
Undocumented public method.
bool operator==(const BCursor &other) const
Compare a cursor object to another and return if they are equal.
size_t interface_count
The number of interfaces in this configuration.
Definition: USB3.h:73
status_t SetPointer(const char *name, const void *value)
Set the data with at the label name to value.
int32 TextLength() const
Returns the text length of the BTextView text.
virtual ~BApplication()
Destructor Method.
BListItem * Superitem(const BListItem *item)
Returns a pointer to the item at one level above item.
BHttpTimeFormat DateTimeFormat() const noexcept
Get the format that the current timestamp parsed from.
virtual void Data(uchar *data, size_t length, bool atomic, bigtime_t time)
Invoked when raw MIDI is received.
unicode_block operator|(const unicode_block &block) const
Creates and returns a new unicode_block object that is the union of block and the unicode_block objec...
Definition: Font.h:374
static int32 DigitValue(uint32 c)
Gets the numeric value c.
virtual void SetHighColor(rgb_color color)
Set the high color of the view.
const entry_ref * OnClickFile() const
Returns the reference to the file that will be opened when the notification is clicked.
Describes the BLayoutItem class.
virtual status_t Perform(perform_code d, void *arg)
Perform some action. (Internal Method)
BStringList(int32 count=20)
Undocumented public method.
virtual BSize MinSize()
Returns the minimum desirable size for this item.
virtual ~BBox()
Destructor method.
float CurrentValue() const
Undocumented public method.
BMidiLocalProducer(const char *name=NULL)
Creates a new local producer endpoint.
bool HasAlignment(const char *name, int32 n=0) const
Deprecated.
BKeyPurpose Purpose() const
Get the purpose of the key.
float RelativeVertical() const
Undocumented public method.
virtual BSize MaxSize()
Return the maximum size of the view.
void SetSecondaryIdentifier(const char *identifier)
Set the secondary identifier of the key.
A producer endpoint that is created by your own application.
Definition: MidiProducer.h:54
bool Swap(int32 indexA, int32 indexB)
Undocumented public method.
virtual status_t RenderToRFC822(BPositionIO *render_to)
Renders the component into RFC-822 format.
void GetGlyphShapes(const char charArray[], int32 numChars, BShape *glyphShapeArray[]) const
Writes an array of BShape objects to glyphShapeArray representing the glyph shapes of each character ...
void ResizeTo(float width, float height)
Resize the window to the specified width and height.
BGroupLayoutBuilder & GetTopLayout(BGroupLayout **_layout)
Get a reference to the highest underlying BGroupLayout.
virtual void AttachedToWindow()
Hook method called when the control is attached to a window.
__haiku_uint64 uint64
8-bytes unsigned integer.
Definition: SupportDefs.h:27
virtual ssize_t ReadAt(off_t position, void *buffer, size_t size)=0
Pure virtual to read data from a certain position.
int32 IndexOf(BHandler *handler) const
Get the index of the handler that is in the associated handler list.
const uchar B_SOFT_PEDAL
Identifier of soft pedal message.
Definition: Midi2Defs.h:52
The directory for variable data (Unix "var" directory).
Definition: FindDirectory.h:158
BString mimeType
The mimetype of the body.
Definition: HttpRequest.h:142
bool Exists() const
Returns whether or not the entry exists in the filesystem.
status_t SetInt8(const char *name, int8 value)
Set the data with at the label name to value.
virtual status_t GetNextRef(entry_ref *ref)
Fills out ref with the next entry as an entry_ref.
bool HasItem(int32 id) const
Undocumented public method.
virtual void GetContentSize(float *_width, float *_height)
Fills out _width and _height with the content rectangle dimensions.
Set when file is written to.
Definition: NodeMonitor.h:67
float MaxItemWidth() const
Undocumented public method.
const BUrl & Url() const
The URL that caused the issue.
bool operator==(const BNode &node) const
Tests whether this and the supplied BNode object are equal.
bool operator==(const node_ref &other) const
Tests whether this node_ref and the supplied one are equal.
virtual BLayoutItem * AddView(BView *child)
Adds child to this layout as the last item. In a vertical BGroupLayout, child will be on the right,...
void ConvertFromParent(BPoint *point) const
Convert point from the parent's coordinate system to the view's coordinate system in place.
BList & operator=(const BList &other)
Copy another list into this object.
screen_id ID()
Gets the identifier of the display.
BListItem * FullListFirstItem() const
Returns a pointer to the first BListItem in the list.
A pattern to use when drawing.
Definition: GraphicsDefs.h:13
virtual void DetachedFromWindow()
Hook method called when the control is detached from a window.
status_t stop_watching(BMessenger target)
Unsubscribes target from node and mount monitoring.
Important type.
Definition: Notification.h:18
virtual void MouseUp(BPoint where)
Undocumented public method.
bool ReplaceItem(int32 index, void *item)
Replace an item with another one.
BHttpMethod(Verb verb) noexcept
Construct a standard method.
virtual void RefsReceived(BMessage *message)
Hook method that gets invoked when the application receives a B_REFS_RECEIVED message.
virtual void MessageReceived(BMessage *message)
Undocumented public method.
const BString & DaylightSavingName() const
Returns the localized daylight savings name of the time zone, for example "Pacific Daylight Time".
virtual void Copy(BClipboard *clipboard)
Copies the current selection to the clipboard.
static BArchivable * Instantiate(BMessage *from)
Instantiate the item from the message from.
virtual ~BPasswordKey()
Free all resources associated with this key.
void ResetLayoutInvalidation()
Service call for BView derived classes re-enabling InvalidateLayout() notifications.
status_t ReplaceString(const char *name, const char *string)
Replace a string at the label name.
ThisBuilder & Add(BView *view)
Add a BView to the BGroupLayout this builder represents.
Definition: LayoutBuilder.h:530
virtual float ThumbDeltaFor(int32 channel)
Undocumented public method.
virtual void SetValue(int32 value)
Undocumented public method.
volatile unsigned short vushort
Volatile unsigned short.
Definition: SupportDefs.h:46
The directory used for installation location wide settings.
Definition: FindDirectory.h:154
virtual void Update(float delta, const char *text=NULL, const char *trailingText=NULL)
Undocumented public method.
status_t FormatSuggestionRequested(media_type type, int32 quality, media_format *format)
Checks if a certain media format works with the GameProducer.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
virtual void Select(int32 index)
Selects the tab at the given index making it the selected tab.
SplitBuilder AddSplit(orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f)
Add a new BSplitView as a child to the layout that this builder represents and return a SplitBuilder ...
Definition: LayoutBuilder.h:634
status_t(* open_index_dir)(fs_volume *volume, void **_cookie)
Open the list of an indices as a directory.
Definition: fs_interface.h:88
size_t CountFields() const noexcept
Get the number of fields.
virtual ssize_t ReceiveFrom(void *buffer, size_t bufferSize, BNetworkAddress &from)
receive a single datagram from a given host
BSize class definition and related enum definition.
int32 atomic_and(int32 *value, int32 andValue)
Atomically perform a bitwise AND operation of andValue to the variable andValue.
const char * Owner() const
Get the owner of the key.
BMediaAddOn * AddOn(int32 *internal_id) const
Unimplemented.
status_t FindFlat(const char *name, BFlattenable *object) const
Find a flattened object at the label name.
void DrawPictureAsync(const BPicture *a_picture)
Draws the picture at the view's current pen position.
virtual const BBitmap * ThumbFor(int32 channel, bool pressed)
Undocumented public method.
Allows you to iterate through BShape operations.
Definition: Shape.h:22
virtual void WindowActivated(bool active)
Hook method called when the attached window is activated or deactivated.
bool RemoveItem(void *item)
Remove item from the list.
virtual void MessageReceived(BMessage *message)
Handle message that has been received by the associated looper.
BCursorID
Definition: Cursor.h:13
status_t(* set_content_name)(int fd, partition_id partition, const char *name, disk_job_id job)
Undocumented. TODO.
Definition: fs_interface.h:300
const uchar B_LOCAL_CONTROL
Identifier of local control message.
Definition: Midi2Defs.h:67
virtual status_t ItemArchived(BMessage *into, BLayoutItem *item, int32 index) const
Hook for derived classes to add data specific to item to the into BMessage. item resides at index.
BReference(const BReference< Type > &other)
Copy constructor.
Definition: Referenceable.h:56
virtual void MessageReceived(BMessage *message)
Receives messages that control the visibility of the dragger handle.
virtual void MessageReceived(BMessage *message)
Handles scripting messages for the tab view.
virtual size_t MaxTransmissionSize() const
static status_t GetIcon(BNode *node, const char *vectorIconAttrName, const char *smallIconAttrName, const char *largeIconAttrName, icon_size size, BBitmap *result)
Utility function to import an icon from a node.
status_t GetDefaultTimeZone(BTimeZone *timezone) const
Get the default timezone.
int Compare(const BString &string) const
Lexicographically compare this BString to another string.
Represents the CONNECT method.
Definition: HttpRequest.h:36
BString & Prepend(const char *string)
Prepend the given string to the beginning of the BString.
Represents the BParameterWeb type from the media kit.
Definition: TypeConstants.h:34
float(* identify_partition)(int fd, partition_data *partition, void **_cookie)
Undocumented. TODO.
Definition: fs_interface.h:263
status_t Iterate(BShape *shape)
Iterates over each operation that make up the BShape calling IterateMoveTo(), IterateLineTo(),...
virtual void GetHeightForWidth(float width, float *min, float *max, float *preferred)
Overridden hook method from BAbstractLayout.
virtual status_t SetCurrentChannel(int32 index)
Undocumented public method.
BString & SetToChars(const char *string, int32 charCount)
UTF-8 aware version of SetTo(const char*, int32)
status_t PushDouble(double value)
Pushes a double onto the predicate stack.
int32 CountPoints() const
Returns the number of points associated with the polygon.
virtual status_t GetIcon(BBitmap *icon, icon_size which=B_LARGE_ICON) const
Gets the icon of the node.
uint16 Face() const
Gets the font face flags bitmap.
virtual BSize MaxSize()
Returns the string view's maximum size.
Provides the BStatable abstract class.
virtual void ResizeToPreferred()
Resizes the view to its preferred size keeping the position of the left top corner constant.
virtual ~BMailComponent()
Destructor.
Definition: GraphicsDefs.h:311
void RelinquishOwnership(BArchivable *archivable)
Relinquish ownership of archivable. If archivable remains unclaimed at the end of the unarchiving ses...
const char * B_URL_FTP
application/x-vnd.Be.URL.ftp
const char * get_primary_architecture()
Returns the name of the system's primary architecture.
bool IsHidden() const
Returns whether or not the view is hidden.
direct_driver_state
Definition: DirectWindow.h:28
int32 GetProducerID()
Returns the ID of the producer that most recently sent a MIDI event to this consumer.
virtual void ResizeToPreferred()
Resizes the box to its preferred dimensions.
status_t(* resize)(int fd, partition_id partition, off_t size, disk_job_id job)
Undocumented. TODO.
Definition: fs_interface.h:296
virtual status_t Perform(perform_code d, void *arg)
Perform some action. (Internal Method)
The connection for the request is opened and the request will be sent.
Definition: NetServicesDefs.h:86
Abstract class representing things that are positionable and resizable by objects of the BLayout clas...
Definition: LayoutItem.h:19
virtual BSize MaxSize()
Return the maximum size of the view.
A location in the filesystem.
Definition: Entry.h:39
void FillShape(BShape *shape, ::pattern pattern=B_SOLID_HIGH)
Fill shape.
bool operator!=(const BAlignment &other) const
Undocumented public method.
Definition: Alignment.h:114
List of interfaces available to a configuration.
Definition: USB3.h:63
Represents the char type.
Definition: TypeConstants.h:22
virtual void MessageReceived(BMessage *message)
Hook method overridden from BView.
status_t AddKeyring(const char *keyring)
Create a new keyring.
void SetSaveText(const char *text)
Set some save text to display in the save dialog.
status_t GetSortKey(const char *string, BString *key) const
Compute the sortkey of a string.
void PopState()
Restores the drawing state from the stack.
virtual status_t Perform(perform_code code, void *data)
Perform some action. (Internal Method)
status_t StopWatching(BMessenger target)
Unregister a messenger from the notification list.
virtual void MouseMoved(BPoint where, uint32 transit, const BMessage *dragMessage)
Hook method called when the mouse is moved.
The system directory used for cache files.
Definition: FindDirectory.h:42
virtual int32 MaxChannelCount() const
Undocumented public method.
uint32 Flags() const
Accesses the bitmap's creation flags.
void FillArc(BPoint center, float xRadius, float yRadius, float startAngle, float arcAngle, ::pattern pattern=B_SOLID_HIGH)
Fill an arc starting at center with a horizontal radius of xRadius and a vertical radius of yRadius s...
virtual ~BVolume()
Destroys the object and frees all associated resources.
BExclusiveBorrow< T > make_exclusive_borrow(_Args &&... __args)
Create a new object that is managed by a BExclusiveBorrow smart pointer.
Definition: ExclusiveBorrow.h:284
bool HasSize(const char *name, int32 n=0) const
Deprecated.
status_t SetTo(const char *password, BKeyPurpose purpose, const char *identifier, const char *secondaryIdentifier=NULL)
Set the key to specific values.
phys_addr_t phys_size_t
Represents a size of physical memory.
Definition: SupportDefs.h:59
static status_t InstantiateObject(BMessage *archive, T *&object)
Attempt to instantiate an object of type T from BMessage* from.
Definition: Archivable.h:290
status_t Unflatten(const char *flatBuffer)
Unflatten a message from a buffer and put it into the current object.
BString & RemoveFirst(const BString &string)
Remove the first occurrence of the given BString.
status_t GetNodeRef(node_ref *ref) const
Fills out ref with the node_ref of the node.
BRect Frame() const
Returns the frame rectangle of the window.
uint8 blue
Blue value for the color.
Definition: GraphicsDefs.h:45
Display separator item for BMenu class.
Definition: SeparatorItem.h:14
void ResizeToPreferred()
Resize the window to the preferred size of the window's layout.
virtual void MessageReceived(BMessage *message)
Handle message received by the associated looper.
virtual void FrameResized(float newWidth, float newHeight)
Resizes the alert dialog.
status_t FindBool(const char *name, bool *value) const
Find a boolean at the label name.
virtual void MouseUp(BPoint where)
Hook method called when a mouse button is released.
usb_pipe handle
Handle to use when using the stack to transfer data to and from this endpoint.
Definition: USB3.h:49
virtual ~BShape()
Destructor, deletes all associated data.
BLayoutBuilder::Base subclass for building BGroupLayouts.
Definition: LayoutBuilder.h:29
A class to send messages to a target BLooper or BHandler.
Definition: Messenger.h:20
virtual void SetResizingMode(uint32 mode)
Sets the resizing mode of the view according to the mode mask.
Provides the BDragger class.
BPoint()
Initializes a BPoint object at the origin, (0, 0).
Definition: Point.h:46
BVolume()
Creates an uninitialized BVolume object.
rgb_color LowColor() const
Return the current low color.
BSize SubtractInsets(BSize size)
Substract the size from all the insets for this layout.
virtual void Pulse()
Hook method called when the view receives a B_PULSE message.
bool LockLooper()
Lock the looper associated with this handler.
uint32 EventMask()
Returns the current event mask.
Displays a standard Open/Save dialog.
Definition: FilePanel.h:41
virtual void SetDivider(float position)
Sets the horizontal position of the divider that separates the label from the text view.
status_t MergeFrom(BFile *fromFile)
Adds the resources of fromFile to the internal file of the BResources object.
virtual BAlignment LayoutAlignment()
Return the current BAlignemnt of the view.
status_t Close()
Adds an operation to close the BShape once it is fully constructed.
bool(* validate_set_content_parameters)(partition_data *partition, const char *parameters)
Undocumented. TODO.
Definition: fs_interface.h:282
void SetMaxColumnWidth(int32 column, float width)
Sets the maximum width for column to width.
BPath & operator=(const BPath &item)
Initializes the object as a copy of item.
status_t(* scan_partition)(int fd, partition_data *partition, void *cookie)
Undocumented. TODO.
Definition: fs_interface.h:265
BVolume & operator=(const BVolume &volume)
Assigns the supplied BVolume object to this volume, this object is made to be an exact clone of the s...
void SetAlignment(const BAlignment &aligment)
Undocumented public method.
const uchar B_NOTE_ON
Identifier of note on message.
Definition: Midi2Defs.h:13
virtual ~BList()
Destroy the list.
void openlog_team(const char *ident, int logopt, int facility)
Starts a log session, and sets some output options.
Definition: MailComponent.h:31
Cards()
Creates a builder for BCardLayout.
Definition: LayoutBuilder.h:1425
virtual void ControlChange(uchar channel, uchar controlNumber, uchar controlValue, bigtime_t time)
Invoked when a Controller Change event is received.
status_t ReadResource(type_code type, int32 id, void *data, off_t offset, size_t length)
Reads data from an existing resource. (deprecated, use LoadResource() instead)
virtual void AttachedToWindow()
Sets the font color to B_DOCUMENT_TEXT_COLOR and the view and low colors to B_DOCUMENT_BACKGROUND_COL...
status_t InitCheck() const
Returns the status of the constructor.
virtual BRect DrawTabs()
Draws all the tabs in the BTabView and returns the frame rectangle of the currently selected tab.
BObjectList(int32 itemsPerBlock=20, bool owning=false)
Creates a new BObjectList.
Definition: ObjectList.h:419
void SetType(alert_type type)
Set the type of the alert.
virtual void MakeFocus(bool focused=true)
Highlight or unhighlight the selection when the tab view acquires or loses its focus state.
bool HasPort() const
Check wether the URL has a port.
Set when stat mode changes.
Definition: NodeMonitor.h:58
Definition: GraphicsDefs.h:315
BString & SetByteAt(int32 pos, char to)
Set a byte at position pos to character to.
void SetViewUIColor(color_which which, float tint=B_NO_TINT)
Set the view color of the view to a system constant. The color will update live with user changes.
static BArchivable * Instantiate(BMessage *data)
Instantiate window from message data. Not implemented.
status_t SetName(const char *name)
Sets the volume's name to name.
virtual off_t Seek(off_t offset, uint32 seekMode)
Seeks to another read/write position within the file.
font_direction Direction() const
Gets the font direction, left-to-right or right-to left.
void ClipToShape(BShape *shape)
Intersects the current clipping region of the view with the pixels of shape.
status_t GetAppHint(entry_ref *ref) const
Fetches an entry_ref that serves as a hint as to where the MIME type's preferred application might li...
Represents the HEAD method.
Definition: HttpRequest.h:36
int64 atomic_and64(int64 *value, int64 andValue)
Atomically perform a bitwise AND operation of andValue to the variable andValue.
BMessageRunner(BMessenger target, const BMessage *message, bigtime_t interval, int32 count=-1)
Creates and initializes a new BMessageRunner and instructs the system roster to send the specified me...
BGroupLayoutBuilder & GetTopView(BView **_view)
Get a reference to the owning BView.
const uint8 * Data() const
Get a pointer to the data of the key.
virtual void MessageReceived(BMessage *message)
Handle message received by the associated looper.
virtual status_t Archive(BMessage *data, bool deep=true) const
Archive a handler to a message.
Volume key purpose.
Definition: Key.h:21
Definition: TextView.h:33
usb_endpoint_info * endpoint
An array of endpoints that are associated to this interface.
Definition: USB3.h:57
status_t GetStatFor(const char *path, struct stat *st) const
Returns the stat structure of the entry referred to by the supplied path name.
virtual void MouseUp(BPoint where)
Hook method called when a mouse button is released.
virtual void SetExplicitAlignment(BAlignment alignment)
Set this item's explicit alignment, to be used in Alignment().
void SetHorizontal(alignment horizontal)
Undocumented public method.
Definition: Alignment.h:79
void SetInsets(float left, float top, float right, float bottom)
Set the insets between the bounds of the view and the inner elements.
virtual void AttachedToLayout()
Hook called when this object is attached to a BLayout (via BLayout::AddItem())
status_t GetLimits(int32 *_minimum, int32 *_maximum) const
Undocumented public method.
bool IStartsWith(const BString &string) const
Returns whether or not the BString starts with string case-insensitively.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determines the proper handler for the passed in scripting message.
volatile unsigned long vulong
Volatile unsigned long.
Definition: SupportDefs.h:44
status_t AddToSubset(BWindow *window)
Adds window to be in the subset of the BWindow.
BExclusiveBorrow(nullptr_t) noexcept
Special constructor that creates a new smart pointer with no value.
Definition: ExclusiveBorrow.h:119
void * FirstItem() const
Return a pointer to the first item in the list.
virtual BAlignment LayoutAlignment()
Returns the alignment used by this control in a layout.
void closelog_thread(void)
Closes the log.
void InvalidateLayout(bool descendants=false)
Invalidate layout.
status_t SetTo(const entry_ref *ref)
Initializes the object to the specified entry_ref.
status_t InitCheck() const
Check connection status.
virtual ~BMessageRunner()
Frees all resources associated with the object.
void BeginRectTracking(BRect startRect, uint32 style=B_TRACK_WHOLE_RECT)
Displays an outline rectangle on the view and initiates tracking.
The installation location base directory.
Definition: FindDirectory.h:135
Secondary mouse button mask parameter.
Definition: View.h:24
Set when creation time changes.
Definition: NodeMonitor.h:64
status_t RemoveFromSubset(BWindow *window)
Remove window from the subset of the BWindow.
virtual BAlignment LayoutAlignment()
Return the current BAlignemnt of the view.
virtual status_t AllUnarchived(const BMessage *from)
Unarchives the BLayoutItem's for this layout, calling ItemUnarchived() for each one.
BRuntimeError & operator=(const BRuntimeError &other)
Copy assignment operator.
Subscribe to watching for changes to the stat information of a node.
Definition: NodeMonitor.h:20
virtual status_t SetTimeout(bigtime_t timeout)
sets the read and write timeout
bool operator!=(const BPoint &other) const
Returns whether or not the x and y coordinates of the BPoint objects differ.
int32 CurrentSelection(int32 index=0) const
Returns the index of a currently selected item relative to the passed in index.
status_t SetCatalogEntry(const char *catalogEntry)
Sets the catalog entry of the associated file used for localization.
status_t(* write_attr)(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, const void *buffer, size_t *length)
Write attribute data.
Definition: fs_interface.h:228
Provides the BGridView class.
void Flush() const
Flushes the attached window's connection to App Server.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
ThisBuilder & SetExplicitMaxSize(BSize size)
Set the explicit maximum size of the underlying layout.
Definition: LayoutBuilder.h:749
bool HasColor(const char *name, int32 n=0) const
Deprecated.
virtual bool IsVisible()
Return the current local visibility of this item.
color_control_layout Layout() const
Get the current color control layout.
Container for interface descriptors and their Haiku USB stack identifiers.
Definition: USB3.h:52
BString & Insert(const char *string, int32 position)
Inserts the given string at the given position into the BString data.
bool OwnsStream() const
Undocumented public method.
GroupBuilder AddGroup(orientation orientation, float spacing=B_USE_DEFAULT_SPACING)
Definition: LayoutBuilder.h:1523
Defines basic types and definitions for the Haiku API.
const char * Name() const
Returns the name of the endpoint.
static BArchivable * Instantiate(BMessage *archive)
Instantiates a BTab object from the passed in archive.
virtual bool HasHeightForWidth()
Returns whether the layout of the view can calculate a height for a given width.
virtual ~BTwoDimensionalLayout()
Destructor.
The system non-packaged installation location directory.
Definition: FindDirectory.h:44
void PrintToStream() const
Prints the BRect dimensions to standard output.
BPolygon()
Initializes an empty polygon without any points.
virtual status_t Archive(BMessage *into, bool deep=true) const
Archives this layout into archive. If deep is true, also archives the items in this layout,...
volatile int8 vint8
1-byte volatile signed integer.
Definition: SupportDefs.h:30
void DispatchExternalMessage(BMessage *message, BHandler *handler, bool &_detached)
Internal method to support single-threaded GUI toolkits.
BSplitLayoutBuilder & SetInsets(float left, float top, float right, float bottom)
Set the insets of the underlying BSplitView.
virtual void SetFrame(BRect frame)=0
Set the bounding frame of this item.
const void * LoadResource(type_code type, int32 id, size_t *_size)
Loads a resource identified by type and id into memory.
bool HidesWhenDone() const
Gets whether or not the panel should hide on confirm or cancel.
status_t Rename(const char *path, bool clobber=false)
Renames the BEntry to path replacing an existing entry if clobber is true.
Split< ThisBuilder > SplitBuilder
Shorthand for builders returned by this builder's AddSplit() methods.
Definition: LayoutBuilder.h:316
bool Lock()
Lock the looper.
void EndRectTracking()
Ends tracking removing the outline rectangle from the view.
BPositionIO()
This constructor does nothing.
status_t SetDecoratorSettings(const BMessage &settings)
Set the window decorator settings according to settings.
void SetLabel(const char *label)
Undocumented public method.
bool operator!=(const BCursor &other) const
Compare a cursor object to another and return if they are not equal.
bool HasString(const char *name, int32 n=0) const
Deprecated.
virtual void Paste(BClipboard *clipboard)
Copy the text contained in the clipboard to the BTextView.
void MakeEditable(bool editable=true)
Sets whether or not the text is editable.
Type * Detach()
Detach the pointed object from the reference.
Definition: Referenceable.h:104
status_t FormatProposal(const media_source &output, media_format *format)
Attempts to change the media format.
void SetScale(float scale) const
Sets the scale of the coordinate system the view uses for drawing.
bool IsTracking() const
Check whether this control is set to tracking.
BUrl & SetPort(int port)
Set the port of the authority component.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 form, const char *property)
Determine the proper handler for a scripting message.
static bool AreDraggersDrawn()
Returns whether or not draggers are currently drawn.
uint32 SystemCount() const
Returns the number of commits to the clipboard.
const uchar B_TUNE_REQUEST
Identifier of tune request message.
Definition: Midi2Defs.h:26
BGridView(float horizontal=B_USE_DEFAULT_SPACING, float vertical=B_USE_DEFAULT_SPACING)
Creates a new grid view.
virtual status_t Perform(perform_code d, void *arg)
Perform some action. (Internal Method)
Container view for a collection of views organized in a grid.
Definition: GridView.h:12
bool IsVerticalSet() const
Undocumented public method.
Definition: Alignment.h:100
message_source MessageSource() const
Return the message_source criterium of this filter.
virtual status_t ItemArchived(BMessage *into, BLayoutItem *item, int32 index) const
Hook for derived classes to add data specific to item to the into BMessage. item resides at index.
virtual void SetResizingMode(uint32 mode)
Sets the resizing mode of the view according to the mode mask.
virtual BLayoutItem * AddView(BView *child)
Adds child to this layout in the first empty cell available, or in a new column in the first row if t...
BCollator()
Construct a collator with the default locale and strength.
status_t Connect(const BNetworkAddress &peer, int type, bigtime_t timeout=B_INFINITE_TIMEOUT)
Connect the socket to the given peer.
Provides the BReferenceable interface and declares the BReferenceable and BReference classes.
bool operator!=(const BVolume &volume) const
Returns whether or not the supplied BVolume object is NOT equal to this object.
BAlert()
Create an unconfigured BAlert dialog.
int32 IsPaused()
Returns the current playback status.
int32 FindLastChars(const BString &string, int32 beforeCharOffset) const
UTF-8 aware version of FindLast(const BString&, int32).
void Unlock()
Unlocks the off-screen window that belongs to the bitmap.
BView * PreviousSibling() const
Returns a pointer to the previous sibling view.
status_t SetTo(const char *zoneID, const BLanguage *language=NULL)
Set the BTimeZone object to use a different time zone.
file_panel_button
List of buttons used by the file panel.
Definition: FilePanel.h:35
status_t SetStrength(int8 strength) const
Set the strength of the collator.
status_t Clear()
Resets the object to a uninitialized state.
virtual BAlignment BaseAlignment()
Overridden hook method from BAbstractLayout.
status_t GetMonitorInfo(monitor_info *info)
Fills out the info struct with information about a monitor.
window_feel
Definition: Window.h:45
status_t RenameAttr(const char *oldName, const char *newName)
Moves the attribute given by oldName to newName.
virtual void LayoutInvalidated(bool children)
BFont font
Definition: TextView.h:23
float Spacing() const
Get the amount of spacing (in pixels) between each item.
void SetButtonLabel(file_panel_button button, const char *label)
Set the button label specified by button to text.
BUrl & SetRequest(const BString &request)
Set the request part of the URL.
virtual void GetPreferredSize(float *_width, float *_height)
Fills out _width and _height with the optimal width and height of the text control to display the lab...
Font family and style mask parameter.
Definition: View.h:61
The path of the package the file referred to by the specified path belongs to.
Definition: FindDirectory.h:162
virtual void SetText(const char *text)
Sets the text displayed by the BTextControl.
Abstract BLayout subclass arranging items within rows and columns.
Definition: TwoDimensionalLayout.h:14
status_t(* remove_dir)(fs_volume *volume, fs_vnode *parent, const char *name)
Remove a directory.
Definition: fs_interface.h:191
void * Bits() const
Gets the pointer to the bitmap data.
Provides the BPath class.
status_t AddDouble(const char *name, double value)
Convenience method to add a double to the label name.
bool WasDropped() const
Check if the message was delivered through 'drag and drop'.
BString & MoveInto(BString &into, int32 from, int32 length)
Move the BString data (or part of it) into another BString.
Class that represents a password for or from the Haiku key store.
Definition: Key.h:93
void PrintToStream() const
Print the x and y coordinates to standard output.
A struct that allows you to specify extra horizontal space to surround each character with.
Definition: Font.h:145
BEntry()
Creates an uninitialized BEntry object.
BCountry & operator=(const BCountry &other)
Initialize a BCountry from another BCountry object by overloading the = operator.
virtual void SetLowColor(rgb_color color)
Set the low color of the view.
BLocker()
Create a new BLocker with the default name "some BLocker" and benaphore-style locking.
Definition: FilePanel.h:37
BView * LastMouseMovedView() const
Returns a pointer to the attached view that most recently received a B_MOUSE_MOVED message.
BDateTime DateTime() const noexcept
Get the current timestamp.
const BRoster * be_roster
Represents the default BRoster.
BView * Owner() const
Returns the Owner of this layout, i.e. the view this layout manages.
float StringWidth(const char *string) const
Determines the amount of space required to draw string in the current font.
status_t(* create)(fs_volume *volume, fs_vnode *dir, const char *name, int openMode, int perms, void **_cookie, ino_t *_newVnodeID)
Creates and opens a new file.
Definition: fs_interface.h:175
bool AddList(const BList *list, int32 index)
Add a list of items to this list at the specified index.
virtual void AddCommonFilter(BMessageFilter *filter)
Add a common filter to the list of filters that are applied to all incoming messages.
void SetItemCollapsed(int32 index, bool collapsed)
Set whether the item at index is displayed as collapsed.
bool IsItemCollapsed(int32 index) const
Check whether the item at index is collapsed.
BLayoutBuilder::Base subclass for building BCardLayouts.
Definition: LayoutBuilder.h:32
status_t RemoveAttr(const char *name)
Deletes the attribute given by name.
status_t AddColor(const char *name, rgb_color value)
Convenience method to add a rgb_color to the label name.
const char * Label() const
Gets the label of the control.
status_t(* fsync)(fs_volume *volume, fs_vnode *vnode)
Synchronize the buffers with the on disk data.
Definition: fs_interface.h:153
void OffsetBy(BPoint delta)
Moves the BRect horizontally by the x value of point and vertically by y value of point without chang...
Grid< ThisBuilder > GridBuilder
Shorthand for builders returned by this builder's AddGrid() methods.
Definition: LayoutBuilder.h:247
void GetText(int32 offset, int32 length, char *buffer) const
Fills out buffer with the text of the BTextView starting at offset and grabbing at most length bytes.
BSplitLayoutBuilder & SetCollapsible(bool collapsible)
Set the collapsability of the most recently added item.
Split< ThisBuilder > SplitBuilder
Shorthand for builders returned by this builder's AddSplit() methods.
Definition: LayoutBuilder.h:58
A container for BTab objects to display all tabs.
Definition: TabView.h:90
BPoint CurrentPosition() const
Returns the current end point of the path.
BSystemError & operator=(const BSystemError &other)
Copy assignment.
Represents and manipulates an URL (Uniform Resource Locator).
Definition: Url.h:15
status_t AddArchivable(const char *name, BArchivable *archivable, bool deep=true)
Adds a reference to archivable to the archive used to construct this BArchiver. May call archivable's...
BExclusiveBorrow & operator=(BExclusiveBorrow &&other) noexcept
Move assignment.
Definition: ExclusiveBorrow.h:151
virtual void ItemRemoved(BLayoutItem *item, int32 fromIndex)
Hook method called when item is removed from this layout.
BFilePanel(file_panel_mode mode=B_OPEN_PANEL, BMessenger *target=NULL, const entry_ref *directory=NULL, uint32 nodeFlavors=0, bool allowMultipleSelection=true, BMessage *message=NULL, BRefFilter *refFilter=NULL, bool modal=false, bool hideWhenDone=true)
Creates and initializes a BFilePanel object.
BString & ReplaceAllChars(const char *replaceThis, const char *withThis, int32 fromCharOffset)
UTF-8 aware version of ReplaceAll(const char*, const char*, int32).
Provides the BCardLayout class.
virtual ~BLocker()
Destructor.
BDragger(BRect frame, BView *target, uint32 resizingMode=B_FOLLOW_NONE, uint32 flags=B_WILL_DRAW)
Creates a new BDragger and sets its target view.
int32 CountReferences() const
Return the number of references to the object.
Definition: Referenceable.h:25
void GetBoundingBoxesAsGlyphs(const char charArray[], int32 numChars, font_metric_mode mode, BRect boundingBoxArray[]) const
Writes an array of BRect objects to boundingBoxArray representing the bounding rectangles of each cha...
bool HasFlat(const char *name, const BFlattenable *object) const
Deprecated.
status_t GetPath(BPath *path) const
Gets the path for the BEntry.
BLocale & operator=(const BLocale &other)
Gets the collator associated to this locale.
virtual void MakeFocus(bool state=true)
Highlight or unhighlight the selection when the list view acquires or loses its focus state.
alpha_function
Definition: GraphicsDefs.h:305
status_t GetNextApplication(uint32 &cookie, BString &signature) const
Iterate through applications that currently have been granted access to the Master keyring.
void GetAppList(BList *teamIDList) const
Returns a list of all currently running applications.
uint8 ByteAt(int32 offset) const
Returns the character at the given offset.
status_t GetRef(entry_ref *ref) const
Gets an entry_ref structure for the BEntry.
const rgb_color B_TRANSPARENT_32_BIT
Transparent color.
const char * Id
An int32 that identifies the request the message pertains to.
const uchar B_STOP
Identifier of stop message.
Definition: Midi2Defs.h:31
The base class for most of the Mail Kit.
Definition: MailComponent.h:35
bool operator!=(const BNode &node) const
Tests whether this and the supplied BNode object are not equal.
virtual bool AllowsTypeCode(type_code code) const
Get whether or not the supplied type_code is supported.
BListItem * ItemUnderAt(BListItem *superItem, bool oneLevelOnly, int32 index) const
Returns a pointer to the item at index under superItem.
bool operator!=(const BShape &other) const
Returns whether or not the contents of this BShape and other do NOT contain the same data.
void SetAlignment(alignment align)
Sets the way text is aligned within the frame.
BListItem * EachItemUnder(BListItem *superItem, bool oneLevelOnly, BListItem *(*eachFunc)(BListItem *item, void *arg), void *arg)
Calls eachFunc for each item under superItem.
void get_key_map(key_map **_map, char **_keyBuffer)
Provides a copy of the system keymap.
instantiation_func find_instantiation_func(const char *className, const char *signature)
Internal function that searches for the instantiation func with a specific signature....
virtual void DoLayout()
Layout view within the layout context.
virtual void ExpandOrCollapse(BListItem *superItem, bool expand)
Toggle the expanded state of item.
bool HasItem(BListItem *item) const
Returns whether or not the list contains the specified item.
virtual void FirstReferenceAcquired()
Called when the first reference to the object is reacquired.
bool AddList(BObjectList *)
Append a list of items to this list.
Definition: ObjectList.h:494
BFileInterface()
Constructor.
Provides the BCollator class.
virtual status_t Unflatten(const BMessage &message)
Unflatten the key from a message.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
float Progress() const
Returns the progress for the notification.
float FalseBoldWidth() const
Gets the width of the font as if it were bold.
virtual status_t Perform(perform_code d, void *arg)
Perform some action. (Internal Method)
status_t FindNodeRef(const char *name, node_ref *ref) const
Find a reference to a node at the label name.
virtual status_t GetType(char *type) const
Gets the MIME type of the associated file.
status_t notify_attribute_changed(dev_t device, ino_t directory, ino_t node, const char *attribute, int32 cause)
Notifies listeners that an attribute of a node has been changed.
virtual status_t GetStat(struct stat *stat) const
Fills in a stat structure for the entry.
virtual ~BPositionIO()
This destructor does nothing.
bool Intersects(BRect rect) const
Returns whether or not the region has any area in common with rect.
virtual BSize PreferredSize()
Returns the preferred size of the box.
void SetBits(const void *data, int32 length, int32 offset, color_space colorSpace)
Assigns data to the bitmap.
virtual ~BStringItem()
Destructor, frees the memory used by the string.
void SetFalseBoldWidth(float width)
Sets the false bold width.
BLooper(const char *name=NULL, int32 priority=B_NORMAL_PRIORITY, int32 portCapacity=B_LOOPER_PORT_DEFAULT_CAPACITY)
Construct a new BLooper with a priority and an capacity.
const uint32 B_OBSERVER_OBSERVE_ALL
Parameter to BHandler::StartWatching().
Definition: Handler.h:23
void DrawPicture(const BPicture *a_picture)
Draws the picture at the view's current pen position.
bool operator==(BRect other) const
Returns whether or not two rectangles coincide exactly.
virtual void Draw(BRect updateRect)
Hook method called to draw the contents of the text view.
bool SupportsDaylightSaving() const
Returns whether or not if the time zone support daylight saving time.
status_t SetCurrentSpecifier(int32 index)
Undocumented.
BString & PrependChars(const char *string, int32 charCount)
UTF-8 aware version of Prepend(const char*, int32).
Mouse transit outside view.
Definition: View.h:33
void ScaleBy(double x, double y)
Scale the current view by factors x and y.
status_t AddInt32(const char *name, int32 value)
Convenience method to add an int32 to the label name.
Reference to a BAtomic class that was going to be in BeOS R6.
Definition: TypeConstants.h:19
static bool IsHexDigit(uint32 c)
Determine if c is a hexadecimal digit.
BLocale(const BLanguage *language=NULL, const BFormattingConventions *conventions=NULL)
Initializes a BLocale object corresponding to the passed in language and conventions.
virtual ssize_t ReadAt(off_t position, void *buffer, size_t size)
Read from a given position.
size_t PredicateLength()
Gets the length of the predicate string.
status_t GetMode(display_mode *mode)
Fills out the display_mode struct from the current workspace.
Represents an unsigned long type.
Definition: TypeConstants.h:59
uint32 LocalCount() const
Returns the (locally cached) number of commits to the clipboard.
BStatusBar(BRect frame, const char *name, const char *label=NULL, const char *trailingLabel=NULL)
Undocumented public method.
const pattern B_SOLID_LOW
virtual status_t GetSupportedSuites(BMessage *data)
Undocumented public method.
virtual void AncestorVisibilityChanged(bool shown)
Hook method inherited from BLayoutItem, classes derived from BLayout must include the BLayout version...
virtual status_t GetSupportedSuites(BMessage *message)
Report the suites of messages this control understands.
Font cache parameters.
Definition: Font.h:151
BTranslatorRoster()
Constructs an empty BTranslatorRoster.
virtual status_t Perform(perform_code d, void *arg)
Perform some action. (Internal Method)
BMessenger Messenger() const
Gets the panel's target messenger object.
const uchar B_ACTIVE_SENSING
Identifier of active sensing message.
Definition: Midi2Defs.h:32
void Unset()
Returns the object to an uninitialized state.
status_t InitCheck() const
Returns the status of the constructor.
float x
The horizontal coordinate.
Definition: Point.h:17
std::optional< off_t > size
The size of the content, if known.
Definition: HttpRequest.h:143
orientation Orientation() const
Get the orientation of this BGroupLayout.
status_t FindPoint(const char *name, BPoint *point) const
Find a point at the label name.
A MediaKit producer node which mixes sound from the GameKit and sends them to the audio mixer.
Definition: GameProducer.h:39
void PushState()
Saves the drawing state to the stack.
virtual void AddFilter(BMessageFilter *filter)
Add filter as a prerequisite to this handler.
status_t GetNextKey(uint32 &cookie, BKey &key)
Iterate through the keys of the Master keyring.
bool SwapItems(int32 a, int32 b)
Swap item a with item b.
virtual status_t GetSupportedSuites(BMessage *message)
Report the suites of messages this control understands.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determines the proper handler for the passed in scripting message.
virtual void SetFlags(uint32 flags)
Sets the control flags according to the flags mask.
virtual void SetEnabled(bool on)
Undocumented public method.
int32 Length() const
Get the length of the string in bytes.
Definition: String.h:449
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
BList * FilterList()
Return a pointer to the list of filters.
const char * Label() const
Returns the tab's label (the target view's name).
status_t ReplaceFlat(const char *name, BFlattenable *object)
Replace a flattened object at the label name.
Used by BTwoDimensionalLayout derived classes to communicate the size constraints for a given column ...
Definition: TwoDimensionalLayout.h:46
int ICompare(const BString &a, const BString &b)
Lexicographically compare two strings case-insensitively.
BView * View() const
Get a reference to the owning BView.
BDeskbar()
Undocumented public method.
status_t SetType(const char *mimeType)
Initializes this object to the supplied MIME type.
const uchar B_GENERAL_CTRL_8
Identifier of general control 8 message.
Definition: Midi2Defs.h:58
void SetFormattingConventions(const BFormattingConventions &conventions)
Sets the formatting convention for this locale.
virtual BString DebugMessage() const
Retrieve a debug message that contains all info in this error.
status_t InitCheck() const
Check if the catalog is in a valid and usable state.
BString & TruncateChars(int32 newCharCount, bool lazy=true)
UTF-8 aware version of Truncate(int32, bool).
const uchar B_EFFECTS_DEPTH
Identifier of effects depth message.
Definition: Midi2Defs.h:59
const uchar B_PITCH_BEND
Identifier of pitch bend message.
Definition: Midi2Defs.h:18
bool GreaterOrEqual(const char *s1, const char *s2) const
Determines if one string is greater than another.
Definition: Collator.h:95
float PasswordStrength(const char *password)
Unimplemented.
uint8 InvertIndex(uint8 index)
Gets the "Inversion" of an 8-bit color index.
virtual void SetEnabled(bool state)
Enable and disable the color control.
BAbstractLayout()
Construct a BAbstractLayout.
status_t RegisterLooper(BLooper *looper)
Register a looper to quit when the application quits.
__haiku_int16 int16
2-bytes signed integer.
Definition: SupportDefs.h:22
BLayoutItem * CreateLabelLayoutItem()
Creates a label layout item and returns a pointer to it (Layout constructor only).
const uint32 _VIEW_LEFT_
View left mask variable. Do not use.
Definition: View.h:102
status_t ReplacePoint(const char *name, BPoint aPoint)
Replace a point at the label name.
virtual ~BPath()
Destroys the BPath object and frees any associated resources.
BRect LayoutArea()
Returns the on-screen area this layout has received to lay out its items in.
Represents a pointer type, including void*.
Definition: TypeConstants.h:43
BPoint PointAt(int32 offset, float *_height=NULL) const
Returns the location of the character at the given offset.
void SetText(const char *text)
Sets the contents of this component to the UTF8 string text.
void SetTo(Type *object, bool alreadyHasReference=false)
Sets a new target for the reference.
Definition: Referenceable.h:76
status_t LockMasterKeyring()
Not implemented.
virtual void FrameMoved(BPoint newPosition)
Hook method called when the view is moved.
void Reset()
Restarts the timer.
bool IsLocked() const
Determines whether or not the bitmap's off-screen window is locked.
const uint32 B_INPUT_METHOD_AWARE
Indicates the view understands input method add-ons, as used for complex text input in CJK and other ...
Definition: View.h:93
The base coordinate space of the parent view.
Definition: View.h:78
virtual ~BSeparatorView()
Undocumented public method.
virtual void Connected(BMidiConsumer *cons)
Invoked when a new consumer is connected to this producer.
virtual status_t SetSize(off_t size)
Call the SetSize() function of the assigned BPositionIO stream.
bool IsEmpty() const
Check if the message has data members.
const uchar B_CHANNEL_PRESSURE
Identifier of channel pressure message.
Definition: Midi2Defs.h:17
__haiku_int64 int64
8-bytes signed integer.
Definition: SupportDefs.h:26
virtual void AttachedToWindow()
Hook method called when the text view is added to the view hierarchy.
BStringView(BRect frame, const char *name, const char *text, uint32 resizingMode=B_FOLLOW_LEFT_TOP, uint32 flags=B_WILL_DRAW)
Creates a new BStringView object which displays the non-editable text string in the plain system font...
status_t AddString(const char *name, const char *string)
Convenience method to add a C-string to the label name.
virtual void Draw(BRect updateRect)
Hook method overridden from BView.
The BeOS directory.
Definition: FindDirectory.h:105
status_t PushInt64(int64 value)
Pushes an int64 onto the predicate stack.
void Refresh()
Refresh the directory or the panel causing the entries to be re-run through the BRefFilter::Filter() ...
BSize()
Initializes a BSize object with both dimensions set to B_SIZE_UNSET.
Definition: Size.h:49
virtual void MenusBeginning()
Hook method that gets called just before a menu owned by the window is shown.
virtual void Timeout(void *data)
Hook function that is called per your own request.
status_t GetLanguage(BString *language)
Get the catalog language.
Displays and manipulates styled text.
Definition: TextView.h:46
virtual ~BListItem()
Destroy the list item freeing any memory used.
virtual off_t Position() const
Gets the current stream position.
Undocumented class.
Definition: ChannelSlider.h:12
virtual ~BOutlineListView()
Delete the outline BOutlineListView object and free the memory used by it.
const T * FindIf(const UnaryPredicate< T > &) const
Find items that match predicate.
Definition: ObjectList.h:655
bool operator!=(BUrl &other) const
Undocumented public method.
bool RemoveSelf()
Remove this layout item from the BLayout it is a part of.
virtual ~BGroupLayout()
Destructor method.
Defines the BObjectList class.
status_t(* open)(fs_volume *volume, fs_vnode *vnode, int openMode, void **_cookie)
Opens the given node.
Definition: fs_interface.h:178
uint32 Command() const
Return the accepted message constant.
Defines structures and preprocessor macros that are used by the translation kit.
status_t SetData(const uint8 *data, size_t length)
Set the data for the key.
int64 bigtime_t
Represents time in microseconds.
Definition: SupportDefs.h:53
virtual void RemoveOptionAt(int32 index)=0
Undocumented public method.
void RemoveShortcut(uint32 key, uint32 modifiers)
Removes the specified shortcut from the window.
source_alpha
Definition: GraphicsDefs.h:299
void SprayPitchBend(uchar channel, uchar lsb, uchar msb, bigtime_t time=0) const
Sends a Pitch Bend event to all connected consumers.
virtual void DetachedFromLayout(BLayout *layout)
Hook called when this object is attached to a BLayout (via BLayout::RemoveItem())
bool operator!=(const Verb &other) const noexcept
Comparison operator.
bool IsEnabled() const
Returns whether or not the list item is currently enabled.
virtual size_t MaxTransmissionSize() const
Return the maximal size of a transmission on this socket.
virtual void Draw(BRect updateRect)
Draws the focus tab and the tab view frame.
ThisBuilder & GetView(BView **_view)
Get a pointer to the BView this builder's layout is attached to.
Definition: LayoutBuilder.h:1194
BDataIO * Stream() const
Undocumented public method.
bool IsExpanded(int32 fullListIndex)
Returns whether or not the section that the item at fullListIndex is expanded or not.
BMessenger()
Creates an uninitialized BMessenger.
status_t GetCurrentSpecifier(int32 *index, BMessage *specifier=NULL, int32 *what=NULL, const char **property=NULL) const
Undocumented.
A rectangular view with a border and an optional label to group related subviews visually.
Definition: Box.h:12
const char * pretty_name
A NULL-terminated string with a 'pretty' name for you file system.
Definition: fs_interface.h:259
status_t(* initialize)(int fd, partition_id partition, const char *name, const char *parameters, off_t partitionSize, disk_job_id job)
Undocumented. TODO.
Definition: fs_interface.h:304
void VisibilityChanged(bool show)
Method to be called by derived classes in their SetVisible() implementation. Calls AncestorVisibility...
const char * Code() const
Gets the ISO country code for the country.
uint32 GetUInt32(const char *name, uint32 defaultValue) const
Return the uint32 value from message with name, or defaultValue if not found.
The current drawing space.
Definition: View.h:74
virtual status_t HandleMessage(int32 message, const void *data, size_t size)
Dispatches a message to the appropriate BMediaNode hook method given a message received on the contro...
void SetDoesUndo(bool undo)
Enables and disables the undo mechanism.
status_t RemoveUnlockKey(const char *keyring)
Not implemented.
virtual status_t AllUnarchived(const BMessage *from)
Unarchives the BLayoutItem's for this layout, calling ItemUnarchived() for each one.
status_t SetPreferredApp(const char *signature, app_verb verb=B_OPEN)
Sets the preferred application for the MIME type.
The user non-packaged documentation directory, contains e.g. man pages.
Definition: FindDirectory.h:83
BString & CapitalizeEachWord()
Convert the first character of every word to uppercase, and the rest to lowercase.
virtual void MessageReceived(BMessage *message)
Undocumented public method.
Represents the float type.
Definition: TypeConstants.h:25
status_t GetPreferredApp(char *signature, app_verb verb=B_OPEN) const
Gets the preferred application of the node.
Represents a MIME string of the data type.
Definition: TypeConstants.h:37
BRect Frame()
Gets the frame of the screen in the screen's coordinate system.
bool KnowsAttr() const
Returns whether or not the volume supports attributes.
uint8 green
Green value for the color.
Definition: GraphicsDefs.h:44
virtual status_t Perform(perform_code code, void *data)
Perform some action. (Internal Method)
const uint32 B_NAVIGABLE
The view is able to receive focus for keyboard navigation. Typically focus is indicated by drawing a ...
Definition: View.h:90
BRect operator&(BRect other) const
Creates and returns a new BRect that is the intersection of the BRect and other.
Grid< ThisBuilder > GridBuilder
Shorthand for builders returned by this builder's AddGrid() methods.
Definition: LayoutBuilder.h:315
bool IsEnabled() const
Gets whether or not the control is currently enabled.
const char * Text()
Returns the contents of this component as a UTF8 string.
const uint32 _VIEW_BOTTOM_
View bottom mask variable. Do not use.
Definition: View.h:103
int32 CountLockRequests() const
Return the number of threads with a pending lock request.
The system media nodes directory.
Definition: FindDirectory.h:29
void LatencyChanged(const media_source &source, const media_destination &destination, bigtime_t new_latency, uint32 flags)
Sets the event latency in the case that the latency changed.
virtual void ResizeToPreferred()
Undocumented public method.
status_t ReplaceSize(const char *name, BSize aSize)
Replace a size at the label name.
virtual void MouseDown(BPoint where)
Selects the tab that the user clicked on (if any).
virtual status_t Invoke(BMessage *message=NULL)
Undocumented public method.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
const uint32 B_DRAW_ON_CHILDREN
Indicates that the view responds to the DrawAfterChildren() hook method.
Definition: View.h:92
status_t(* read_dir)(fs_volume *volume, fs_vnode *vnode, void *cookie, struct dirent *buffer, size_t bufferSize, uint32 *_num)
Reads the next one or more directory entries.
Definition: fs_interface.h:198
float PenSize() const
Return the current pen size.
bool IsFile() const
Returns whether or not the node is a file.
The BIconUtils class provide utility methods for managing and drawing vector icons.
Definition: IconUtils.h:15
BListItem(uint32 outlineLevel=0, bool expanded=true)
Create a new list item with the specified level.
status_t FindInt64(const char *name, int64 *value) const
Find an integer at the label name.
The BCardLayout class is a simple BLayout subclass that arranges the items as a stack of cards with o...
Definition: CardLayout.h:11
status_t FindString(const char *name, const char **string) const
Find a string at the label name.
status_t SendMessage(uint32 command, BHandler *replyTo=NULL) const
Delivers a BMessage with command what identifier to the messenger's target. A response may be sent to...
virtual ~BTextView()
Frees the memory allocated and destroys the object.
const char * MessageID() const
Returns the identifier of the notification.
float Shear() const
Gets the font shear.
BView * ContainerView() const
Returns a pointer to the tab view's container view.
The unarchived objects will be borrowed to the caller.
Definition: Archivable.h:89
void EnableUpdates()
Re-enable drawing within the window.
uint32 Command() const
Returns the message's what data member.
Interface for classes that can flatten and unflatten themselves to a stream of bytes.
Definition: Flattenable.h:12
bool IsFront() const
Returns whether or not the window is the frontmost on screen.
bool RemoveHandler(BHandler *handler)
Disassociate a handler from this looper.
Defines the BBitmap class and global operators and functions for handling bitmaps.
virtual ssize_t FlattenedSize() const
Returns the size of the flattened object in bytes.
status_t SetPreferredApp(const char *signature, app_verb verb=B_OPEN)
Sets the preferred application of the node. If signature is NULL, the BEOS:PREF_APP attribute is remo...
BBufferedDataIO(BDataIO &stream, size_t bufferSize=65536L, bool ownsStream=true, bool partialReads=false)
Undocumented public method.
buffer_clone_info CloneInfo() const
Gets the buffer_clone_info struct that describes the buffer.
status_t AddTranslators(const char *loadPath=NULL)
Adds translators from a directory to the roster.
virtual ~BMessage()
Free the data members associated with the message.
Error resolving the hostname.
Definition: NetServicesDefs.h:58
status_t SetLongDescription(const char *description)
Sets the long description field for the MIME type.
virtual status_t GetNextRef(entry_ref *ref)
Returns the BDirectory's next entry as an entry_ref.
virtual void PrintToStream()
Dump the contents of the key to standard output.
status_t(* close_query)(fs_volume *volume, void *cookie)
Close a 'directory' of a query.
Definition: fs_interface.h:104
Represents raw bitmap data in the B_COLOR_8_BIT color space (8-bits per pixel.)
Definition: TypeConstants.h:23
const uint8 B_TRANSPARENT_MAGIC_CMAP8
Transparent color.
ThisBuilder & GetLayout(BGridLayout **_layout)
Get the layout this builder represents.
Definition: LayoutBuilder.h:850
virtual type_code TypeCode() const =0
Pure virtual that returns the type_code this class flattens to.
off_t Capacity() const
Returns the total storage capacity of the volume.
bool IsSourceRemote() const
Check if the message is sent by another application.
int32 atomic_get(int32 *value)
Atomically return the value of value.
BNodeInfo()
Creates an uninitialized BNodeInfo object.
ThisBuilder & SetExplicitMaxSize(BSize size)
Set the explicit maximum size of the underlying layout.
Definition: LayoutBuilder.h:1652
Cards< ThisBuilder > CardBuilder
Shorthand for builders returned by this builder's AddCards() methods.
Definition: LayoutBuilder.h:139
Cards< ParentBuilder > ThisBuilder
Shorthand representing the type of this.
Definition: LayoutBuilder.h:313
virtual status_t GetSupportedSuites(BMessage *data)
Undocumented public method.
Specifies that if the resulting path doesn't exist, the respective function shall skip it.
Definition: FindDirectory.h:127
bool StartsWith(const BString &string) const
Returns whether or not the BString starts with string.
thread_id LockingThread() const
Return the thread id of the thread that currently holds the lock.
bool IsEnabled() const
Returns whether or not the tab is enabled.
virtual void SetValue(int32 value)
Calls BControl::SetValue(). This isn't particularly useful.
int64 atomic_get64(int64 *value)
Atomically return the value of value.
The user non-packaged sounds directory.
Definition: FindDirectory.h:82
virtual ~BCursor()
Destroy the cursor and free its memory.
ConstIterator FindField(const std::string_view &name) const noexcept
Find a field with name.
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
void Disconnect(const media_source &what, const media_destination &where)
Disconnects from the output device.
virtual bool IsConnected() const
virtual BTab * RemoveTab(int32 tabIndex)
Removes the tab at the specified index from the BTabView and returns a pointer to the BTab object.
virtual bool RemoveItem(BListItem *item)
Removes the item from the list.
Represents raw bitmap data in the B_RGB_32_BIT color space (32-bits per pixel.)
Definition: TypeConstants.h:50
virtual void SetExplicitMaxSize(BSize size)
Set this item's explicit max size, to be used in MaxSize().
BString PreferredApplication() const
Undocumented public method.
media_buffer_id ID()
Gets the ID of the buffer according to the App Server.
virtual bool AddItem(BLayoutItem *item)
Adds item to this layout as the last item. In a vertical BGroupLayout, item will be on the right,...
BHandler * HandlerAt(int32 index) const
Get the handler at an index of the list of associated handlers.
The BeOS media nodes directory.
Definition: FindDirectory.h:118
BExclusiveBorrow() noexcept
Create a new smart pointer with no value.
Definition: ExclusiveBorrow.h:116
void SetIcon(BBitmap *bitmap)
Set a custom icon for the alert.
virtual void MouseDown(BPoint where)
Hook method that is called when a mouse text control is pushed down while the cursor is contained in ...
status_t InitCheck() const
Checks whether or not the object was properly initialized.
void Sync() const
Synchronizes the attached window's connection to App Server.
The BeOS servers directory.
Definition: FindDirectory.h:111
const uchar B_GENERAL_CTRL_3
Identifier of general control 3 message.
Definition: Midi2Defs.h:47
Abstract interface for all socket connections.
Definition: AbstractSocket.h:15
filter_result(* filter_hook)(BMessage *message, BHandler **target, BMessageFilter *filter)
Prototype for a custom filter_hook for use in the BMessageFilter class.
Definition: MessageFilter.h:26
status_t(* read_query)(fs_volume *volume, void *cookie, struct dirent *buffer, size_t bufferSize, uint32 *_num)
Read the next one or more entries matching the query.
Definition: fs_interface.h:106
bool DoesWordWrap() const
Returns whether or not word wrapping is activated.
BPropertyInfo(property_info *prop=NULL, value_info *value=NULL, bool freeOnDelete=false)
Initializes the object with the specified NULL-terminated arrays propertyInfo and valueInfo.
const BString & ID() const
Returns the ID of the time zone as a BString, for example, "America/Los_Angeles".
static BArchivable * Instantiate(BMessage *archive)
Undocumented public method.
bool HasBool(const char *name, int32 n=0) const
Deprecated.
void Unlock()
Unlock the BAutolock if the lock is being held.
Definition: Autolock.h:92
status_t FindAlignment(const char *name, BAlignment *alignment) const
Find an alignment at the label name.
virtual status_t SetTarget(const BHandler *handler, const BLooper *looper=NULL)
Sets the target to either a local handler or as the preferred handler of a local looper.
BView * View() const
Get a pointer to the BView this builder's layout is attached to.
Definition: LayoutBuilder.h:504
ssize_t FlattenedSize() const
Return the size in bytes required when you want to flatten this message to a stream of bytes.
The global applications directory.
Definition: FindDirectory.h:99
void SortItems(int(*cmp)(const void *, const void *))
Sort the items according the the passed in cmp function.
virtual ~BWindow()
Destroys the BWindow object and all attached views.
bool HasResource(type_code type, int32 id)
Returns whether the file contains a resource with the specified type and id.
status_t Expand(bool expand)
Undocumented public method.
virtual ~BBitmap()
Destructor Method.
void set_dateformats(const char *table[])
sets the internal format table for parsedate()
virtual status_t AllUnarchived(const BMessage *from)
Unarchives the BLayoutItem's for this layout, calling ItemUnarchived() for each one.
Font size mask parameter.
Definition: View.h:62
BRect OffsetToCopy(BPoint offset) const
Like BRect::OffsetTo() but returns a copy of the translated BRect leaving the original unmodified.
virtual void SetExplicitPreferredSize(BSize size)
Set this item's explicit preferred size, to be used in PreferredSize().
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
int32 FindFirst(const BString &string) const
Find the first occurrence of the given string.
uint32 CountItems() const
Undocumented public method.
unicode_block Blocks() const
Gets a unicode_block object that identifies the Unicode blocks supported by this font face and family...
status_t StartWatching(BMessenger target, uint32 what)
Subscribe this handler to watch a specific state change of a target.
virtual status_t StartPlaying()
Plays the sound file.
static BSpaceLayoutItem * CreateGlue()
Create a layout item that acts like glue.
bool IsWidthSet() const
Checks if the BSize::width is not B_SIZE_UNSET.
Definition: Size.h:123
virtual ~BFilePanel()
Destroys the file panel object.
float oversize_threshold
Definition: Font.h:154
status_t Append(const char *path, bool normalize=false)
Appends the passed in relative path to the end of the current path.
void SetMaxHosts(size_t maxConnections)
Set the maximum number of concurrent hosts that can be connected to.
void NodeRegistered()
Handles when an output source node is registered.
virtual status_t Archive(BMessage *data, bool deep=true) const
Archive the BApplication object into a BMessage.
void UnlockLooper()
Unlock the looper.
bool HasAuthority() const
Check if the URL has an host or port.
The system directory used for installation location-wide settings.
Definition: FindDirectory.h:37
status_t notify_stat_changed(dev_t device, ino_t directory, ino_t node, uint32 statFields)
Notifies listeners that certain statFields of a node were updated.
void OffsetTo(BPoint offset)
Move the BRect to the location specified by point.
~BDeskbar()
Undocumented public method.
status_t InitCheck() const
Gets the status of the constructor.
virtual bool QuitRequested()
Hook method that gets called when the window receives a B_QUIT_REQUESTED message.
const char * guess_architecture_for_path(const char *path)
Returns the name of the architecture associated with the given path.
status_t(* rename)(fs_volume *volume, fs_vnode *fromDir, const char *fromName, fs_vnode *toDir, const char *toName)
Rename and/or relocate an entry.
Definition: fs_interface.h:163
int32 atomic_test_and_set(int32 *value, int32 newValue, int32 testAgainst)
Atomically set the variable value to newValue if the current value is testAgainst.
status_t SetAttrInfo(const BMessage *info)
Sets the description of the attributes typically associated with files of the given MIME type.
virtual void AttachedToWindow()
Undocumented public method.
virtual status_t AllArchived(BMessage *archive) const
Method relating to the use of BArchiver.
virtual void AppActivated(bool active)
Hook method that gets invoked when the application receives B_APP_ACTIVATED message.
float BaselineOffset() const
Returns the offset from the top of the frame to the base line of the text.
virtual bool RemoveItems(int32 index, int32 count)
Removes the items from index and the next count items.
font_direction
Definition: Font.h:31
virtual BSize MaxSize()
Gets the maximum possible size of the BBox object.
const char * Name() const
Returns the name of the BClipboard object.
text run array struct
Definition: TextView.h:27
status_t FindDouble(const char *name, double *value) const
Find a double at the label name.
status_t ReplaceUInt8(const char *name, uint8 value)
Replace an integer at the label name.
void ShowToolTip(BToolTip *tip=NULL)
Show the tool tip at the current mouse position.
bool IsRootDirectory() const
Returns whether the directory is the root directory of a volume.
Smart pointer that borrows an object from a BExclusiveBorrow owner.
Definition: ExclusiveBorrow.h:195
uint32 _rule_(uint32 r1, uint32 r2, uint32 r3, uint32 r4)
Internal function, do not use.
Definition: View.h:107
virtual ~BBufferedDataIO()
Undocumented public method.
virtual void GetPreferredSize(float *width, float *height)
Undocumented public method.
status_t Register()
Publishes the endpoint on the roster.
virtual ~BPropertyInfo()
Destructor method.
status_t create_app_meta_mime(const char *path, int recursive, int synchronous, int force)
Creates a MIME database entry for one or more applications.
const char ** get_dateformats(void)
returns the internal format table currently used by parsedate()
int32 CountTuned() const
Gets the number of tuned fonts for the font family and style.
BCardView()
Creates a new card view.
notification_type
Visual style of the notification.
Definition: Notification.h:16
BGridLayoutBuilder & SetRowWeight(int32 row, float weight)
Set the weight of row to weight.
int32 CountChars() const
Returns the length of the object measured in characters.
virtual bool QuitRequested()
Hook method that gets invoked when the BApplication receives a B_QUIT_REQUESTED message.
virtual bool SupportsIndividualLimits() const =0
Undocumented public method.
Represents an unsigned short type.
Definition: TypeConstants.h:58
status_t(* free_index_dir_cookie)(fs_volume *volume, void *cookie)
Free the cookie to the index 'directory'.
Definition: fs_interface.h:90
A point on a two-dimensional Cartesian coordinate system.
Definition: Point.h:15
volatile int32 vint32
4-bytes volatile signed integer.
Definition: SupportDefs.h:34
#define B_CURRENT_WORKSPACE
Definition: Window.h:83
void CenterIn(const BRect &rect)
Center the window in rect.
GroupBuilder AddGroup(orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f)
Definition: LayoutBuilder.h:1248
BPolygon & operator=(const BPolygon &other)
Initializes a new BPolygon object and copies the list of BPoint objects from other.
static bool IsControl(uint32 c)
Determine if c is a control character.
virtual BRect Frame()
Return the bounding frame of this item.
BRect operator|(BRect other) const
Returns a new BRect that is the union of the BRect and other.
ThisBuilder & SetRowWeight(int32 row, float weight)
Set the weight of row to weight.
Definition: LayoutBuilder.h:1087
BView * ViewForTab(int32 tabIndex) const
Returns the BView of the tab at the specified tabIndex.
BString & CopyInto(BString &into, int32 fromOffset, int32 length) const
Copy the object's data (or part of it) into another BString.
virtual void SetAlignment(alignment label, alignment text)
Set the alignment of the label and the text within the control.
virtual void LayoutInvalidated(bool descendants)
Hook method called when the layout is invalidated.
status_t(* read)(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, void *buffer, size_t *length)
Reads data from a file.
Definition: fs_interface.h:183
virtual void DoLayout()
Hook method overridden from BAbstractLayout.
float bottom
The value of the rectangle's bottom edge.
Definition: Rect.h:20
void Clear()
Deletes all data returning the BShape to an empty state.
status_t GetAvailableLanguages(BMessage *message) const
Fills message with 'language'-fields containing the language ID(s) of all available languages.
void * LayoutData() const
Retrieve arbitrary data attached to this BLayoutItem.
void openlog(const char *ident, int options, int facility)
Starts a log session, and sets some output options.
virtual ~BInvoker()
Destructor method, deletes the BMessage object if set.
virtual status_t Perform(perform_code d, void *arg)
Undocumented public method.
void SetSpacing(float spacing)
Set the spacing between elements in this view.
virtual void WindowActivated(bool active)
Hook method that is called when the window becomes the active window or gives up that status.
bool operator==(const BVolume &volume) const
Returns whether or not the supplied BVolume object is equal to this object.
Definition: GraphicsDefs.h:313
BShape & operator=(const BShape &other)
Constructs a BShape object as a copy of other by overloading the = operator.
const color_map * ColorMap()
Gets the color_map of the BScreen.
status_t StartWatching(BMessenger target)
Start watching the BClipboard object for changes.
BHttpStatusCode StatusCode() const noexcept
Map the code value to a BHttpStatusCode value.
status_t EnsureUnarchived(const char *name, int32 index=0)
Ensure the object archived under name at index is unarchived and instantiated.
Definition: Archivable.h:275
status_t AddUInt8(const char *name, uint8 value)
Convenience method to add an uint8 to the label name.
virtual void LayoutInvalidated(bool descendants)
Hook method called when the layout is invalidated.
virtual int32 GetNextDirents(dirent *buf, size_t bufSize, int32 count=INT_MAX)
Returns the next entries of the BDirectory object as a pointer to dirent structures.
virtual bool IsFixedSize() const =0
Pure virtual that should return whether or not flattened objects of this type always have a fixed siz...
virtual status_t Unflatten(type_code code, const void *buffer, ssize_t size)
Value for UrlEventData::DebugType indicating that the message is a warning messsage.
Definition: NetServicesDefs.h:106
The user directory for printer settings.
Definition: FindDirectory.h:67
virtual void MouseUp(BPoint where)
Undocumented public method.
status_t GetAttrInfo(BMessage *info) const
Fetches from the MIME database a BMessage describing the attributes typically associated with files o...
void GetEdges(const char charArray[], int32 numBytes, edge_info edgeArray[]) const
Determines the edge information for each character in charArray and writes the result in edgeArray.
ThisBuilder & SetCollapsible(bool collapsible)
Set the whether all the layout items in this view are collapsible.
Definition: LayoutBuilder.h:1361
status_t notify_query_entry_created(port_id port, int32 token, dev_t device, ino_t directory, const char *name, ino_t node)
Notifies listeners that an entry has entered the result set of a live query.
void Connect(status_t error, const media_source &source, const media_destination &destination, const media_format &format, char *ioName)
Connects to the output device.
int32 CountButtons() const
Counts the number of buttons in the alert.
status_t SetAppHint(const entry_ref *ref)
Sets the application that will open the file type of the node. If ref is NULL, the BEOS:PPATH attribu...
const char * MaxLimitLabelFor(int32 channel) const
Undocumented public method.
int32 *const & MinLimitList() const
Undocumented protected method.
Definition: ChannelControl.h:156
BFile & operator=(const BFile &file)
Assigns another BFile to this BFile.
status_t SetTarget(BMessenger messenger)
Assigns the target messenger and makes the query live.
BGroupLayout * Layout() const
Get a pointer to the layout this builder represents.
Definition: LayoutBuilder.h:496
static BTranslatorRoster * Default()
Gets the default BTranslatorRoster.
A struct that stores where in memory a BBuffer object is in memory as well as the buffer flags.
Definition: Buffer.h:18
void SetRightBottom(const BPoint point)
Sets the right bottom point of the BRect.
virtual void SetExplicitAlignment(BAlignment alignment)=0
Set this item's explicit alignment, to be used in Alignment().
void AddChild(BView *child, BView *before=NULL)
Adds child to the view hierarchy immediately before before.
Class representing a country.
Definition: Country.h:28
status_t SetBool(const char *name, bool value)
Set the data with at the label name to value.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determine the proper handler for a scripting message.
team_id Team() const
Returns the ID of the team that the messenger's target belongs to.
virtual status_t GetNextEntry(BEntry *entry, bool traverse=false)=0
Returns the BEntryList's next entry as a BEntry.
status_t SetIconForType(const char *type, const BBitmap *icon, icon_size which)
Sets the large or mini icon used by an application of this type for files of the given type.
A view that allows the user drag and drop a target view.
Definition: Dragger.h:24
Definition: GraphicsDefs.h:320
const char * TrailingLabel() const
Undocumented public method.
virtual ~BKey()
Free all resources associated with this key.
BSize ExplicitPreferredSize() const
Returns the explicit preferred size.
int32 IndexOf(void *item) const
Return the index of item.
int64 GetInt64(const char *name, int64 defaultValue) const
Return the int64 value from message with name, or defaultValue if not found.
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
struct module_info info
Your module_info object which is required for all modules.
Definition: fs_interface.h:257
virtual void Pulse()
Hook method that gets invoked when the BApplication receives a B_PULSE message.
void(* usb_callback_func)(void *cookie, status_t status, void *data, size_t actualLength)
Callback function for asynchronous transfers.
Definition: USB3.h:80
int32 Brightness() const
Calculates a value representing the brightness of this color.
uint32 Flags() const
Returns the current window flags.
virtual ~BCheckBox()
Destructor, does nothing.
alert_type Type() const
Get the alert_type of this alert.
static uint32 ToTitle(uint32 c)
Transforms c to title case.
status_t LineTo(BPoint linePoint)
Adds a "draw line" operation to the BShape.
void AlignInFrame(BRect frame)
Position this BLayoutItem within frame, given the value returned by Alignment(), and the size constra...
status_t(* io)(fs_volume *volume, fs_vnode *vnode, void *cookie, io_request *request)
TODO: Document!
Definition: fs_interface.h:135
void SetRunMode(run_mode mode)
Offline mode is not supported.
status_t GetItemInfo(int32 id, const char **_name) const
Undocumented public method.
const char * B_URL_NEWS
application/x-vnd.Be.URL.news
Represents the off_t type.
Definition: TypeConstants.h:41
alignment Alignment() const
Returns the currently set text alignment flag.
status_t(* link)(fs_volume *volume, fs_vnode *dir, const char *name, fs_vnode *vnode)
Create a new hard link.
Definition: fs_interface.h:160
void SetLeftTop(const BPoint point)
Sets the left top point of the BRect.
virtual void MouseMoved(BPoint where, uint32 transit, const BMessage *dragMessage)
Undocumented public method.
Container for a specific configuration descriptor of a device.
Definition: USB3.h:70
bool IsAttachment()
Employs simple heuristics such as the MIME type and the Content-Disposition: header to determine whet...
virtual ~BPolygon()
Destroys the object and frees the memory used by the associated BPoint objects.
int8 GetInt8(const char *name, int8 defaultValue) const
Return the int8 value from message with name, or defaultValue if not found.
status_t Finish(status_t err=B_OK)
Report any archiving errors and possibly complete the archiving session.
void SetBorderStyle(border_style border)
Undocumented public method.
BHttpTimeFormat
Describes the three time formats supported by the HTTP RFC.
Definition: HttpTime.h:18
int32 FocusTab() const
Returns the index of the current focus tab.
bool IsNextMessage(const BMessage *message) const
Check if the pointer to a message points at the next message on the queue.
virtual void SendMessage(const BMessenger *target, BMessage *message)
Sends the message to the target BHandler messenger.
virtual void MessageReceived(BMessage *message)
Process a message received by the internal handler of this looper.
status_t ReplaceData(const char *name, type_code type, const void *data, ssize_t numBytes)
Replace the data at label name.
float VerticalSpacing() const
Returns the spacing between rows for this layout.
float descent
Definition: Font.h:140
bool IsEmpty() const
Return whether or not there are items in the list.
BApplication(const char *signature)
Initialize a BApplication with the passed in signature.
bool IsFixed() const
Gets whether or not the font is fixed width.
const uint32 B_FULL_UPDATE_ON_RESIZE
Redraw the entire view on resize.
Definition: View.h:84
virtual status_t SetHandlerForReply(BHandler *handler)
Sets the BHandler object responsible for handling reply messages.
void GetTruncatedStrings(const char *stringArray[], int32 numStrings, uint32 mode, float width, BString resultArray[]) const
Write truncated BString objects to resultArray given source BString objects in stringArray.
uint32 ComponentType()
Returns the component_type of this object.
bool IsConnected(BMidiConsumer *cons) const
Determines whether a consumer is connected to this producer.
status_t(* select)(fs_volume *volume, fs_vnode *vnode, void *cookie, uint8 event, selectsync *sync)
Selects the specified vnode with the specified events.
Definition: fs_interface.h:149
status_t GetSignature(BString *signature)
Get the catalog mime-signature.
virtual bool AddItem(BLayoutItem *item)
Adds a BLayoutItem to this layout, and adds the BView it represents to this BLayout's target view.
int32 CountChildren() const
Returns the number of child views that the window has.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determine the proper handler for a scripting message.
void DisableUpdates()
Suppresses drawing within the window.
BInvoker()
Initializes a BInvoker without a message or target.
bool IsFocusChanging() const
Check if the control is changing focus.
Font encoding mask parameter.
Definition: View.h:66
status_t GetLocalizedFileName(BString &localizedFileName, const entry_ref &ref, bool traverse=false)
Looks up a localized filename from a catalog.
Provides access to file type meta data on a node.
Definition: NodeInfo.h:21
status_t PushOp(query_op op)
Pushes an operator onto the predicate stack.
const char * DebugType
An uint32 representing a debug type constant.
BString & AdoptChars(BString &from, int32 charCount)
UTF-8 aware version of Adopt(BString&, int32)
status_t(* write)(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, const void *buffer, size_t *length)
Write data to a file.
Definition: fs_interface.h:185
void SetEncoding(mail_encoding encoding, int32 charset)
Sets the encoding and charset used by Render().
virtual BSize BasePreferredSize()
Overridden hook method from BAbstractLayout.
void SetOnClickApp(const BString &app)
Set which application should be called when the notification is clicked by the user.
virtual int32 InternalCountColumns()=0
Get the number of columns in the BTwoDimensionalLayout.
Provides the BNodeInfo class.
status_t SetCreationTime(time_t ctime)
Sets the node's creation time to ctime.
button_spacing
Method of spacing of buttons in alerts.
Definition: Alert.h:23
void SetAutoindent(bool state)
Sets whether or not new lines of text are automatically indented.
void AddPoints(const BPoint *points, int32 count)
Adds an array of BPoint objects.
virtual bool RemoveItem(BListItem *item)
Remove the specified list item.
int32 VisibleIndex() const
Get the index of the currently visible item.
Interface for iterating through a list of filesystem entries.
Definition: EntryList.h:22
BResources()
Creates an uninitialized BResources object.
virtual status_t ItemUnarchived(const BMessage *from, BLayoutItem *item, int32 index)
Hook for derived classes to retrieve data specific to item from the from BMessage....
virtual void MouseUp(BPoint point)
Hook method called when a mouse button is released.
virtual void DrawItem(BView *owner, BRect frame, bool complete=false)
Hook method called when the string item is drawn.
ThisBuilder & AddGlue(int32 column, int32 row, int32 columnCount=1, int32 rowCount=1)
Definition: LayoutBuilder.h:1040
float LineHeight(int32 lineNumber=0) const
Returns the height of the line at the given lineNumber.
virtual status_t AllUnarchived(const BMessage *from)
Hook method called when all views have been unarchived.
BString & operator<<(const char *string)
Append string to the BString.
BString & ToLower()
Convert each of the characters in the BString to lowercase.
virtual void GetPreferredSize(float *_width, float *_height)
Undocumented public method.
void closelog_team(void)
Closes the log.
virtual void WindowActivated(bool active)
Hook method called when the attached window is activated or deactivated.
status_t RemoveKeyringFromMaster(const char *keyring)
Not implemented.
void DoForEach(bool(*func)(const BString &string))
Undocumented public method.
virtual BSize MaxSize()
Returns the maximum desirable size for this item.
BString & RemoveSet(const char *setOfBytesToRemove)
Remove all the characters specified.
BMessenger & operator=(const BMessenger &other)
Assignment operator, makes this BMessenger a copy of other.
virtual void Minimize(bool minimize)
Minimizes or un-minimizes the window based on minimize.
virtual void FrameResized(float newWidth, float newHeight)
Hook method called when the check box is resized.
void DragMessage(BMessage *message, BRect dragRect, BHandler *replyTo=NULL)
Initiates a drag-and-drop session.
virtual BAlignment LayoutAlignment()
Returns the alignment used by this view as part of a BLayout.
virtual void GetPreferredSize(float *width, float *height)=0
Undocumented public method.
void SetViewBitmap(const BBitmap *bitmap, BRect srcRect, BRect dstRect, uint32 followFlags=B_FOLLOW_LEFT_TOP, uint32 options=B_TILE_BITMAP)
Sets the background bitmap of the view.
BEntryList()
Creates a BEntryList object.
Definition: CatalogData.h:27
virtual off_t Seek(off_t position, uint32 seekMode)
Changes the current stream position.
status_t AddMessenger(const char *name, BMessenger messenger)
Convenience method to add a messenger to the label name.
virtual status_t GetSupportedSuites(BMessage *data)
Report the suites of messages this control understands.
float MaxColumnWidth(int32 column) const
Returns the maximum width for column.
virtual ssize_t Read(void *buffer, size_t size)
Receive a datagram from any sender.
virtual void AttachedToWindow()
Puts the BDragger under the control of HideAllDraggers() and ShowAllDraggers().
BPoint LeftTop() const
Returns the left top point of the BRect.
Definition: Rect.h:92
status_t ErrorCode() const noexcept
Get the underlying system error code.
virtual bool QuitRequested()
Hook method that gets called with the window is closed.
virtual void SetFont(const BFont *font, uint32 mask=B_FONT_ALL)
Undocumented public method.
bool IsValid() const
Check if the URL is valid.
filter_result
Return Codes and Protocol of the filter_hook.
Definition: MessageFilter.h:19
bool operator==(const BString &string) const
Lexicographically compare if this BString is equal to the given string.
Definition: String.h:527
A closed, many-sided figure which defines an area in a two-dimensional Cartesian coordinate system.
Definition: Polygon.h:16
Undocumented class.
Definition: OptionControl.h:17
void AddToRecentFolders(const entry_ref *folder, const char *signature=NULL) const
Adds folder to the list of recent folders.
virtual status_t Perform(perform_code code, void *data)
Performs an action give a perform_code and data. (Internal Method)
color_space pixel_format
Definition: DirectWindow.h:41
Undocumented enum value.
Definition: Deskbar.h:23
float right
The value of the rectangle's right edge.
Definition: Rect.h:19
The add-ons directory.
Definition: FindDirectory.h:136
uint8 GetUInt8(const char *name, uint8 defaultValue) const
Return the uint8 value from message with name, or defaultValue if not found.
virtual void Hide()
Removes the window from the screen, removes it from Deskbar's window list, and passes active status t...
virtual BSize MaxSize()
Returns the maximum size of the list view.
void(* free_partition_content_cookie)(partition_data *partition)
Undocumented. TODO.
Definition: fs_interface.h:269
int32 CountHandlers() const
Get the number of handlers associated with this looper.
status_t FindUInt64(const char *name, uint64 *value) const
Find an integer at the label name.
const BString & Password() const
Returns the password.
virtual void AboutRequested()
Hook method that gets invoked when the BApplication receives a B_ABOUT_REQUESTED message.
uint32 flags
Definition: Font.h:165
BArchivable * instantiate_object(BMessage *from, image_id *id)
Instantiate an archived object with the object being defined in a different application or library.
bool IsValid() const
Determines whether the endpoint still exists.
Represents a char type used for integer storage.
Definition: TypeConstants.h:30
bool IEndsWith(const BString &string) const
Returns whether or not the BString ends with string case-insensitively.
virtual status_t Perform(perform_code code, void *data)
Internal method.
const char * HeaderField(const char *key, int32 index=0) const
Returns the header key.
void AddHandler(BHandler *handler)
Associate a handler to this looper.
BListItem * ItemAt(int32 index) const
Returns the list item at the specified index.
const char * GetString(const char *name, const char *defaultValue=NULL) const
Return the string from message with name, or defaultValue if not found.
void TruncateString(BString *inOut, uint32 mode, float width) const
Truncates inOut to be no longer than width using the supplied truncation mode.
BColorControl(BPoint start, color_control_layout layout, float cellSize, const char *name, BMessage *message=NULL, bool useOffscreen=false)
Constructs a new color control object.
There are bytes written to the target of the body.
Definition: NetServicesDefs.h:90
__haiku_int32 int32
4-bytes signed integer.
Definition: SupportDefs.h:24
virtual status_t Perform(perform_code code, void *data)
Perform some action. (Internal Method)
status_t GetAppInfo(const char *signature, app_info *info) const
Returns the app_info of a currently running application with the supplied signature.
virtual status_t SetIcon(const BBitmap *icon, uint32 flags=0)
This convenience method is used to set the bitmaps for the standard states from a single bitmap.
void SetPurpose(BKeyPurpose purpose)
Set the purpose of the key.
BGroupLayout * GroupLayout() const
Get a pointer to the underlying BGroupLayout.
static uint32 FromUTF8(const char **in)
Transform a UTF-8 string to an UTF-32 character.
static bool IsWhitespace(uint32 c)
Determine if c is whitespace.
color_which ViewUIColor(float *tint=NULL) const
Return the current view color constant being used.
virtual void SetBarColor(rgb_color color)
Undocumented public method.
tab_position
Definition: TabView.h:15
window_feel Feel() const
Returns the current window feel flag.
virtual void SetModificationMessage(BMessage *message)
Undocumented public method.
virtual status_t GetInputFormats(translator_id translatorID, const translation_format **_formats, int32 *_numFormats)
Looks up the input formats of the translator with a given ID.
ThisBuilder & SetExplicitAlignment(BAlignment alignment)
Set the explicit alignment of the underlying layout.
Definition: LayoutBuilder.h:767
virtual void DoLayout()
Implemented by derived classes to position and resize the items in this layout.
BView * FindView(const char *viewName) const
Returns the attached view with the specified viewName.
virtual BSize MinSize()
Returns the tab view's minimum size in a BLayout.
int32 CountLines() const
Returns the number of lines that the BTextView object contains.
status_t SetMasterUnlockKey(const BKey &key)
Not implemented.
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archive the list item to a message.
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archives the object into the data message.
A class that simplifies the archiving of complicated BArchivable hierarchies.
Definition: Archivable.h:52
text_run runs[1]
Definition: TextView.h:29
void SetOrientation(orientation orientation)
Undocumented public method.
bool operator!=(const pattern &a, const pattern &b)
Comparison operator for two patterns.
Definition: GraphicsDefs.h:29
void ConvertFromScreen(BPoint *point) const
Convert point from the screen's coordinate system to the window's coordinate system in place.
bool operator!=(const unicode_block &block) const
Determines if the block object are not equal.
Definition: Font.h:402
border_style
Definition: InterfaceDefs.h:181
virtual void KeyDown(const char *bytes, int32 numBytes)
Hook method called when a keyboard key is pressed.
status_t(* read_symlink)(fs_volume *volume, fs_vnode *link, char *buffer, size_t *_bufferSize)
Read the value of a symbolic link.
Definition: fs_interface.h:155
status_t(* get_super_vnode)(fs_volume *volume, fs_vnode *vnode, fs_volume *superVolume, fs_vnode *superVnode)
TODO: Document!
Definition: fs_interface.h:244
static BMidiProducer * NextProducer(int32 *id)
Returns the next producer from the roster.
The user lib directory.
Definition: FindDirectory.h:64
BApplication * be_app
Global system app object.
Undocumented...
Definition: Message.h:47
vertical_alignment vertical
Undocumented public variable.
Definition: Alignment.h:13
bool HasRect(const char *name, int32 n=0) const
Deprecated.
void MarkAsInvalid(bool invalid)
Sets or removes the invalid flag.
Set when UID changes.
Definition: NodeMonitor.h:59
status_t(* create_dir)(fs_volume *volume, fs_vnode *parent, const char *name, int perms)
Create a new directory.
Definition: fs_interface.h:189
uint32 InvocationCommand() const
Returns the what parameter of the current invocation method.
Property info struct containing lists of commands and specifiers.
Definition: PropertyInfo.h:27
bool IsPersistent() const
Not used.
void Set(float width, float height)
Sets the width and height values of a BSize object.
Definition: Size.h:87
void SetMessageID(const BString &id)
Sets notification's message identifier.
void Unset()
Returns the object to an uninitialized state.
virtual status_t GetSupportedSuites(BMessage *message)
Reports the suites of messages and specifiers that derived classes understand.
Definition: FilePanel.h:32
Definition: TimedEventQueue.h:55
BHttpStatusClass
Category of the HTTP response status code.
Definition: HttpResult.h:30
uint8 red
Red value for the color.
Definition: GraphicsDefs.h:43
volatile int vint
Volatile signed int.
Definition: SupportDefs.h:40
status_t GetSupportingApps(BMessage *signatures) const
Fetches a BMessage containing a list of MIME signatures of applications that are able to handle files...
BDateTime parse_http_time(const BString &string)
Parse a string that contains a timestamp and return a BDateTime object.
Undocumented enum value.
Definition: Deskbar.h:21
virtual void GetItemDimensions(BLayoutItem *item, Dimensions *dimensions)
Tell the base class what column and row a BLayoutItem is in as well as how many columns and rows it c...
virtual void MakeEmpty()
Empties the outline list view of all items.
window_alignment
Definition: Window.h:55
int32 ReferenceCount()
Gets the current reference count.
virtual status_t ItemUnarchived(const BMessage *from, BLayoutItem *item, int32 index)
Hook for derived classes to retrieve data specific to item from the from BMessage....
virtual void DirectConnected(direct_buffer_info *info)
Hook method called when your application learns about the state of the graphics display and changes o...
int32 BitsLength() const
Gets the length of the bitmap data.
status_t SetTo(BNode *node)
Initializes the BNodeInfo to the supplied node.
virtual bool IsVisible()=0
Return the current local visibility of this item. If an item is not visible, it will not be given spa...
size_t get_secondary_architectures(const char **architectures, size_t count)
Returns the names of the system's secondary architectures.
virtual void AncestorVisibilityChanged(bool shown)
Hook method inherited from BLayoutItem, classes derived from BLayout must include the BLayout version...
status_t notify_query_entry_removed(port_id port, int32 token, dev_t device, ino_t directory, const char *name, ino_t node)
Notifies listeners that an entry has left the result set of a live query.
const uint32 B_FRAME_EVENTS
View responds to frame move and resize events.
Definition: View.h:89
virtual int32 GetNextDirents(struct dirent *direntBuffer, size_t bufferSize, int32 maxEntries=INT_MAX)=0
Returns the BEntryList's next entries as dirent structures.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Undocumented public method.
BTimeZone(const char *zoneID=NULL, const BLanguage *language=NULL)
Construct a timezone from its zoneID and language.
bool IsTranslator(entry_ref *ref)
Determines whether the specified add-on contains at least one translator.
void SetOrientation(orientation orientation)
Undocumented public method.
int32 CountRows() const
Returns the number of active rows in this layout.
Provides the BInvoker class.
bool operator==(const char *a, const BString &b)
Lexicographically compare if a is equal to a given BString b.
Definition: String.h:597
const char * B_URL_MAILTO
application/x-vnd.Be.URL.mailto
virtual bool GetOptionAt(int32 index, const char **_name, int32 *_value)=0
Undocumented public method.
void SetParent(ParentBuilder *parent)
Internal method for use by BLayoutBuilder::Base subclasses, this is essential to the builder stack se...
Definition: LayoutBuilder.h:428
status_t GetEntry(BEntry *entry) const
Gets a BEntry object referring to the directory. If the initialization of entry fails,...
alignment Horizontal() const
Undocumented public method.
Definition: Alignment.h:65
Font face mask parameter.
Definition: View.h:67
const uchar B_SYS_EX_END
Identifier of system exclusive end message.
Definition: Midi2Defs.h:27
status_t SetUInt8(const char *name, uint8 value)
Set the data with at the label name to value.
usb_interface_info * active
Pointer to active interface.
Definition: USB3.h:67
const char * CharAt(int32 charIndex, int32 *bytes=NULL) const
UTF-8 aware version of ByteAt(int32).
virtual void FrameResized(float newWidth, float newHeight)
Hook method that gets called when the window is resized.
void SetPreferredHandler(BHandler *handler)
Set a preferred handler.
virtual BSize MinSize()
Returns the minimum desirable size for this item.
volatile uint32 vuint32
4-bytes volatile unsigned integer.
Definition: SupportDefs.h:35
status_t SetInt16(const char *name, int16 value)
Set the data with at the label name to value.
unicode_block operator&(const unicode_block &block) const
Creates and returns a new unicode_block object that is the intersection of block and the unicode_bloc...
Definition: Font.h:363
static BArchivable * Instantiate(BMessage *data)
Instantiates a BBitmap from an archive.
buffer_layout layout
Definition: DirectWindow.h:42
void SetMinRowHeight(int32 row, float height)
Sets the minimum height for row to width.
__haiku_uint8 uint8
1-byte unsigned integer.
Definition: SupportDefs.h:21
status_t LockTargetWithTimeout(bigtime_t timeout) const
Locks the BLooper targeted by the messenger with a timeout (if the target is local).
int32 CountChildren() const
Gets the number of BViews currently belonging to the bitmap.
media_header * Header()
Gets a pointer to the header of the buffer.
virtual void SetExplicitMaxSize(BSize size)=0
Set this item's explicit max size, to be used in MaxSize().
int64 atomic_add64(int64 *value, int64 addValue)
Atomically add the value of addValue to value.
void SwapHeader(const TranslatorBitmap *source, TranslatorBitmap *destination)
Swaps the byte order of source, no matter the byte order, and copies the result to destination.
virtual status_t Archive(BMessage *into, bool deep=true) const
Archive the object into a BMessage.
bool IsTargetLocal() const
Returns whether or not the invoker and its target belong to the same team.
Provides the BMailComponent and BTextMailComponent classes.
virtual void DoLayout()=0
Implemented by derived classes to position and resize the items in this layout.
BOutlineListView(BRect frame, const char *name, list_view_type type=B_SINGLE_SELECTION_LIST, uint32 resizingMode=B_FOLLOW_LEFT_TOP, uint32 flags=B_WILL_DRAW|B_FRAME_EVENTS|B_NAVIGABLE)
Creates a new BOutlineListView object.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
virtual status_t Flatten(void *buffer, ssize_t size) const
Implements BFlattenable::Flatten(). Converts the path of the object to an entry_ref and writes it int...
virtual void FrameResized(float width, float height)
Hook method that gets called when the BBox object is resized.
virtual void AllAttached()
Undocumented public method.
Deprecated helper class that helps building a BGridLayout.
Definition: GridLayoutBuilder.h:10
The user bin directory.
Definition: FindDirectory.h:91
virtual ~BGroupView()
Destructor.
bool operator!=(const BFont &font) const
Inequality comparison overload method.
virtual void MouseMoved(BPoint where, uint32 code, const BMessage *dragMessage)
Hook method called when the mouse is moved.
status_t SetTo(const entry_ref *ref)
Reinitializes the object to the filesystem entry specified by the passed in entry_ref struct.
int32 atomic_get_and_set(int32 *value, int32 newValue)
Atomically set the variable value to newvalue and return the old value.
thread_id LockingThread() const
Return the thread_id of the thread that's currently holding the lock.
bool operator==(const BMimeType &type) const
Returns whether this and the supplied MIME type are equal.
const float B_DEFAULT_MITER_LIMIT
Definition: InterfaceDefs.h:267
static uint32 ToLower(uint32 c)
Transforms c to lowercase.
const rgb_color B_TRANSPARENT_COLOR
A transparent color.
virtual BSize MinSize()
Return the minimum size of the view.
virtual status_t GetNextRef(entry_ref *ref)=0
Returns the BEntryList's next entry as an entry_ref.
void MapTo(BRect source, BRect destination)
Modifies each BPoint in the BPolygon so that the shape fits inside the destination rectangle.
static BResources * AppResources()
Returns a BResources object for the application.
T * EachElement(EachFunction, void *)
Perform an action on each item in the list.
Definition: ObjectList.h:638
status_t find_paths(path_base_directory baseDirectory, const char *subPath, char ***_paths, size_t *_pathCount)
Retrieves a list of paths in the file system layout.
virtual status_t Perform(perform_code d, void *arg)
Perform some action (Internal method defined for binary compatibility purposes).
bool IsAbsolute()
Returns whether or not the object refers to an absolute path.
~BLocale()
Destructor method.
bool operator!=(const entry_ref &ref) const
Compares the entry_ref object with the passed in entry_ref, returning true if they are NOT equal.
BSeparatorItem()
Creates a new BSeparatorItem object.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
~BHttpMethod()
Destructor.
#define NULL
Defines the constant NULL if it hasn't already been defined.
Definition: SupportDefs.h:226
virtual void Quit()
Tells the thread to finish processing the message queue, disallowing any new messages.
ThisBuilder & SetInsets(float left, float top, float right, float bottom)
Set the insets for this layout.
Definition: LayoutBuilder.h:712
virtual void MessageReceived(BMessage *message)
Handle message received by the associated looper.
void SetLayoutData(void *data)
Attach arbitrary data to this BLayoutItem.
status_t BezierTo(BPoint controlPoints[3])
Adds a "draw Bézier curve" operation to the BShape.
~BHttpSession() noexcept
Destructor.
~BMessenger()
Frees all resources associated with this object.
status_t GetLanguage(const char *languageCode, BLanguage **_language) const
Instantiate a language from its code.
BString & Replace(char replaceThis, char withThis, int32 maxReplaceCount, int32 fromOffset=0)
Replace a number of occurrences of a character with another character.
BClipboard(const char *name, bool transient=false)
Create a BClipboard object with the given name.
int32 FindLast(const BString &string) const
Find the last occurrence of the given string.
virtual void MouseUp(BPoint where)
Hook method that is called when a mouse button is released while the cursor is contained in the frame...
Represent a HTTP request.
Definition: HttpRequest.h:82
virtual void SetFrame(BRect frame)
Set the bounding frame of this item.
The user packaged installation location directory.
Definition: FindDirectory.h:60
BString & ReplaceLast(char replaceThis, char withThis)
Replace the last occurrence of a character with another character.
status_t Revert()
Reverts the clipboard data.
const char * Identifier() const
Get the identifier of the key.
static status_t GetWildcardApps(BMessage *wildcardApps)
Fetches a BMessage containing a list of MIME signatures of applications that are able to handle files...
virtual int32 InternalCountRows()=0
Get the number of rows in the BTwoDimensionalLayout.
status_t create_directory(const char *path, mode_t mode)
Creates all missing directories along a given path.
void tls_set(int32 index, void *value)
Set the data of this thread at the provided index.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
virtual void FrameMoved(BPoint newPosition)
Hook method called when the check box is moved.
BDataIO()
This constructor does nothing.
uint32 Flags() const
Return the view flags set in the constructor or by SetFlags().
bool HasPreferredApplication() const
Undocumented public method.
virtual bool IsFixedSize() const
Always returns false.
virtual void DispatchMessage(BMessage *message, BHandler *handler)
Window's central message-processing method.
bool HasItem(const T *) const
Return whether or not item is in the list.
Definition: ObjectList.h:601
const uchar B_OMNI_MODE_ON
Identifier of omni mode on message.
Definition: Midi2Defs.h:70
BSize ExplicitMaxSize() const
Returns the explicit maximum size.
bool IsAlwaysOnTop() const
Undocumented public method.
virtual void GetPreferredSize(float *_width, float *_height)
Fill out the preferred width and height of the view into the _width and _height parameters.
status_t(* open_query)(fs_volume *volume, const char *query, uint32 flags, port_id port, uint32 token, void **_cookie)
Open a query as a 'directory'.
Definition: fs_interface.h:102
int32 CountLoopers() const
Returns the number of BLoopers created by the application.
virtual void Draw(BRect updateRect)
Hook method called to draw the contents of the text view.
const uchar B_MODULATION
Identifier of modulation message.
Definition: Midi2Defs.h:36
status_t GetDecoratorSettings(BMessage *settings) const
Fill out the window's decorator settings into settings.
virtual status_t SetIcon(const BBitmap *icon, icon_size which=B_LARGE_ICON)
Sets the icon of the node. If icon is NULL, the attribute is removed instead.
virtual status_t AllUnarchived(const BMessage *from)
Hook method overridden from BArchivable.
virtual void SetFont(const BFont *font, uint32 mask=B_FONT_ALL)
Sets the font of the list view to font with the font parameters set by mask.
float left
The value of the rectangle's left edge.
Definition: Rect.h:17
virtual status_t GetSize(off_t *size) const
Get the size of the object or data.
Tertiary mouse button mask parameter.
Definition: View.h:25
virtual void AllAttached()
Hook method called once all views are attached to the view.
The BeOS system directory.
Definition: FindDirectory.h:106
status_t GetBootVolume(BVolume *volume)
Fills out the passed in BVolume object with the boot volume.
status_t SetDouble(const char *name, double value)
Set the data with at the label name to value.
virtual void TargetedByScrollView(BScrollView *scrollView)
Hook method called when the view becomes the target of scrollView.
status_t unremove_vnode(fs_volume *volume, ino_t vnodeID)
Clears the "removed" mark of the specified vnode.
status_t(* delete_sub_vnode)(fs_volume *volume, fs_vnode *vnode)
TODO: Document!
Definition: fs_interface.h:113
bigtime_t CreationTime() const
Get the creation time of the key.
virtual status_t Archive(BMessage *data, bool deep=true) const
Archives the BBitmap object.
The system non-packaged data directory.
Definition: FindDirectory.h:49
void MoveBy(float dx, float dy)
Move the window by dx pixels horizontally and dy pixels vertically.
BTextMailComponent(const char *text=NULL, uint32 defaultCharSet=B_MAIL_NULL_CONVERSION)
Initializes the component and sets its content to text.
BGroupLayout(orientation orientation, float spacing=B_USE_DEFAULT_SPACING)
Creates a new BGroupLayout.
status_t SetMode(display_mode *mode, bool makeDefault=false)
Sets the screen in the current workspace to the given mode.
BMailComponent(uint32 defaultCharSet=B_MAIL_NULL_CONVERSION)
Initializes a new BMailComponent with the specified character set.
font_file_format FileFormat() const
Gets whether the font is a TrueTypeâ„¢ or PostScriptâ„¢ Type1 font.
Error that indicates there was an issue executing the network request.
Definition: NetServicesDefs.h:55
virtual void MouseDown(BPoint where)
Undocumented public method.
status_t GetPreferredLanguage(BLanguage &) const
Get the most likely language to use in that country.
virtual BSize PreferredSize()
Returns the tab view's preferred size in a BLayout.
void Activate(bool=true)
Activates or deactivates the window based on active.
bool validate_instantiation(BMessage *from, const char *className)
Internal function that checks if the className is the same as the one stored in the from message.
status_t HandleMessage(int32 message, const void *data, size_t size)
Private messages are not supported, returns B_ERROR.
virtual bool DoMiscellaneous(MiscCode code, MiscData *data)
If code is B_SWAP_OP, swap the items in data, otherwise pass the arguments to BListView::DoMiscellane...
status_t SendReply(uint32 command, BHandler *replyTo=NULL)
Asynchronously send a reply to this message.
const uchar B_GENERAL_CTRL_1
Identifier of general control 1 message.
Definition: Midi2Defs.h:45
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archives the the BStringItem object into the archive message.
There was an error communicating with the server because of an SSL certificate issue.
Definition: HttpSession.h:57
status_t(* rewind_query)(fs_volume *volume, void *cookie)
Reset the query cookie to the first entry of the results.
Definition: fs_interface.h:108
static BArchivable * Instantiate(BMessage *data)
Creates a new BSeparatorItem object from an data message.
static BMidiConsumer * NextConsumer(int32 *id)
Returns the next consumer from the roster.
status_t GetModificationTime(time_t *mtime) const
Fills out mtime with the last modification time of the node.
status_t GetKey(BKeyType type, const char *identifier, BKey &key)
Query the Master keyring for for specific key.
uint16 GetUInt16(const char *name, uint16 defaultValue) const
Return the uint16 value from message with name, or defaultValue if not found.
virtual status_t GetStat(struct stat *st) const
Fills in the given stat structure with the stat() information for this object.
virtual ~BAppFileInfo()
Frees all resources associated with this object.
ThisBuilder & Add(BView *view)
Add a view to the underlying BSplitView.
Definition: LayoutBuilder.h:1212
The Http request was redirected, and this redirect was handled by the kit.
Definition: HttpSession.h:57
BView * View() const
Get a pointer to the BView this builder's layout is attached to.
Definition: LayoutBuilder.h:1479
virtual void NoteOff(uchar channel, uchar note, uchar velocity, bigtime_t time)
Invoked when a Note Off event is received.
virtual BRect TabFrame(int32 index) const
Returns the frame rectangle of the tab at the specified index.
Undocumented enum value.
Definition: Deskbar.h:18
BMidiOp
Defines the status codes for MIDI Server notification messages.
Definition: MidiRoster.h:8
Playback audio from a sound file on disk.
Definition: FileGameSound.h:22
bool IsShowing() const
Determines whether or not the file panel is shown.
status_t GetBitmap(BBitmap **_bitmap, bool drawCursor=true, BRect *frame=NULL)
Allocates a BBitmap and copies the contents of the screen into it.
alignment Alignment() const
Returns the current text alignment.
BMessageFilter & operator=(const BMessageFilter &from)
Assignment operator. Copies criteria from another filter.
status_t get_named_icon(const char *name, BBitmap *icon, icon_size which)
Get the icon by name, C++ only.
virtual void ResizeToPreferred()
Undocumented public method.
virtual status_t Translate(BPositionIO *source, const translator_info *info, BMessage *extension, uint32 outType, BPositionIO *destination)=0
Pure virtual. Reads the provided data and tries to translate it to a given format.
static BArchivable * Instantiate(BMessage *archive)
Instantiate the cursor from a message. Not implemented.
status_t SetModificationTime(time_t mtime)
Sets the node's last modification time to mtime.
virtual BSize MaxSize()
Returns the text control's maximum size.
virtual status_t Flatten(void *buffer, ssize_t size) const
Undocumented public method.
BPoint DropPoint(BPoint *offset=NULL) const
Get the coordinates of the drop point of the message.
BMemoryIO(void *data, size_t length)
Create a read/write object.
uint8 dev_class
The supported device classes.
Definition: USB3.h:40
Class for handling locale-aware collation (sorting) of strings.
Definition: Collator.h:36
void Include(BRect rect)
Modifies the region so that it includes the given rect.
BGroupLayoutBuilder(orientation orientation=B_HORIZONTAL, float spacing=B_USE_DEFAULT_SPACING)
Create a new layout builder with a new underlying BGroupLayout.
virtual void WindowActivated(bool state)
Hook method that gets called when the window becomes activated or deactivated.
volatile unsigned char vuchar
Volatile unsigned char.
Definition: SupportDefs.h:47
The message passes the filter criteria and should be dispatched to a BHandler.
Definition: MessageFilter.h:21
Represents an rgb_color structure.
Definition: TypeConstants.h:51
virtual void Draw()
Hook method used to draw the menu items.
BTranslator * Release()
Decrements the reference count by 1. If the reference count is decreased to zero, the object is delet...
BHttpStatusClass StatusClass() const noexcept
Map the code value to a BHttpStatusClass value.
virtual void GetColumnRowConstraints(orientation orientation, int32 index, ColumnRowConstraints *constraints)
Fill in the ColumnRowConstraints for a certain column or row in the BTwoDimensionalLayout.
status_t AddOnClickArg(const BString &arg)
Add to a list of arguments that are passed to an application when the user clicks on the notification...
status_t AddFloat(const char *name, float value)
Convenience method to add a float to the label name.
virtual type_code TypeCode() const
Implements BFlattenable::TypeCode(). Always returns B_REF_TYPE.
void Expand(BListItem *item)
Expands the section referenced by item.
const uchar B_MIDI_BALANCE
Identifier of MIDI balance message.
Definition: Midi2Defs.h:42
virtual void Relayout(bool immediate=false)
Request this BLayout to reposition and resize its items as required.
status_t SendBehind(const BWindow *window)
Moves the BWindow object behind window.
int ScanWithFormat(const char *format,...)
Parse a formatted string and save elements to variables ala scanf().
BSplitView * View() const
Get a pointer to the BView this builder's layout is attached to.
Definition: LayoutBuilder.h:1186
Definition: GraphicsDefs.h:301
virtual void DrawBox(BRect selectedTabRect)
Draws the box that encloses the container view.
Tuning information of fonts used to make it look better when displayed on-screen.
Definition: Font.h:161
virtual void SetText(const char *text)
Sets the text string displayed by the item. The memory used by the old string is freed.
static BLooper * LooperForThread(thread_id thread)
Static method to retrieve a BLooper for a specified thread.
void Zoom()
Resize the window to the minimum of the screen size, the maximum values set by SetSizeLimits(),...
virtual void FrameResized(float newWidth, float newHeight)
Hook method that gets called when the checkbox is resized.
The request did not complete because the response did not conform to the protocol.
Definition: NetServicesDefs.h:58
std::optional< BString > text
A string containing the body of the HTTP request.
Definition: HttpResult.h:26
const uint32 B_SUPPORTS_LAYOUT
The view supports the layout APIs, i.e. it doesn't require an frame rectangle to be specified.
Definition: View.h:95
virtual status_t Rewind()
Rewinds the directory iterator.
The descriptor for data packets of isochronous transfers.
void Unset()
Returns the object to an uninitialized state.
bool IsSelected() const
Return whether or not the list item is currently selected.
virtual void DetachedFromWindow()
Hook method called when the control is detached from a window.
uint32 types[10]
Type chunks?
Definition: PropertyInfo.h:33
const uchar B_SYS_EX_START
Identifier of system exclusive start message.
Definition: Midi2Defs.h:21
virtual status_t AllUnarchived(const BMessage *from)
Hook method called when all views have been unarchived.
BView(const char *name, uint32 flags, BLayout *layout=NULL)
Layout constructor.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
void Deselect(int32 index)
Deselect the item at index.
status_t GetLimitsFor(int32 channel, int32 *_minimum, int32 *_maximum) const
Undocumented public method.
virtual bool HasHeightForWidth()
Returns whether or not this BLayoutItem's height constraints are dependent on its width.
bool RemoveSelf()
Removes the view and all child views from the view hierarchy.
virtual void FrameResized(float newWidth, float newHeight)
Undocumented public method.
bool IsPrinting() const
Returns whether or not the view is drawing to a printer.
virtual void AttachedToWindow()
Hook method called when the BStringView is attached to a window.
virtual void SetExplicitMaxSize(BSize size)
Set this item's explicit max size, to be used in MaxSize().
The system non-packaged translator directory.
Definition: FindDirectory.h:46
bool Replace(int32 index, const BString &string)
Undocumented public method.
virtual BSize PreferredSize()
Returns the preferred size for this item.
BString format_http_time(BDateTime timestamp, BHttpTimeFormat outputFormat=BHttpTimeFormat::RFC1123)
Format the timestamp into a string according to the outputFormat.
~BLocaleRoster()
Destructor. Does nothing.
status_t Fetch()
Start fetching entries satisfying the predicate.
bool HasDefaultColors() const
Tests if the view has any colors set.
status_t ReplaceUInt64(const char *name, uint64 value)
Replace an integer at the label name.
Internal or experimental API.
Definition: book.dox:785
void SetDiskMode(char *filename, long offset)
Unimplemented.
Provides the BSplitView class.
Definition: InterfaceDefs.h:184
status_t SetDPMS(uint32 state)
Sets the VESA Display Power Management Signaling (DPMS) state for the display.
virtual void AllDetached()
Hook method called once all views are detached from the view.
Provides the BExclusiveBorrow smart pointer.
virtual status_t Perform(perform_code code, void *data)
Undocumented public method.
join_mode
Definition: InterfaceDefs.h:253
Definition: GraphicsDefs.h:317
entry_ref & operator=(const entry_ref &ref)
Makes the entry_ref object a copy of the passed in entry_ref.
cap_mode LineCapMode() const
Returns the current line cap mode.
size_t get_architectures(const char **architectures, size_t count)
Returns the names of the system's primary and secondary architectures.
status_t(* free_attr_cookie)(fs_volume *volume, fs_vnode *vnode, void *cookie)
Free the cookie of an attribute.
Definition: fs_interface.h:224
status_t ReplaceMessage(const char *name, const BMessage *message)
Replace a message at the label name.
virtual off_t Seek(off_t position, uint32 seekMode)
Move the cursor to a given position.
virtual status_t Flatten(void *buffer, ssize_t size) const =0
Pure virtual that should flatten the object into the supplied buffer.
Generic key type.
Definition: Key.h:27
void SetSpacing(float spacing)
Set the amount of spacing (in pixels) between each item.
const char * HeaderAt(int32 index) const
Returns the key of the header at index.
bool IsSourceWaiting() const
Check if the sender expects a reply.
The system directory for variable data (Unix "var" directory).
Definition: FindDirectory.h:41
status_t AddPoint(const char *name, BPoint point)
Convenience method to add a BPoint to the label name.
void * Items() const
Return the internal list of objects.
status_t IDNAToUnicode()
Undocumented public method.
status_t SetBroadcast(bool broadcast)
enables or disable broadcast mode
BStringList & operator=(const BStringList &other)
Undocumented public method.
status_t SetIcon(const BBitmap *icon)
Set the icon of the notification.
status_t get_font_style(font_family family, int32 index, font_style *name, uint32 *flags=NULL)
Retrieves the family name at the specified index.
const entry_ref * OnClickRefAt(int32 index) const
Returns the ref that is stored at index.
BError & operator=(const BError &error)
Copy assignment operator.
status_t AddUInt64(const char *name, uint64 value)
Convenience method to add an uint64 to the label name.
media_audio_header * AudioHeader()
Gets a pointer to the header of the audio buffer.
void EnableOutput(const media_source &what, bool enabled, int32 *_deprecated_)
Enable or disable an output.
virtual void DrawLabel(BView *owner, BRect frame)
Draws the tab's title.
virtual status_t Archive(BMessage *into, bool deep=true) const
Archive the object into a BMessage.
virtual ssize_t ReadAt(off_t position, void *buffer, size_t size)
Read data at a certain position.
BToolTip * ToolTip() const
Return the tool tip set to the view or NULL if not set.
const uint32 B_PULSE_NEEDED
Indicates that the view accepts Pulse() messages.
Definition: View.h:87
font_metric_mode
Definition: Font.h:94
component_type
Definition: MailComponent.h:27
Value for UrlEventData::DebugType indicating that the message is an info messsage.
Definition: NetServicesDefs.h:106
virtual void PrepareItems(orientation orientation)
Prepare the BLayoutItem in this BTwoDimensionalLayout subclass for layout within a certain orientatio...
void * FindResource(type_code type, int32 id, size_t *lengthFound)
Finds a resource by type and id and returns a pointer to a copy of its data. (deprecated,...
Definition: GraphicsDefs.h:300
Represents an unsigned long long type.
Definition: TypeConstants.h:60
BGridLayoutBuilder & SetColumnWeight(int32 column, float weight)
Set the weight for column to weight.
float Rotation() const
Gets the font rotation.
T * LastItem() const
Return a pointer to the last item in the list.
Definition: ObjectList.h:593
BTranslator()
Creates a new BTranslator and sets its reference count to 1.
entry_ref ref
A file ref that was executed to run the application.
Definition: Roster.h:26
const uchar B_GENERAL_CTRL_2
Identifier of general control 2 message.
Definition: Midi2Defs.h:46
BView * View() const
Returns a pointer to the view to be displayed for this tab.
status_t Install()
Adds the MIME type to the MIME database.
BCountry(const char *countryCode=NULL)
Initialize a BCountry from a country code.
status_t ReplaceInt8(const char *name, int8 value)
Replace an integer at the label name.
virtual void MouseDown(BPoint where)
Hook method that is called when a mouse button is pushed down while the cursor is contained in the vi...
virtual void KeyDown(const char *bytes, int32 numBytes)
Undocumented public method.
virtual bigtime_t Timeout() const
gets the socket timeout
bool DoesUndo() const
Returns whether or not the undo mechanism is enabled.
Mouse transit exited view.
Definition: View.h:32
void SetDesktopColor(rgb_color color, bool stick=true)
Set the background color of the current workspace.
virtual void MouseMoved(BPoint where, uint32 code, const BMessage *dragMessage)
Hook method called when the mouse is moved.
status_t SetIcon(const BBitmap *icon, icon_size which, bool updateMimeDB)
Sets the icon of the associated file from a BBitmap.
Provides an interface for iterating through available volumes and watching for mounting/unmounting.
Definition: VolumeRoster.h:18
virtual BSize BaseMinSize()
Method to be implemented in derived classes return the minimum size constraint for this BAbstractLayo...
uint8 Spacing() const
Gets the spacing constant.
void SetFlags(uint32 flags)
Sets font flags controlling antialiasing.
status_t(* open_attr_dir)(fs_volume *volume, fs_vnode *vnode, void **_cookie)
Open a 'directory' of attributes for a vnode.
Definition: fs_interface.h:204
BSize AddInsets(BSize size)
Add the size to all the insets for this layout.
void SetExplicitSize(BSize size)
Set this view's size.
virtual status_t Perform(perform_code code, void *arg)
Internal method.
BMessage * FindMessage(int32 index) const
Retrieve the message at the index of this queue.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
BRect RectAt(int32 index)
Returns the rectangle contained in the region at the given index.
void DoForEach(bool(*func)(void *item))
Perform an action on every item in the list.
The system lib directory.
Definition: FindDirectory.h:22
const char * Group() const
Returns the group of the notification.
Undocumented...
Definition: Message.h:43
status_t InitCheck() const
Returns the initialization status.
status_t SetIconForType(const char *type, const BBitmap *icon, icon_size which, bool updateMimeDB)
Sets the icon the application provides for a given MIME type from a BBitmap.
virtual void Reset(const char *label=NULL, const char *trailingLabel=NULL)
Undocumented public method.
There is progress receiving the body of the request.
Definition: NetServicesDefs.h:89
uint8 dev_subclass
The supported device subclasses.
Definition: USB3.h:41
Definition: GraphicsDefs.h:307
BView * FindView(const char *viewName) const
Accesses a bitmap's child BView with the name viewName.
virtual ~BFlattenable()
Destructor. Does nothing.
uint32 SelectionCommand() const
Returns the what parameter of the message that is send when an item is selected.
color_space ColorSpace() const
Gets the bitmap's color space.
Interface for drivers to interact with Haiku's USB stack.
Definition: USB3.h:85
The directory used for Unix-like installation location wide settings (Unix "etc" directory).
Definition: FindDirectory.h:145
Provides the BMimeType class.
void SetOwnsStream(bool ownsStream)
Set the owns_stream property of the object.
void Recycle()
Recycles the buffer so that it can be reused.
BList * Connections() const
Returns a list with all connected consumers.
status_t get_vnode_removed(fs_volume *volume, ino_t vnodeID, bool *_removed)
Returns whether the specified vnode is marked removed.
status_t WriteTo(BFile *file)
Writes the resources to a new file.
virtual void Quit()
Hook method that is called after a B_QUIT_REQUESTED message.
BLayout * GetLayout() const
Get the layout of the window.
virtual BView * View()
Returns the same BView* as BLayout::Owner(), this method is inherited from BLayoutItem.
bool IsReadOnly() const
Returns whether or not the volume is read-only.
virtual bool ItemAdded(BLayoutItem *item, int32 atIndex)
Hook method called when item is added to this layout.
bool HasValue() const noexcept
Check if the object has a value or is empty.
Definition: ExclusiveBorrow.h:253
void ClipToInversePicture(BPicture *picture, BPoint where=B_ORIGIN, bool sync=true)
Intersects the current clipping region of the view with the pixels outside of picture.
virtual void Quit()
Deletes the window and all child views, destroys the window thread, removes the window's connection t...
virtual status_t Perform(perform_code d, void *arg)
Perform some action. (Internal Method)
virtual void FrameMoved(BPoint newPosition)
Hook method that gets called when the window is moved.
BUrl & SetUserName(const BString &user)
Set the username in the authority component.
undo_state
Definition: TextView.h:32
BString Last() const
Undocumented public method.
virtual status_t ItemUnarchived(const BMessage *from, BLayoutItem *item, int32 index)
Hook for derived classes to retrieve data specific to item from the from BMessage....
void HSortItems(CompareFunction)
Sort the items with the use of a supplied comparison function.
Definition: ObjectList.h:696
Ownership of unarchived objects will be transferred to the caller.
Definition: Archivable.h:88
void EnableLayoutInvalidation()
Re-enable layout invalidation after a call to DisableLayoutInvalidation().
const char * B_URL_GOPHER
application/x-vnd.Be.URL.gopher
The user settings directory.
Definition: FindDirectory.h:65
void SetTarget(BMessenger target)
Sets the target messenger.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
status_t PushUInt32(uint32 value)
Pushes a uint32 onto the predicate stack.
virtual void AllDetached()
Undocumented public method.
bool operator!=(const BList &other) const
Returns whether or not the BList and other are NOT equal.
status_t AddInt16(const char *name, int16 value)
Convenience method to add an int16 to the label name.
Definition: ColorControl.h:15
bigtime_t Lap()
Starts a new timer lap.
virtual status_t SetIcon(const BBitmap *bitmap, uint32 flags=0)
This convenience method is used to set the bitmaps for the standard states from a single bitmap.
BKey & operator=(const BKey &other)
Copy the data from the other key into this key.
virtual void SetNextHandler(BHandler *handler)
Set the next handler in the chain that the message is passed on to if this handler cannot process it.
Abstract class that defines the necessary functionality of a translator.
Definition: Translator.h:14
bool Contains(BPoint point) const
Returns whether or not if the region contains the given point.
BReferenceable()
Initialize the object with a reference count of 1.
bool Remove(const BString &string, bool ignoreCase=false)
Undocumented public method.
virtual BSize PreferredSize()
Returns the preferred size for this item.
void DeselectExcept(int32 exceptFrom, int32 exceptTo)
Deselect all items except the items with index in the range of exceptFrom to exceptTo.
status_t find_path_for_path(const char *path, path_base_directory baseDirectory, const char *subPath, char *pathBuffer, size_t bufferSize)
Retrieves a path in the file system layout based on a given path.
virtual void Quit()
Quits the window closing it.
bool IsValid()
Checks that the BScreen object represents a real display that is connected to the computer.
virtual void MouseDown(BPoint where)
Hook method that is called when a mouse button is pressed over the dragger.
void Unset()
Brings the BVolume object to an uninitialized state.
BRoster()
Creates a new BRoster and sets up the connection to the roster service.
status_t(* move)(int fd, partition_id partition, off_t offset, disk_job_id job)
Undocumented. TODO.
Definition: fs_interface.h:298
virtual BSize MaxSize()
Undocumented public method.
BString & operator=(const BString &string)
Re-initialize the object to a copy of the data of a BString.
The BeOS translators directory.
Definition: FindDirectory.h:117
status_t SetNumericSorting(bool enable)
Enable or disable numeric order sorting.
virtual void AttachedToWindow()
Hook method that is called when the object is attached to a window.
ThisBuilder & SetExplicitMaxSize(BSize size)
Set the explicit maximum size of the underlying layout.
Definition: LayoutBuilder.h:1133
The user non-packaged add-ons directory.
Definition: FindDirectory.h:76
uint16 vendor
The supported device vendor.
Definition: USB3.h:43
status_t GetCreationTime(time_t *ctime) const
Fills out ctime with the creation time of the node.
~BString()
Free all resources associated with the object.
bool IsFullScreen() const
Returns whether the window is in full-screen or windowed mode.
virtual status_t SetSize(off_t size)
Change the size of the buffer.
virtual void FrameMoved(BPoint newPosition)
Hook method called when the view is moved.
BString & operator+=(const BString &string)
Append the given string to the end of the BString.
Definition: String.h:504
off_t offset
The offset within the file.
Definition: fs_interface.h:38
Provides the BArchivable interface and declares the BArchiver and BUnarchiver classes.
Allows you to filter the items displayed in a file panel.
Definition: FilePanel.h:20
Error while handling a BExclusiveBorrow or BBorrow object.
Definition: ExclusiveBorrow.h:19
virtual const char * TranslatorInfo() const =0
Pure virtual. Returns a brief description of the translator.
float fHSpacing
the current horizontal spacing between columns for this layout.
Definition: TwoDimensionalLayout.h:102
ErrorType Type() const noexcept
Get the error type.
size_t SizeAvailable()
Gets the size of the buffer in bytes. Alias for Size().
static BArchivable * Instantiate(BMessage *from)
Instantiate the layout from the message from.
Specifies that if the resulting path's parent doesn't exist, the parent shall be created as a directo...
Definition: FindDirectory.h:126
BClipboard * be_clipboard
Global system clipboard object.
BRect Frame() const
Returns the frame rectangle that encloses the BPolygon object.
int32 Value() const
Gets the value of the control.
void Unlock()
Release the lock that's currently held.
float fRightInset
The current right inset for this layout.
Definition: TwoDimensionalLayout.h:99
virtual void KeyDown(const char *bytes, int32 numBytes)
Hook method called when a keyboard key is pressed.
const char * TotalBytes
An int64/off_t representing the total number of bytes that will be sent/received.
virtual status_t RenderToRFC822(BPositionIO *render_to)
Renders the component into RFC-822 format.
Provides the BTextControl class.
Network key purpose.
Definition: Key.h:20
Container for endpoint descriptors and their Haiku USB stack identifiers.
Definition: USB3.h:47
virtual void GetItemDimensions(BLayoutItem *item, Dimensions *dimensions)=0
Tell the base class what column and row a BLayoutItem is in as well as how many columns and rows it c...
Class that represents a generic key for or from the Haiku key store.
Definition: Key.h:33
The base coordinate space of the view.
Definition: View.h:76
void Delete()
Deletes the text within the current selection.
Provides an interface for creating file system queries and implements BEntryList methods for iteratin...
Definition: Query.h:43
const uint32 B_NAVIGABLE_JUMP
Indicates this is the default keyboard navigation view.
Definition: View.h:88
Mouse pointer events mask parameter.
Definition: View.h:38
The system applications directory.
Definition: FindDirectory.h:24
BString First() const
Undocumented public method.
The user preference applications directory.
Definition: FindDirectory.h:92
View base class.
Definition: View.h:152
virtual status_t Archive(BMessage *into, bool deep=true) const
Archive the object into a BMessage.
virtual void WindowActivated(bool state)
Undocumented public method.
float height
The vertical dimension.
Definition: Size.h:22
void TruncateString(BString *in_out, uint32 mode, float width) const
Truncate string with truncation mode mode so that it is no wider than width set in the view's font.
Provides BKey and BPasswordKey classes, as well as BKeyPurpose and BKeyType enums.
BNotification(notification_type type)
Construct an empty message, with the specified type.
const BMessage * Previous() const
Get the message to which this message is a reply.
virtual void FrameResized(float newWidth, float newHeight)
Hook method called when the view is resized.
virtual ~BSeparatorItem()
Destructor, does nothing.
void AdditionalBufferRequested(const media_source &source, media_buffer_id prev_buffer, bigtime_t prev_time, const media_seek_tag *prev_tag)
Offline modes are not supported for now, does nothing.
const uchar B_ALL_NOTES_OFF
Identifier of all notes off message.
Definition: Midi2Defs.h:68
double GetDouble(const char *name, double defaultValue) const
Return the double value from message with name, or defaultValue if not found.
int32 *const & MaxLimitList() const
Undocumented protected method.
Definition: ChannelControl.h:163
window_look
Definition: Window.h:36
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 form, const char *property)
Determine the proper handler for a scripting message.
bool MoveItem(int32 from, int32 to)
Move the item at fromIndex to the position of toIndex.
T * operator->() const
Dereferences the pointer.
Definition: ExclusiveBorrow.h:174
status_t notify_entry_created(dev_t device, ino_t directory, const char *name, ino_t node)
Notifies listeners that a file system entry has been created.
virtual void SetValue(int32 value)
Turn the check box on or off.
media_type Type()
Gets the media type of the data in the buffer.
usb_interface_info * alt
Array of available interfaces.
Definition: USB3.h:65
static BArchivable * Instantiate(BMessage *data)
Static method to instantiate a handler from an archived message.
virtual void SetBorder(border_style borderStyle)
Sets the border style of the tab view to borderStyle.
virtual status_t Perform(perform_code d, void *arg)
Perform some action (Internal method defined for binary compatibility purposes).
static bool SupportsWindowMode(screen_id id=B_MAIN_SCREEN_ID)
Returns whether or not the specified screen supports windowed mode.
status_t Rename(const char *oldEntry, const char *newEntry)
Rename a data label.
BAbstractSocket()
Default constructor.
float LineMiterLimit() const
Returns the miter limit used for B_MITER_JOIN join mode.
virtual ~BStatusBar()
Undocumented public method.
BString & IReplace(char replaceThis, char withThis, int32 maxReplaceCount, int32 fromOffset=0)
Replace a number of occurrences of a character with another character case-insensitively.
BSize Size() const
Returns the dimensions of the BRect.
Definition: Rect.h:242
float TabWidth() const
Returns the tab width of the BTextView.
virtual void SetTabHeight(float height)
Sets the height of the tabs to height.
virtual ~BNotification()
Frees all resources associated with the object.
virtual void ScrollTo(BPoint where)
Scroll the view to the specified point.
The user directory used for cache files.
Definition: FindDirectory.h:72
Mouse transit inside view.
Definition: View.h:31
status_t get_device_icon(const char *device, void *icon, int32 size)
Retrieves an icon associated with a given device.
BMessage * Message() const
Returns a pointer to the invoker's message object.
virtual off_t Seek(off_t position, uint32 seekMode)=0
Pure virtual to move the cursor to a certain position.
BView * FindView(const char *name) const
Returns the view in the view hierarchy with the specified name.
uint16 product
The supported device products.
Definition: USB3.h:44
virtual void DispatchMessage(BMessage *message, BHandler *handler)
Window's central message-processing method.
bool IsHorizontalSet() const
Undocumented public method.
Definition: Alignment.h:93
volatile long vlong
Volatile signed long.
Definition: SupportDefs.h:39
const char * CustomMessage() const noexcept
Get the custom error message.
There is a debug message for a request or for a protocol.
Definition: NetServicesDefs.h:92
const BString & Host() const
Returns the URL host component.
status_t RemoveApplication(const char *signature)
Remove access for an application to the Master keyring.
bool IsExpanded() const
Returns whether or not the list item is currently expanded.
uint32 flags
Mask of flags that determine the behavior of the application.
Definition: Roster.h:25
float left
Definition: Font.h:133
virtual void DrawGroove(BView *into, int32 channel, BPoint leftTop, BPoint rightBottom)
Undocumented public method.
void MakeFocus(bool focus=true)
Makes the tab the window's focus view or removes it.
Definition: InterfaceDefs.h:182
Unsubscribe from watching a node.
Definition: NodeMonitor.h:18
virtual ~BMessageQueue()
Destruct the BMessageQueue. It iterates over any messages left on the queue and deletes them.
Defines the BLayout class.
virtual void NoteOn(uchar channel, uchar note, uchar velocity, bigtime_t time)
Invoked when a Note On event is received.
const uint32 _VIEW_TOP_
View top mask variable. Do not use.
Definition: View.h:101
BString password
The password for the request.
Definition: HttpRequest.h:78
virtual thread_id Run()
Spawns the message loop thread and starts the window running.
Represents the BParameter type from the media kit.
Definition: TypeConstants.h:33
virtual void SetEnabled(bool enable)
Enables or disables the tab.
bool IsValid() const
Undocumented public method.
Definition: StackOrHeapArray.h:28
float leading
Definition: Font.h:141
status_t set_name(const char *name)
Set the entry_ref's leaf name, freeing the storage allocated for any previous name and then making a ...
virtual bool ItemAdded(BLayoutItem *item, int32 atIndex)
Hook method called when item is added to this layout.
const char * SourceSignature() const
Returns signature of the application where the notification originated.
virtual void MouseDown(BPoint where)
Undocumented public method.
int32 IntegerHeight() const
Returns the height value of a BSize object as an int32.
Definition: Size.h:116
virtual void KeyDown(const char *bytes, int32 numBytes)=0
Undocumented public method.
CardBuilder AddCards()
Definition: LayoutBuilder.h:1611
virtual status_t IterateBezierTo(int32 bezierCount, BPoint *bezierPoints)
Called by Iterate() to act on bezierCount Bézier curves comprised of the points specified by bezierPo...
Represent a HTTP method.
Definition: HttpRequest.h:32
static BArchivable * Instantiate(BMessage *archive)
Static member to restore objects from messages.
Represents the DELETE method.
Definition: HttpRequest.h:36
Error type.
Definition: Notification.h:19
The system non-packaged lib directory.
Definition: FindDirectory.h:53
status_t RemoveAppFlags()
Removes the application flags from the associated file.
void SetFontSize(float size)
Set the size of the view's font to size.
BString & SetTo(const char *string)
Re-initialize the BString to a copy of the data of a string.
Definition: String.h:481
void set_modifier_key(uint32 modifier, uint32 key)
Set the modifier key to the specified code in the system keymap.
virtual void DetachedFromWindow()
Hook method called when the object is detached from a window.
virtual ~BSymLink()
Destroys the object and frees all allocated resources.
BSplitView * SplitView() const
Get a reference to the underlying BSplitView.
bool IsRemovable() const
Returns whether or not the volume is removable.
void HideCursor()
Hides the cursor from the screen.
status_t(* unmount)(fs_volume *volume)
Unmounts the given volume.
Definition: fs_interface.h:77
BString & SetToFormat(const char *format,...)
Sets the string to a formatted string ala sprintf().
const char * TrailingText() const
Undocumented public method.
status_t(* create_sub_vnode)(fs_volume *volume, ino_t id, fs_vnode *vnode)
TODO: Document!
Definition: fs_interface.h:112
__haiku_uint16 uint16
2-bytes unsigned integer.
Definition: SupportDefs.h:23
The user data directory.
Definition: FindDirectory.h:71
bool IsEmpty() const
Check whether the string is empty.
Definition: String.h:458
const BMessage * ArchiveMessage() const
Returns the BMessage* used to construct this BUnarchiver.
status_t GetVolume(BVolume *volume) const
Fills out vol with the the volume that the node lives on.
virtual int32 CountEntries()=0
Returns the number of entries in the list.
BRect Frame() const
Returns a rectangle that encloses the BRegion.
void InsetBy(BPoint inset)
Inset the BRect by the x and y coordinates of point.
uint32 InvokeKind(bool *_notify=NULL)
Returns the kind set by InvokeNotify().
void ConvertFromScreen(BPoint *point) const
Convert point from the screen's coordinate system to the view's coordinate system in place.
void BeginInvokeNotify(uint32 kind=B_CONTROL_INVOKED)
Implement this method to set up an InvokeNotify() context.
The user directory containing booting related files.
Definition: FindDirectory.h:62
The BeOS preferences directory.
Definition: FindDirectory.h:116
bool AddItem(void *item, int32 index)
Add item at the specified index.
int OffsetFromGMT() const
Returns the offset, in milliseconds, between the standard time of a time zone and GMT.
void SetColumnWeight(int32 column, float weight)
Set the weight for column to weight.
virtual void SetViewColor(rgb_color color)
Set the view color of the view.
bool HasRef(const char *name, int32 n=0) const
Deprecated.
BPoint & operator-=(const BPoint &other)
Uses the BPoint as an accumulator storing the difference of the x values and the difference of the y ...
BStringItem(const char *text, uint32 outlineLevel=0, bool expanded=true)
Creates a new BStringItem object which displays the text string.
Specifies that if the resulting path doesn't exist, it shall be created a directory,...
Definition: FindDirectory.h:125
volatile uint64 vuint64
8-bytes volatile unsigned integer.
Definition: SupportDefs.h:37
status_t ProposeMode(display_mode *target, const display_mode *low, const display_mode *high)
Adjust the target mode to make it a supported mode.
bool HasPointer(const char *name, int32 n=0) const
Deprecated.
status_t Error() noexcept
Get the error code for this error.
virtual orientation Orientation() const
Undocumented public method.
Prevents the attached window from losing its focused state while the mouse is held down.
Definition: View.h:44
The directory for spool data, e.g. pending printer jobs.
Definition: FindDirectory.h:156
static BMidiProducer * FindProducer(int32 id, bool localOnly=false)
Finds the producer with the specified id.
virtual void GetPreferredSize(float *_width, float *_height)
Fill out the _width and _height parameters with the preferred width and height of the list view.
status_t GetGroup(gid_t *group) const
Fills out the node's GID into group.
virtual void DetachedFromWindow()
Hook method that is called when the list view is removed from the view hierarchy.
virtual void MessageReceived(BMessage *message)
Handle message received by the associated looper.
virtual void SetExplicitAlignment(BAlignment alignment)
Set this item's explicit alignment, to be used in Alignment().
status_t GetNextOutput(int32 *cookie, media_output *_output)
Gets the next output cookie.
void GetInsets(float *left, float *top, float *right, float *bottom) const
Get the insets that apply to this view.
BGridLayoutBuilder(float horizontal=B_USE_DEFAULT_SPACING, float vertical=B_USE_DEFAULT_SPACING)
Create a new layout builder with a new underlying BGridLayout.
static BArchivable * Instantiate(BMessage *archive)
Creates a new BStringView object from an archive message.
menu_layout
Definition: Menu.h:26
void EndLayer()
Finish a layer and blend it in with the view.
ThisBuilder & SetSpacing(float horizontal, float vertical)
Set the spacing between columns and rows for this layout.
Definition: LayoutBuilder.h:1069
virtual bool DoMiscellaneous(MiscCode code, MiscData *data)
Do a miscellaneous action.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determine the proper handler for a scripting message.
volatile uint16 vuint16
2-bytes volatile unsigned integer.
Definition: SupportDefs.h:33
virtual void MenusEnded()
Hook method that gets called just before a menu owned by the window is hidden.
BVolumeRoster()
Creates a BVolumeRoster object. The object is ready to be used.
bool IsLocal() const
Determines whether this endpoint represents a local object.
void GetSizeLimits(float *minWidth, float *maxWidth, float *minHeight, float *maxHeight)
Fills out the size limits set on the window.
BLayout()
Default constructor.
Provides the BEntry class and entry_ref implementations.
virtual void SetCellSize(float size)
Set the size of the color cell in the color control.
status_t AddShape(const BShape *other)
Adds the lines and curves of otherShape to BShape.
Set when modification time changes.
Definition: NodeMonitor.h:63
Describe the body for a network request.
Definition: HttpRequest.h:140
virtual const char * Message() const noexcept=0
Access the string representation of the message.
Provides the BVolume class.
Group< ThisBuilder > GroupBuilder
Shorthand for builders returned by this builder's AddGroup() methods.
Definition: LayoutBuilder.h:56
Provides the BGroupView class.
BString & MoveCharsInto(BString &into, int32 fromCharOffset, int32 charCount)
UTF-8 aware version of MoveInto(BString&, int32, int32)
off_t FreeBytes() const
Returns the amount of unused space on the volume (in bytes).
virtual bool ItemAdded(BLayoutItem *item, int32 atIndex)
Hook method called when item is added to this layout.
BWindow * WindowAt(int32 index) const
Returns the BWindow object at the specified index in the application's window list.
bool HasFloat(const char *name, int32 n=0) const
Deprecated.
BString & CharacterEscape(const char *original, const char *setOfCharsToEscape, char escapeWith)
Escape selected characters on a given string.
status_t SetTo(const BFile *file, bool clobber=false)
Initializes the BResources object to represent the resources of the supplied file.
status_t Refresh()
Refreshes the BLocalRoster.
Describes the blocks of Unicode characters supported by a font.
Definition: Font.h:106
status_t GetAttrInfo(const char *name, struct attr_info *info) const
Fills in the pre-allocated attr_info struct pointed to by info with information about the attribute s...
virtual void Update(BView *owner, const BFont *font)
Hook method that's called when the owner changes.
static BSpaceLayoutItem * CreateHorizontalStrut(float width)
Create a layout item that horizontally expands to a maximum width.
Undocumented class.
Definition: SeparatorView.h:14
void SetTransform(BAffineTransform transform)
Sets a BAffineTransform to transform the coordinate system.
status_t Launch(const char *mimeType, BMessage *initialMessage=NULL, team_id *_appTeam=NULL) const
Launches the application associated with the supplied MIME type.
BHandler(const char *name=NULL)
Construct a new handler with a name.
void EnableLayoutInvalidation()
Enable layout invalidation.
#define B_LOOPER_PORT_DEFAULT_CAPACITY
The default size of the port of a BLooper.
Definition: Looper.h:26
bool Contains(const BMimeType *type) const
Returns whether this MIME type is a supertype of or equals the supplied one.
virtual void WorkspacesChanged(uint32 oldWorkspaces, uint32 newWorkspaces)
Hook method that gets called when the number of workspaces changes.
virtual status_t Rewind()
Rewinds the entry list back to the first entry.
static BArchivable * Instantiate(BMessage *archive)
Instantiates a BTextControl object from the passed in archive.
virtual status_t Invoke(BMessage *message=NULL)
Tells the messenger to send a message.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Undocumented public method.
Split(orientation orientation=B_HORIZONTAL, float spacing=B_USE_DEFAULT_SPACING)
Creates a builder for a new BSplitView.
Definition: LayoutBuilder.h:1169
virtual void DrawChannel(BView *into, int32 channel, BRect area, bool pressed)
Undocumented public method.
BMessage()
Construct an empty message, without any data members and with a what constant set to 0.
float MinColumnWidth(int32 column) const
Returns the minimum width for column.
char * name
Definition: Entry.h:35
status_t(* create_symlink)(fs_volume *volume, fs_vnode *dir, const char *name, const char *path, int mode)
Create a new symbolic link.
Definition: fs_interface.h:157
bool operator!=(const BEntry &item) const
Returns false if the BEntry and item refer to the same entry or if they are both uninitialized.
BDatagramSocket()
Default constructor.
status_t StartWatching(BMessenger target)
Register a messenger to be notified when the roster changes.
virtual status_t Unflatten(type_code code, const void *buffer, ssize_t size)
Implements BFlattenable::Unflatten(). Initializes the object with the flattened entry_ref data from t...
BWindow class definition and support data structures.
bool operator<(const entry_ref &a, const entry_ref &b)
Returns whether an entry is less than another.
virtual bool CanEndLine(int32 offset)
Returns whether or not the character at the given offset can be the last character of a line.
Represents a NUL terminated character array.
Definition: TypeConstants.h:55
bool IsPersistent() const
Returns whether or not the volume is persistent.
The message does not pass the filter criteria and should not be handled.
Definition: MessageFilter.h:20
virtual status_t Unflatten(type_code code, const void *buffer, ssize_t size)=0
Pure virtual that should unflatten the buffer and put the contents into the current object.
const uchar B_PHASER_DEPTH
Identifier of phaser depth message.
Definition: Midi2Defs.h:63
static uint32 ToUpper(uint32 c)
Transforms c to uppercase.
rgb_color HighColor() const
Return the current high color.
status_t WriteAtExactly(off_t position, const void *buffer, size_t size, size_t *_bytesWritten=NULL)
Writes an exact amount of data from a buffer to the object at the specified position.
uint32 usb_id
Uniquely identify various USB objects that are used in the module.
Definition: USB3.h:24
int32 CountLocks() const
Return the number of recursive locks that are currently being held on this looper.
void SetHighUIColor(color_which which, float tint=B_NO_TINT)
Set the high color of the view to a system constant. The color will update live with user changes.
status_t(* open_dir)(fs_volume *volume, fs_vnode *vnode, void **_cookie)
Opens the given directory node.
Definition: fs_interface.h:193
virtual void SetExplicitPreferredSize(BSize size)
Set this item's explicit preferred size, to be used in PreferredSize().
Value for UrlEventData::DebugType indicating that the message is an error messsage.
Definition: NetServicesDefs.h:106
virtual bool RemoveItem(BLayoutItem *item)
Removes a BLayoutItem from this layout, and also removes the view it represents from this BLayout's t...
The user add-ons directory.
Definition: FindDirectory.h:61
The amount of vertical space surrounding a character.
Definition: Font.h:138
const uchar B_BREATH_CONTROLLER
Identifier of breath controller message.
Definition: Midi2Defs.h:37
virtual void KeyDown(const char *bytes, int32 numBytes)
Hook method that is called when a key is pressed while the view is the focus view of the active windo...
virtual void GetItemDimensions(BLayoutItem *item, Dimensions *dimensions)
Tell the base class what column and row a BLayoutItem is in as well as how many columns and rows it c...
virtual void LayoutInvalidated(bool descendants=false)
Hook method called when the layout is invalidated.
~BHttpFields() noexcept
Destructor.
status_t(* repair)(int fd, partition_id partition, bool checkOnly, disk_job_id job)
Undocumented. TODO.
Definition: fs_interface.h:294
status_t PreloadResourceType(type_code type=0)
Loads all resources of the specified type into memory.
status_t Sync()
Immediately performs any pending disk actions on the node.
virtual void MessageReceived(BMessage *message)
Hook method called when a message is received by the outline list view.
status_t SetTo(const BDirectory *dir, const char *path, bool traverse=false)
Reinitializes the BEntry to the path or directory path combination, resolving symlinks if traverse is...
virtual void SystemCommon(uchar status, uchar data1, uchar data2, bigtime_t time)
Invoked when a System Common event is received.
status_t AddResource(type_code type, int32 id, const void *data, size_t length, const char *name=NULL)
Adds a new resource to the file.
virtual status_t GetNextEntry(BEntry *entry, bool traverse=false)
Fills out entry with the next entry traversing symlinks if traverse is true.
virtual ~BDragger()
Destroys the BDragger object and frees the memory it uses, primarily from the bitmap handle.
status_t get_key_info(key_info *info)
Fills out the key_info struct with the current state of the keyboard.
BString & RemoveChars(int32 fromCharOffset, int32 charCount)
UTF-8 aware version of Remove(int32, int32).
virtual BSize MinSize()
Returns the text control's minimum size.
bool AncestorsVisible() const
Get the visibility of the ancestors of this layout.
virtual ~BHandler()
Free the filters of this handler, as well as the list of observers.
Convenient utility to make parts of your code thread-safe easily.
Definition: Autolock.h:13
BLayoutBuilder::Base subclass for building BGridLayouts.
Definition: LayoutBuilder.h:30
bool RemoveChild(BView *child)
Removes child from the view hierarchy.
const BString & Fragment() const
Returns the fragment of the url.
The BeOS etc directory used for Unix-like installation location-wide settings (Unix "etc" directory).
Definition: FindDirectory.h:114
virtual void GetPreferredSize(float *_width, float *_height)
Fill out the preferred width and height of the view into the _width and _height parameters.
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archives the BNotification in the archive.
static BArchivable * Instantiate(BMessage *data)
Creates a new object from an data.
void SetName(const char *name)
Set or change the name of this handler.
Streams MIDI events to connected consumers.
Definition: MidiProducer.h:11
static BMidiEndpoint * NextEndpoint(int32 *id)
Returns the next endpoint from the roster.
virtual status_t SetLimitLabels(const char *minLabel, const char *maxLabel)
Undocumented public method.
virtual status_t Flatten(void *buffer, ssize_t size) const
status_t StopWatching(BMessenger target)
Stop watching the BClipboard object for changes.
const char * OnClickApp() const
Returns the signature of the application that will be called when the notification is clicked.
String class supporting common string operations.
Definition: String.h:19
float size
Definition: Font.h:162
status_t(* put_vnode)(fs_volume *volume, fs_vnode *vnode, bool reenter)
Deletes the private data handle associated with the specified node.
Definition: fs_interface.h:123
void SprayProgramChange(uchar channel, uchar programNumber, bigtime_t time=0) const
Sends a Program Change event to all connected consumers.
virtual void GetHeightForWidth(float width, float *min, float *max, float *preferred)
Get this BLayoutItem's height constraints for a given width.
void ResetLayoutInvalidation()
Reset layout invalidation, causing InvalidateLayout calls to proceed again. This method should be cal...
virtual void PrintToStream()
Dump the contents of the key to standard output.
virtual void SetFocusTab(int32 tab, bool focused)
Sets the focus state of the specified tab.
status_t AddFlat(const char *name, BFlattenable *object, int32 count=1)
Convenience method to add a flattenable to the label name.
__haiku_phys_addr_t phys_addr_t
Represents a physical address.
Definition: SupportDefs.h:58
int32 FullListIndexOf(BPoint where) const
Returns the full list index of the item at where.
int32 Selection() const
Returns the index of the selected tab or -1 if not found.
virtual ssize_t Write(const void *buffer, size_t size)
Undocumented public method.
virtual void Draw(BRect updateRect)
Draws the area of the check box that intersects updateRect.
static bool IsDefined(uint32 c)
Determine if c is defined.
virtual off_t Position() const =0
Pure virtual to return the current position of the cursor.
The BRoster class lets you launch apps and keeps track of apps that are running.
Definition: Roster.h:56
status_t acquire_vnode(fs_volume *volume, ino_t vnodeID)
Acquires another reference to a vnode.
void Set(float left, float top, float right, float bottom)
Sets the dimensions of a BRect.
Definition: Rect.h:197
virtual void Deselect()
Called by the BTabView when the tab is de-selected.
BList * CommonFilterList() const
Return a list of filters applied to all incoming messages.
int32 width
The number of columns the layout item spans.
Definition: TwoDimensionalLayout.h:55
virtual ssize_t Write(const void *buffer, size_t size)
Writes data from a buffer to the object.
virtual void MakeFocus(bool focused=true)
Gives focus to or removes focus from the control.
coordinate_space
A coordinate or drawing space.
Definition: View.h:73
void ConvertToScreen(BPoint *point) const
Convert point to the screen's coordinate system in place.
Deprecated helper class that helps building a BSplitView.
Definition: SplitLayoutBuilder.h:10
const BStringList & SupportedProtocols() const
A list of protocols that are supported.
const pattern B_SOLID_HIGH
bool IsArchived(BArchivable *archivable)
Returns whether archivable has already been archived in this session.
int32 CountItems() const
Returns the number of items in the list.
Definition: ObjectList.h:617
Subscribe to watching for when a volume is mounted or unmounted.
Definition: NodeMonitor.h:25
Receive and process messages in a separate thread.
Definition: Looper.h:29
String localization handling.
Definition: Catalog.h:21
virtual void AddTab(BView *target, BTab *tab=NULL)
Adds the specified tab to the BTabView.
void MovePenBy(float x, float y)
Move the pen by x pixels horizontally and y pixels vertically.
message_source
BMessageFilter filter criteria on the source of a message.
Definition: MessageFilter.h:36
void WriteToStream(std::ostream &stream) const
Write the error description to an output stream.
virtual void WorkspaceActivated(int32 workspace, bool state)
Hook method that gets called when the active workspace changes.
std::optional< off_t > startPosition
If the input is a BPositionIO, this is the current position when the body was set.
Definition: HttpRequest.h:144
void CopyBits(BRect src, BRect dst)
Copy the bits from the src rectangle to the dst rectangle in the view's coordinate system.
void SetName(const char *name)
Changes the name of the endpoint.
virtual status_t GetType(char *type) const
Writes the MIME-type of the node into type.
bool IsCursorHidden() const
Returns whether or not the cursor is hidden.
virtual void FrameMoved(BPoint newPosition)
Hook method called when the outline list view is moved.
void SetInsets(float left, float top, float right, float bottom)
Set the insets for this layout.
int32 CountOnClickRefs() const
Returns the number of refs to be passed when the user clicks on the notification.
virtual int32 CountEntries()
Unimplemented.
The user directory where activated packages live.
Definition: FindDirectory.h:73
color_which LowUIColor(float *tint=NULL) const
Return the current low color constant being used.
ThisBuilder & AddGlue(float weight=1.0f)
Add a BSpaceLayoutItem created by BSpaceLayoutItem::CreateGlue() to the builder's layout.
Definition: LayoutBuilder.h:690
virtual const translation_format * OutputFormats(int32 *_count) const =0
Pure virtual. Returns an array containing information about all output formats the translator can pro...
virtual void SetEnabled(bool enable)
Enables or disables the text control.
bool EndsWith(const BString &string) const
Returns whether or not the BString ends with string.
void MakeResizable(bool resize, BView *resizeView=NULL)
Activates and deactivates automatic resizing.
status_t GetShortDescription(char *description) const
Fetches the MIME type's short description from the MIME database.
Provides access to the metadata associated with executables, libraries and add-ons.
Definition: AppFileInfo.h:49
int32 ValueFor(int32 channel) const
Undocumented public method.
ThisBuilder & SetInsets(float left, float top, float right, float bottom)
Set the insets for this layout.
Definition: LayoutBuilder.h:1096
void SetMaxRowHeight(int32 row, float height)
Sets the maximum height for row to width.
void StrokeArc(BPoint center, float xRadius, float yRadius, float startAngle, float arcAngle, ::pattern pattern=B_SOLID_HIGH)
Stroke the outline of an arc starting at center with a horizontal radius of xRadius and a vertical ra...
virtual BSize BaseMinSize()
Method to be implemented in derived classes return the minimum size constraint for this BAbstractLayo...
status_t find_paths_etc(const char *architecture, path_base_directory baseDirectory, const char *subPath, uint32 flags, char ***_paths, size_t *_pathCount)
Retrieves a list of paths in the file system layout.
SplitBuilder AddSplit(orientation orientation, float spacing, int32 column, int32 row, int32 columnCount=1, int32 rowCount=1)
Definition: LayoutBuilder.h:980
BDirectory()
Creates an uninitialized BDirectory object.
bool HasPath() const
Check wether the URL has a path.
Represents the OPTIONS method.
Definition: HttpRequest.h:36
uint32 _dd_type_
Definition: DirectWindow.h:45
status_t Archive(BMessage *archive, bool deep) const
Archive the object into a BMessage.
bus_manager_info binfo
Instance of the bus_manager_info object.
Definition: USB3.h:86
Handles messages that are passed on by a BLooper.
Definition: Handler.h:29
BListItem * FullListItemAt(int32 fullListIndex) const
Returns a pointer to the BListItem at fullListIndex.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determine the proper handler for a scripting message.
virtual bool HasMultiRowItems()
Tests whether or not this BTwoDimensionalLayout contains any BLayoutItem's spanning more than one row...
ThisBuilder & SetExplicitAlignment(BAlignment alignment)
Set the explicit alignment of the underlying layout.
Definition: LayoutBuilder.h:1670
virtual ~BTab()
Destructor.
void DrawString(const char *string, escapement_delta *delta=NULL)
Draw string onto the view at the current pen position.
uint8 dev_protocol
The supported device protocols.
Definition: USB3.h:42
void SetMessage(BMessage *message)
Sets the target messenge.
The current drawing space of the parent view.
Definition: View.h:77
const char * B_URL_FILE
application/x-vnd.Be.URL.file
virtual status_t Archive(BMessage *archive, bool deep=true) const
Undocumented public method.
static size_t UTF8StringLength(const char *string)
Counts the characters in the given NUL terminated string.
virtual status_t SetType(const char *type)
Sets the MIME type of the associated file.
virtual void ProgramChange(uchar channel, uchar programNumber, bigtime_t time)
Invoked when a Program Change event is received.
BAlignment GetAlignment(const char *name, int32 index, const BAlignment &defaultValue) const
Return the BAlignment object from message with name and index, or defaultValue if not found.
virtual void SetFont(const BFont *font, uint32 mask=B_FONT_ALL)
Set the font of the view.
BMessage * Data() const
Gets a pointer to the BMessage object that holds the clipboard data.
void SetContent(const BString &content)
Set a message for the notification.
BMessageFilter(uint32 what, filter_hook func=NULL)
Construct a new object that filters on a message constant.
virtual void WindowActivated(bool active)
Hook method that is called when the window becomes the active window or gives up that status.
The distance that a character outline is inset from its escapement boundaries.
Definition: Font.h:132
Schedule, execute and manage HTTP requests.
Definition: HttpSession.h:25
virtual void DrawTab(BView *owner, BRect frame, tab_position position, bool full=true)
Draws the tab and label according to position and full.
BWindow * Window() const
Gets a pointer to the BWindow object used by the file panel.
ssize_t ReadLink(char *buf, size_t size)
Reads the contents of the symbolic link into buffer.
status_t InvokeNotify(BMessage *message, uint32 kind=B_CONTROL_INVOKED)
Sends the message to its target, using the notification code specified by kind.
void SetMinColumnWidth(int32 column, float width)
Sets the minimum width for column to width.
int setlogmask(int priorityMask)
sets the logging priority mask
virtual BSize MinSize()
Returns the string view's minimum size.
status_t SetIconBitmap(const BBitmap *bitmap, uint32 which, uint32 flags=0)
Icon bitmaps for various states of the control (off, on, partially on, each enabled or disabled,...
virtual void SystemRealTime(uchar status, bigtime_t time)
Invoked when a Real Time event is received.
Abstract base class for advanced error objects.
Definition: ErrorsExt.h:21
status_t get_keyboard_id(uint16 *_id)
Fills out _id with the id of the currently attached keyboard.
General type when the exact contents are not yet known.
Definition: TypeConstants.h:18
static status_t GetInstalledSupertypes(BMessage *supertypes)
Fetches a BMessage listing all the MIME supertypes currently installed in the MIME database.
status_t(* read_index_dir)(fs_volume *volume, void *cookie, struct dirent *buffer, size_t bufferSize, uint32 *_num)
Read the next one or more index entries.
Definition: fs_interface.h:91
char * LockBuffer(int32 maxLength)
Locks the buffer and return the internal string for manipulation.
virtual status_t Perform(perform_code d, void *arg)
Perform some action (Internal method defined for binary compatibility purposes).
__haiku_uint32 uint32
4-bytes unsigned integer.
Definition: SupportDefs.h:25
status_t(* close)(fs_volume *volume, fs_vnode *vnode, void *cookie)
Closes the given node cookie.
Definition: fs_interface.h:180
void MoveBy(float dh, float dv)
Moves the view deltaX pixels horizontally and deltaY pixels vertically in the parent view's coordinat...
ThisBuilder & AddTextControl(BTextControl *textControl, int32 column, int32 row, alignment labelAlignment=B_ALIGN_HORIZONTAL_UNSET, int32 labelColumnCount=1, int32 textColumnCount=1, int32 rowCount=1)
Add a BMenuField to the layout.
Definition: LayoutBuilder.h:904
BBox(BRect frame, const char *name=NULL, uint32 resizingMode=B_FOLLOW_LEFT_TOP, uint32 flags=B_WILL_DRAW|B_FRAME_EVENTS|B_NAVIGABLE_JUMP, border_style border=B_FANCY_BORDER)
Constructs a named BBox object from a set of dimensions.
const uchar B_SONG_POSITION
Identifier of song position message.
Definition: Midi2Defs.h:23
virtual ~BChannelControl()
Undocumented public method.
void SetWordWrap(bool wrap)
Activate or deactivate word wrapping mode.
BPath()
Creates an uninitialized BPath object.
virtual BSize PreferredSize()
Returns the string view's preferred size.
BPoint GetPoint(const char *name, int32 index, const BPoint &defaultValue) const
Return the BPoint object from message with name and index, or defaultValue if not found.
BMessenger ReturnAddress() const
Get a messenger that points to the sender of the message.
status_t SetOwner(uid_t owner)
Sets the node's UID to owner.
const BString & UrlString() const
Returns the string representation of the URL.
void GetStringWidths(const char *stringArray[], const int32 lengthArray[], int32 numStrings, float widthArray[]) const
Determines the amount of space required to draw each string in stringArray and writes the result in w...
BString & ReplaceFirst(char replaceThis, char withThis)
Replace the first occurrence of a character with another character.
status_t notify_entry_removed(dev_t device, ino_t directory, const char *name, ino_t node)
Notifies listeners that a file system entry has been removed.
std::unique_ptr< BDataIO > input
The BDataIO object that holds the contents of the body.
Definition: HttpRequest.h:141
BListItem * FullListLastItem() const
Returns a pointer to the list BListItem in the list.
int32 CountColumns() const
Returns the number of active columns in this layout.
virtual void ReadyToRun()
Hook method that's invoked when the BApplication receives a B_READY_TO_RUN message.
Provides the BGridLayout class.
ThisBuilder & SetHorizontalSpacing(float spacing)
Set the spacing between columns for this layout.
Definition: LayoutBuilder.h:1051
virtual void MakeFocus(bool focus=true)
Gives or removes focus from the control.
virtual status_t Archive(BMessage *data, bool deep=true) const
Archives the control into data.
ownership_policy
Options for the ownership policy of objects retrieved from BUnarchiver.
Definition: Archivable.h:87
file_panel_mode
Whether the file panel is a save or open panel.
Definition: FilePanel.h:30
status_t new_vnode(fs_volume *volume, ino_t vnodeID, void *privateNode, fs_vnode_ops *ops)
Create the vnode with ID vnodeID and associates it with the private data handle privateNode,...
status_t Unregister()
Hides the endpoint from the roster/.
input_device_type
Device types that the Input Server can recognize.
Definition: Input.h:21
uint8 Encoding() const
Gets the character encoding constant.
virtual bool Filter(const entry_ref *ref, BNode *node, struct stat_beos *stat, const char *mimeType)=0
Hook method that's called on each file in the target directory displayed by a file panel.
virtual bool RemoveItems(int32 fullListIndex, int32 count)
Removes count items starting at fullListIndex from the list.
void Set(BRect rect)
Set the region to bounds of newBounds.
window_type
Definition: Window.h:27
const char * GetString(const char *string, const char *context=NULL, const char *comment=NULL)
Get a string from the catalog.
virtual void InvalidateLayout(bool children=false)
Invalidate this layout and any cached data this layout has relating to positioning and sizing of its ...
const char * OnClickArgAt(int32 index) const
Returns the arg that is stored at index.
virtual void AttachedToWindow()
Hook method overridden from BView.
Set when access, modification or creation time changes.
Definition: NodeMonitor.h:65
virtual void TempoChange(int32 beatsPerMinute, bigtime_t time)
Invoked when a Tempo Change event is received.
void atomic_set(int32 *value, int32 newValue)
Atomically set the variable value to newvalue.
status_t SetTo(BKeyPurpose purpose, const char *identifier, const char *secondaryIdentifier=NULL, const uint8 *data=NULL, size_t length=0)
Set the key to the specified values.
virtual status_t AllUnarchived(const BMessage *from)
Unarchives the BLayoutItem's for this layout, calling ItemUnarchived() for each one.
virtual status_t AllArchived(BMessage *archive) const
Hook method called when all views have been archived.
BMessage * SelectionMessage() const
Returns the message that is send when an item is selected.
BButton * DefaultButton() const
Returns a pointer to the default button set on the window.
virtual status_t InvokeChannel(BMessage *message=NULL, int32 fromChannel=0, int32 channelCount=-1, const bool *_mask=NULL)
These methods are similar to Invoke() Invoke() and InvokeNotify(), but.
void FillTriangle(BPoint point1, BPoint point2, BPoint point3, ::pattern pattern=B_SOLID_HIGH)
Fill the triangle specified by points point1, point2, and point3.
virtual status_t GetDecodedData(BPositionIO *data)
Retrieves the data contained in this component as a UTF8 string into data.
virtual thread_id Run()
Starts the message loop in the thread that it is called from, and doesn't return until the message lo...
notification_type Type() const
Returns the type of the notification.
The request was sent, and the response is now incoming.
Definition: NetServicesDefs.h:88
int32 offset
Definition: TextView.h:22
bool operator==(const BMessenger &other) const
Comparison operator, returns whether this and other have the same target.
void PrintToStream() const
Prints each rect in the the BRegion to standard output.
bool IsSelected() const
Returns whether or not the tab is selected.
BMessage * InvocationMessage() const
Returns the message that is send when an item is invoked.
status_t(* read_attr)(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, void *buffer, size_t *length)
Read attribute data.
Definition: fs_interface.h:226
int Compare(const BString &a, const BString &b)
Lexicographically compare two strings.
virtual const char * Message() const noexcept override
Access the string representation of the message.
Describe username and password for basic authentication for the request.
Definition: HttpRequest.h:76
Definition: ColorControl.h:16
void FillBezier(BPoint *controlPoints, ::pattern pattern=B_SOLID_HIGH)
Fill a bezier curve.
The system directory containing development related files.
Definition: FindDirectory.h:32
static bool IsArchiveManaged(const BMessage *archive)
Checks whether archive was managed by a BArchiver object.
BQuery()
Creates an uninitialized BQuery object.
BRegion class definition.
void syslog(int priority, const char *message,...)
sends a message to the system log
BView * View() const
Get a pointer to the BView this builder's layout is attached to.
Definition: LayoutBuilder.h:842
Represents the unsigned size_t type.
Definition: TypeConstants.h:53
void AddChild(BView *child, BView *sibling=NULL)
Add a child to the view.
The command line application directory (Unix "bin" directory).
Definition: FindDirectory.h:138
void PrintToStream() const
Writes information about the font to stdout.
BString & RemoveLast(const BString &string)
Remove the last occurrence of the given BString.
status_t GetAvailableCatalogs(BMessage *message, const char *sigPattern=NULL, const char *langPattern=NULL, int32 fingerprint=0) const
Get the available locales and catalogs.
virtual void DetachedFromWindow()
Removes the BDragger from the control of HideAllDraggers() and ShowAllDraggers().
uint32 _dd_token_
Definition: DirectWindow.h:46
BRect BoundingBox() const
Gets a BRect that encloses the font text.
int32 atomic_or(int32 *value, int32 orValue)
Atomically perform a bitwise OR operation of orValue to the variable andValue.
Hooks that the USB stack can callback in case of events.
Definition: USB3.h:34
void GetMouse(BPoint *location, uint32 *buttons, bool checkMessageQueue=true)
Fills out the cursor location and the current state of the mouse buttons.
status_t RemoveResource(const void *resource)
Removes a resource identified by resource.
void SetPeer(const BNetworkAddress &peer)
Change the remote host for this connections.
The user non-packaged directory for development header files.
Definition: FindDirectory.h:85
status_t ReplaceUInt32(const char *name, uint32 value)
Replace an integer at the label name.
const char * String() const
Return a pointer to the object string, NUL terminated.
Definition: String.h:465
void PrintToStream() const
Print the message to the standard output.
bool HasValue() const noexcept
Check if the object has a value or is empty.
Definition: ExclusiveBorrow.h:163
void UpdateIfNeeded()
Invokes Draw() immediately on each child view that needs updating.
const BUrl & operator=(const BUrl &other)
Undocumented public method.
Describes a message filter for BLooper and BHandler.
Definition: MessageFilter.h:43
virtual void MouseMoved(BPoint where, uint32 transit, const BMessage *dragMessage)
Hook method called when the mouse is moved.
virtual status_t GetOutputFormats(translator_id translatorID, const translation_format **_formats, int32 *_numFormats)
Looks up the output formats of the translator with a given ID.
The system non-packaged add-ons directory.
Definition: FindDirectory.h:45
static bool IsDigit(uint32 c)
Determine if c is numeric.
void SetExplicitMaxSize(BSize size)
Set this view's max size, to be used by MaxSize().
virtual void GetHeightForWidth(float width, float *min, float *max, float *preferred)
Returns the min, max and preferred height for a given width.
unsigned char uchar
Unsigned 1-byte wide character.
Definition: SupportDefs.h:49
virtual status_t Identify(BPositionIO *source, BMessage *ioExtension, translator_info *_info, uint32 hintType=0, const char *hintMIME=NULL, uint32 wantType=0)
Determines the best translator in the roster to perform a certain conversion.
static status_t FindPaths(const char *architecture, path_base_directory baseDirectory, const char *subPath, uint32 flags, BStringList &_paths)
Retrieves a list of paths in the file system layout.
BMessageQueue * MessageQueue() const
Get a pointer to the internal message queue of this looper.
void SetOutlineLevel(uint32 level)
Set the outline level of the list item.
static status_t GuessMimeType(const entry_ref *file, BMimeType *type)
Guesses a MIME type for the entry referred to by the given entry_ref.
bool Add(const BString &string, int32 index)
Undocumented public method.
virtual void SetDrawingMode(drawing_mode mode)
Sets the drawing mode of the view.
BScreen(screen_id id=B_MAIN_SCREEN_ID)
Creates a BScreen object which represents the display connected to the computer with the given screen...
bool IsMessageWaiting() const
Check if there is a message waiting.
static BLocaleRoster * Default()
Returns default BLocalRoster.
status_t Commit()
Commits the clipboard data to the BClipboard object.
const uchar B_TREMOLO_DEPTH
Identifier of tremelo depth message.
Definition: Midi2Defs.h:60
BHttpMethod & operator=(const BHttpMethod &other)
Copy assignment.
virtual void DispatchMessage(BMessage *message, BHandler *handler)
Dispatch a message to a handler. Override if there are messages that you want to catch before they ar...
Represents an entry_ref structure.
Definition: TypeConstants.h:48
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
BUrl & SetFragment(const BString &fragment)
Set the fragment part of the URL.
void SetItemWeight(int32 index, float weight)
Set the weight of the item at index.
virtual void DetachedFromWindow()
Hook method that is called when the object is detached from a window.
virtual status_t SetDecodedData(BPositionIO *data)
Sets the contents of this component to the UTF8 format data.
The user directory containing development related files.
Definition: FindDirectory.h:87
Represents type codes that are used by parts of the Haiku API.
status_t SetAccessTime(time_t atime)
Sets the node's access time to atime.
status_t GetPredicate(char *buffer, size_t length)
Fills out buffer with the predicate string assigned to the BQuery object.
virtual void SetPenSize(float size)
Set the pen size to size.
status_t Sync()
Writes all changes to the resources to the file.
const uint8 B_TRANSPARENT_8_BIT
Transparent color.
float MinRowHeight(int row) const
Returns the minimum height for row.
virtual void DoLayout()
Undocumented protected method.
int32 GetInt32(const char *name, int32 defaultValue) const
Return the int32 value from message with name, or defaultValue if not found.
virtual void AllAttached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been at...
int32 atomic_add(int32 *value, int32 addValue)
Atomically add the value of addValue to value.
virtual void AttachedToWindow()
Undocumented public method.
virtual void FrameResized(float newWidth, float newHeight)
Hook method that gets called when the window is resized.
virtual void Hide()
Removes the window from the screen, removes it from Deskbar's window list, and passes active status t...
off_t BlockSize() const
Returns the size of one block (in bytes). The meaning of this depends on the underlying file system.
bool operator==(const pattern &a, const pattern &b)
Comparison operator for two patterns.
Definition: GraphicsDefs.h:20
void SetSize(float size)
Sets the font size.
ThisBuilder & SetColumnWeight(int32 column, float weight)
Set the weight for column to weight.
Definition: LayoutBuilder.h:1078
Generic key purpose.
Definition: Key.h:17
status_t SetTo(const void *codePointer=NULL, const char *dependency=NULL)
Reinitializes the object to refer to an installation location based on a loaded image file.
int CompareAt(size_t offset, const BString &string, int32 length) const
Lexicographically compare length of characters of this BString to another string, starting at offset.
The user sounds directory.
Definition: FindDirectory.h:70
virtual ssize_t WriteAt(off_t position, const void *buffer, size_t size)
Write data to a certain position.
void SetAuthority(const BString &authority)
Replace the complete authority component.
bool DoesAutoindent() const
Returns whether or not automatic indenting is active.
Displays a list of items that the user can select and invoke.
Definition: ListView.h:24
Only accept messages that were dropped by the user in the GUI.
Definition: MessageFilter.h:32
alert_type
Type of alert.
Definition: Alert.h:15
virtual void ScreenChanged(BRect screenSize, color_space depth)
Hook method that is called when the screen that the window is located on changes size or location or ...
dev_t device
The device number on which the node is located.
Definition: Node.h:28
void HideTyping(bool enabled)
Enables and disables type hiding.
virtual void SetEnabled(bool enabled)
Enables or disables the control.
uint8 IndexForColor(rgb_color color)
Returns the 8-bit color index that most closely matches a 32-bit color.
Definition: Screen.h:106
void MakeEmpty()
Empties the region so that it doesn't containt any rects, and invalidates its bounds.
static BArchivable * Instantiate(BMessage *data)
Returns a pointer to a new BPicture object created from the BPicture data archived in data.
virtual status_t AllArchived(BMessage *archive) const
Method relating to the use of BArchiver.
int32 IndexOfView(BView *child) const
Get the index of child in this layout.
The system non-packaged directory for development header files.
Definition: FindDirectory.h:54
virtual void KeyDown(const char *bytes, int32 numBytes)
Hook method that is called when a key is pressed while the view is the focus view of the active windo...
status_t GetFlagIconForCountry(BBitmap *flagIcon, const char *countryCode)
Sets flagIcon to the flag for the passed in countryCode.
#define B_FOLLOW_NONE
Follow none resize mask parameter. Equivalent to B_FOLLOW_LEFT | B_FOLLOW_TOP. The view maintains its...
Definition: View.h:110
status_t WriteAttrString(const char *name, const BString *data)
Writes the specified string to the specified attribute, clobbering any previous data.
status_t PushString(const char *value, bool caseInsensitive=false)
Pushes a string onto the predicate stack.
BPoint operator+(const BPoint &other) const
Returns a BPoint where the x-coordinate is the sum of the x values and the y-coordinate is the sum of...
void SetLeftBottom(const BPoint point)
Sets the left bottom point of the BRect.
const uchar B_EXPRESSION_CTRL
Identifier of expression control message.
Definition: Midi2Defs.h:44
status_t find_path_for_path_etc(const char *path, const char *dependency, const char *architecture, path_base_directory baseDirectory, const char *subPath, uint32 flags, char *pathBuffer, size_t bufferSize)
Retrieves a path in the file system layout based on a given path.
status_t AddUInt32(const char *name, uint32 value)
Convenience method to add an uint32 to the label name.
status_t GetAvailableTimeZonesForCountry(BMessage *message, const char *countryCode) const
Fills in the passed in timeZones message with one or more time zone strings containing the time zones...
Operations vector for a volume.
Definition: fs_interface.h:76
SplitBuilder AddSplit(orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f)
Definition: LayoutBuilder.h:1316
status_t GetAppHint(entry_ref *ref) const
Fills out ref with a pointer to a hint about the application that will open this node.
int64 nanotime_t
Represents time in nanoseconds.
Definition: SupportDefs.h:54
const char * Content() const
Returns the message of the notification.
void * pci_bits
Definition: DirectWindow.h:38
void SetShear(float shear)
Sets the angle in degrees relative to the baseline.
virtual ~BBlockCache()
Destroy the empty blocks in the free list.
virtual void MouseDown(BPoint where)
Hook method called when a mouse button is pressed.
BUrl & SetUrlString(const BString &url)
Parse a string and set the URL accordingly.
int CompareChars(const BString &string, int32 charCount) const
UTF-8 aware version of Compare(const BString&, int32).
virtual void MessageReceived(BMessage *message)
Undocumented public method.
static status_t ConvertFromCMAP8(BBitmap *source, BBitmap *result)
Converts an old-style icon to another colorspace.
status_t SetUInt32(const char *name, uint32 value)
Set the data with at the label name to value.
virtual void Select(BView *owner)
Called by the BTabView when the tab is selected.
virtual status_t Archive(BMessage *data, bool deep=true) const
Archives the object into the data message.
~BAutolock()
Destroy the object and unlock the associated BLocker or BLooper.
Definition: Autolock.h:63
bool IsLive() const
Gets whether the query associated with this object is live.
int32 ID() const
Returns the ID of the endpoint.
~BArchiver()
Destroys a BArchiver object. If the BArchiver object has not had its Finish() method called,...
static BArchivable * Instantiate(BMessage *from)
Instantiate the view from the message from.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 form, const char *property)
Determine the proper handler for a scripting message.
virtual void MouseMoved(BPoint where, uint32 transit, const BMessage *dragMessage)
Hook method called when the mouse is moved.
status_t SetAutoHide(bool autoHide)
Undocumented public method.
bool(* validate_move)(partition_data *partition, off_t *start)
Undocumented. TODO.
Definition: fs_interface.h:279
BReference()
Creates a reference without initializing it.
Definition: Referenceable.h:43
BString & IReplaceFirst(char replaceThis, char withThis)
Replace the first occurrence of a character with another character case-insensitively.
To avoid a flood of messages for small and frequent write operations on an open file the file system ...
Definition: NodeMonitor.h:26
virtual BSize MinSize()
Returns the minimum size of the list view.
Definition: GraphicsDefs.h:310
status_t ReplaceFloat(const char *name, float value)
Replace a float at the label name.
Represents an unsigned char type used for integer storage.
Definition: TypeConstants.h:61
Query the key store for keys with any purpose.
Definition: Key.h:16
Representation of a HTTP header name.
Definition: HttpFields.h:86
void atomic_set64(int64 *value, int64 newValue)
Atomically set the variable value to newvalue.
const char * Text() const
Returns the text displayed by the BTextControl.
status_t SetToNext()
Sets the BScreen object to the next display in the screen list.
virtual void DrawItem(BListItem *item, BRect itemRect, bool complete=false)
Used by derived classes to override how an item is drawn.
status_t InvokeNotifyChannel(BMessage *message=NULL, uint32 kind=B_CONTROL_INVOKED, int32 fromChannel=0, int32 channelCount=-1, const bool *_mask=NULL)
Undocumented public method.
virtual void ResizeToPreferred()
Resize the view to its preferred size.
virtual status_t ItemUnarchived(const BMessage *from, BLayoutItem *item, int32 index)
Hook for derived classes to retrieve data specific to item from the from BMessage....
The directory containing booting related files.
Definition: FindDirectory.h:139
The directory for sound files.
Definition: FindDirectory.h:155
virtual void MouseUp(BPoint where)
Hook method that is called when a mouse button is released while the cursor is contained in the view.
static BArchivable * Instantiate(BMessage *data)
Instantiates a BAlert from a BMessage.
float ascent
Definition: Font.h:139
const uint32 B_WILL_DRAW
Indicates that the view will do its own drawing.
Definition: View.h:86
Helper class to retrieve paths in the file system layout.
Definition: PathFinder.h:22
ssize_t ReadAttr(const char *name, type_code type, off_t offset, void *buffer, size_t length) const
Reads data from an attribute into buffer.
status_t GetTokenForArchivable(BArchivable *archivable, int32 &_token)
Equivalent to calling the expanded GetTokenForArchivable( BArchivable*, bool, int32&),...
Definition: Archivable.h:171
virtual void InvalidateLayout(bool children=false)
Invalidate the layout of this item, or the object it represents.
BString & Append(const BString &string)
Append the given string to the end of the BString.
Definition: String.h:512
The system preferences directory.
Definition: FindDirectory.h:27
Accept both local and remote messages.
Definition: MessageFilter.h:37
status_t SetTo(const char *countryCode)
Initialize a BCountry from a country code.
bool HasProtocol() const
Check wether the URL has a protocol.
void Select(int32 index, bool extend=false)
Selects the list item at the specified index.
status_t(* set_flags)(fs_volume *volume, fs_vnode *vnode, void *cookie, int flags)
Set the open mode flags for an opened file.
Definition: fs_interface.h:147
BString & Truncate(int32 newLength, bool lazy=true)
Truncate the string to the new length.
const BString & Path() const
Returns the url path.
status_t GetName(BString &name, const BLanguage *displayLanguage=NULL) const
Writes the country's name into the supplied BString.
BStopWatch(const char *name, bool silent=false)
Constructs a BStopWatch object and starts the timer.
BString & InsertChars(const char *string, int32 charPosition)
UTF-8 aware version of Insert(const char*, int32).
ThisBuilder & GetLayout(BGroupLayout **_layout)
Get the layout this builder represents.
Definition: LayoutBuilder.h:512
void SetSpacing(float horizontal, float vertical)
Set the spacing between columns and rows for this layout.
BAffineTransform TransformTo(coordinate_space basis) const
Return the BAffineTransform to convert from the current drawing space to basis.
status_t ImportBits(const void *data, int32 length, int32 bpr, int32 offset, color_space colorSpace)
Assigns data to the bitmap.
bool operator!=(const node_ref &other) const
Tests whether this node_ref and the supplied one are NOT equal.
virtual status_t ItemArchived(BMessage *into, BLayoutItem *item, int32 index) const
Hook for derived classes to add data specific to item to the into BMessage. item resides at index.
GridBuilder AddGrid(float horizontal=B_USE_DEFAULT_SPACING, float vertical=B_USE_DEFAULT_SPACING)
Shorthand for builders returned by this builder's AddGrid() methods. BLayoutBuilder::Group<ParentBuil...
Definition: LayoutBuilder.h:1556
A container with two or more sections, with dividers in between, so that a user can manipulate the si...
Definition: SplitView.h:13
status_t SetFullScreen(bool enable)
Enables or disables full-screen mode.
status_t SetWindowAlignment(window_alignment mode, int32 h, int32 hOffset=0, int32 width=0, int32 widthOffset=0, int32 v=0, int32 vOffset=0, int32 height=0, int32 heightOffset=0)
Sets the alignment of the content of the window on the screen.
bigtime_t Latency() const
Returns the latency of this consumer.
BView * LabelView() const
Gets the BView representing the label.
bool IsActive() const
Returns whether or not the window is active.
Subscribe to watching for change to the name of a node.
Definition: NodeMonitor.h:19
status_t StartWatching(BMessenger messenger=be_app_messenger)
Starts watching the available volumes for changes.
button_width TabWidth() const
Returns the current tab width flag.
A list item, a member of a BListView or BOutlineListView.
Definition: ListItem.h:20
status_t GetAppFlags(uint32 *flags) const
Gets the application flags of the associated file.
static BArchivable * Instantiate(BMessage *archive)
Creates a new BView object from the data message.
void GetAlignment(alignment *_label, alignment *_text) const
Fills out the label and text alignments into _label and text.
Definition: ColorControl.h:13
void StrokePolygon(const BPolygon *polygon, bool closed=true, ::pattern pattern=B_SOLID_HIGH)
Stroke a polygon shape.
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
status_t GetSignature(char *signature) const
Gets the application signature of the associated file.
void MakeEmpty() noexcept
Clear all fields from this header.
virtual void WindowActivated(bool active)
Hook method called when the attached window is activated or deactivated.
rgb_color disable_color(rgb_color color, rgb_color background)
Calculate a color for a disabled look.
status_t SetEventMask(uint32 mask, uint32 options=0)
Sets whether or not the view can accept mouse and keyboard events when not in focus.
status_t ReadAttrString(const char *name, BString *result) const
Reads the data of the specified attribute into the pre-allocated result.
Represents the double type.
Definition: TypeConstants.h:24
virtual void SetFont(const BFont *font, uint32 mask=B_FONT_ALL)
Sets the font of the string view to font with the font parameters set by mask.
status_t SetBufferGroup(const media_source &forSource, BBufferGroup *group)
Changes the buffer group from the current one, to the specified one.
bool IsLocked() const
Check if the calling thread is actually holding the lock.
Font rotation mask parameter.
Definition: View.h:64
status_t(* ioctl)(fs_volume *volume, fs_vnode *vnode, void *cookie, uint32 op, void *buffer, size_t length)
Perform file system specific operations.
Definition: fs_interface.h:145
status_t WriteResource(type_code type, int32 id, const void *data, off_t offset, size_t length)
Writes data into an existing resource. (deprecated, use AddResource() instead)
Provides info for a running app.
Definition: Roster.h:18
BRect Bounds() const
Returns a BRect that encloses all points in the BShape.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 form, const char *property)
Determine the proper handler for a scripting message.
void SetFace(uint16 face)
Sets the font face according to the flags set by face.
const char * Label() const
Undocumented public method.
Reference structure to a particular vnode on a device.
Definition: Node.h:18
virtual status_t AllUnarchived(const BMessage *from)
Hook method overridden from BArchivable.
virtual BGameSound * Clone() const
Not implemented, always returns NULL.
virtual const BNetworkAddress & Local() const
gets the local address for this socket
The user non-packaged directory containing development related files.
Definition: FindDirectory.h:86
virtual void SetBorder(border_style border)
Sets the border_style.
join_mode LineJoinMode() const
Returns the current line join mode.
virtual void FrameResized(float width, float height)
Undocumented public method.
Definition: TextView.h:38
virtual bool RemoveView(BView *child)
Removes and deletes all BLayoutItem representing a BView from this layout.
status_t SetIcon(const BBitmap *icon, icon_size size)
Sets the large or mini icon for the MIME type.
virtual void WindowActivated(bool active)
Hook method called when the attached window is activated or deactivated.
status_t Flatten(char *buffer, ssize_t size) const
Flatten the message to a buffer.
virtual status_t SetSize(off_t size)
Sets the size of the data.
virtual void FrameMoved(BPoint newPosition)
Undocumented public method.
The BeOS bin directory.
Definition: FindDirectory.h:113
status_t ArcTo(float rx, float ry, float angle, bool largeArc, bool counterClockWise, const BPoint &point)
Adds a "draw arc" operation to the BShape.
Cards< ThisBuilder > CardBuilder
Shorthand for builders returned by this builder's AddCards() methods.
Definition: LayoutBuilder.h:59
void(* free_identify_partition_cookie)(partition_data *partition, void *cookie)
Undocumented. TODO.
Definition: fs_interface.h:267
BSymLink()
Creates an uninitialized BSymLink object.
virtual void PrepareItems(orientation orientation)
Prepare the BLayoutItem in this BTwoDimensionalLayout subclass for layout within a certain orientatio...
BError(const char *origin)
Constructor that sets the origin.
void GoToLine(int32 lineNumber)
Moves the caret to the specified line.
void SetExplicitAlignment(BAlignment alignment)
Set this view's alignment, to be used by Alignment().
status_t(* close_index_dir)(fs_volume *volume, void *cookie)
Close a 'directory' of indices.
Definition: fs_interface.h:89
The desktop directory for a given volume.
Definition: FindDirectory.h:14
float y
The vertical coordinate.
Definition: Point.h:18
bool Lock()
Lock the queue so no other thread can perform operations on it.
status_t FindRect(const char *name, BRect *rect) const
Find a rectangle at the label name.
Definition: InterfaceDefs.h:254
status_t SetData(const char *name, type_code type, const void *data, ssize_t numBytes, bool fixedSize=true, int count=1)
Low level function to set data to a certain value.
bool Lock()
Locks the off-screen window that belongs to the bitmap.
void SetItemWeight(int32 index, float weight, bool invalidateLayout)
Set the weight of the item at index.
T * BinarySearch(const T &, CompareFunction) const
Search for key in the list of items using the supplied comparison function via a binary search algori...
Definition: ObjectList.h:712
BHandler * Target(BLooper **looper) const
Returns the handler and looper targeted by the messenger (if the target is local).
Displays a labeled text view control.
Definition: TextControl.h:19
The base directory used for read-only data.
Definition: FindDirectory.h:141
void EndViewTransaction()
Ends a view transaction allowing update to go to App Server again.
static BMidiConsumer * FindConsumer(int32 id, bool localOnly=false)
Finds the consumer with the specified id.
Definition: GraphicsDefs.h:318
void DeselectAll()
Deselect all items.
BTab(BView *contentsView=NULL)
Initializes a new BTab object as part of a tabView.
status_t LockWithTimeout(bigtime_t timeout)
Lock a looper with a timeout.
status_t ReplaceMessenger(const char *name, BMessenger messenger)
Replace a messenger at the label name.
void SetTitle(const char *title)
Sets the window title to title.
virtual void ResizeToPreferred()
Resize the control to its preferred size.
Definition: InterfaceDefs.h:256
void PrintToStream() const
Prints each property, command, type, and specifier to standard output.
Font spacing mask parameter.
Definition: View.h:65
virtual BSize PreferredSize()
Returns the text control's preferred size.
status_t AddItem(BView *archivableView, int32 *_id=NULL)
Undocumented public method.
GroupBuilder AddGroup(orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f)
Add a new viewless BGroupLayout as a child to the layout that this builder represents and return a Gr...
Definition: LayoutBuilder.h:566
virtual status_t GetDuration(bigtime_t *_time)=0
Implement this method to fill out the duration in microseconds of the media data contained in the cur...
const char * Leaf() const
Gets the leaf portion of the path.
const uchar B_CELESTE_DEPTH
Identifier of celeste depth message.
Definition: Midi2Defs.h:62
const uint32 B_SUBPIXEL_PRECISE
The view draws with sub-pixel precision.
Definition: View.h:91
usb_id usb_interface
Uniquely identify USB interfaces.
Definition: USB3.h:26
BKey()
Constructor for an empty generic key.
virtual ssize_t Read(void *buffer, size_t size)
Read data from current position.
int32 FillRule() const
Return the current fill mode.
void TranslateBy(double x, double y)
Translate the current view by coordinates.
Keyring key purpose.
Definition: Key.h:18
void LateNoticeReceived(const media_source &what, bigtime_t howMuch, bigtime_t performanceDuration)
Attempts to catch up to the buffer.
static BArchivable * Instantiate(BMessage *archive)
Create a new BOutlineListView object from the message archive.
void SetButtonSpacing(button_spacing spacing)
Set the button spacing for the alert.
The user non-packaged fonts directory.
Definition: FindDirectory.h:81
Undocumented class.
Definition: StringList.h:15
bool IsAbsolute() const
Gets whether or not the path is absolute or relative.
status_t SetAppFlags(uint32 flags)
Sets the application flags of the associated file.
uint32 Workspaces() const
Returns the set of workspaces where the window can be displayed.
status_t GetProperties(BMessage *properties) const
Reads the properties of the endpoint.
bool IsSupertypeOnly() const
Returns whether this objects represents a supertype.
icon_size
Legacy BeOS icon size constants.
Definition: Mime.h:16
const char * GetString(uint32 id) const
Gets the language string for the locale.
BListView(BRect frame, const char *name, list_view_type type=B_SINGLE_SELECTION_LIST, uint32 resizeMask=B_FOLLOW_LEFT_TOP, uint32 flags=B_WILL_DRAW|B_FRAME_EVENTS|B_NAVIGABLE)
Creates a new list view. This is the non-layout constructor.
static BArchivable * Instantiate(BMessage *from)
Creates a new BTranslatorRoster from a message.
virtual void Show()
Shows the window on screen, places it frontmost on the screen, adds the window to Deskbar's window li...
float fTopInset
The current top inset for this layout.
Definition: TwoDimensionalLayout.h:100
status_t FindPath(const char *architecture, path_base_directory baseDirectory, const char *subPath, uint32 flags, BPath &_path)
Retrieves a path in the file system layout based.
status_t ReplaceInt32(const char *name, int32 value)
Replace an integer at the label name.
bool HasSystemColors() const
Tests if the view is using system "panel" colors. B_PANEL_BACKGROUND_COLOR for ViewUIColor() B_PANEL_...
Provides the BSpaceLayoutItem class.
virtual void SetExplicitMinSize(BSize size)
Set this item's explicit min size, to be used in MinSize().
status_t(* remove_vnode)(fs_volume *volume, fs_vnode *vnode, bool reenter)
Deletes the private data handle associated with the specified node.
Definition: fs_interface.h:124
The BeOS sounds directory.
Definition: FindDirectory.h:119
bool operator==(const BKey &other) const
Compare this key to an other key.
static bool IsAlNum(uint32 c)
Determine if c is alphanumeric.
bool HasString(const BString &string, bool ignoreCase=false) const
Undocumented public method.
Definition: StringList.h:90
virtual ~BCatalog()
Destroys the BCatalog object freeing memory used by it.
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archives the object into the data message.
virtual void SetFlags(uint32 flags)
Sets the view flags to the flags mask.
virtual void FrameResized(float newWidth, float newHeight)
Hook method called when the outline list view is resized.
BSeparatorItem class definition.
T * SwapWithItem(int32 index, T *newItem)
Swap the item with the item at index.
Definition: ObjectList.h:550
status_t Connect(BMidiConsumer *cons)
Connects a consumer to this producer.
const char * MinLimitLabel() const
Undocumented public method.
void Layout(bool force)
Layout the view.
BRect DecoratorFrame() const
Returns the frame rectangle of the window decorator.
bool operator!=(const BPath &item) const
Performs a simple (string-wise) comparison of paths for inequality.
bool IsHeightSet() const
Checks if the BSize::height is not B_SIZE_UNSET.
Definition: Size.h:130
static BArchivable * Instantiate(BMessage *data)
Creates a new BCheckBox object from the archive message.
BUrl & SetPath(const BString &path)
Set the path of the URL.
void BeginLineArray(int32 count)
Begin a line array of up to count lines.
Boolean value.
Definition: TypeConstants.h:21
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archive the cursor. Not implemented.
const property_info * Properties() const
Returns the properties as a property_info pointer.
BString username
The username for the request.
Definition: HttpRequest.h:77
bool Lock()
Locks the clipboard so that no other tread can read from it or write to it.
const char * B_URL_HTTP
application/x-vnd.Be.URL.http
Definition: InterfaceDefs.h:257
bool GetResourceInfo(int32 byIndex, type_code *typeFound, int32 *idFound, const char **nameFound, size_t *lengthFound)
Gets information about a resource identified by byindex.
generic_addr_t generic_size_t
Represents a size of generic memory.
Definition: SupportDefs.h:62
virtual status_t Archive(BMessage *data, bool deep=true) const
Archive the BListView object to a message.
void SetLatency(bigtime_t latency)
Changes the published latency of the consumer.
virtual status_t Archive(BMessage *archive, bool deep=true) const
Archives the object into archive.
Undocumented enum value.
Definition: Deskbar.h:19
virtual const char * Message() const noexcept override
Access the string representation of the message.
virtual void SetListType(list_view_type type)
Sets the list view type.
BMessageQueue()
Constructs an empty message queue.
A tab that goes in a BTabView.
Definition: TabView.h:22
bool operator==(const Verb &other) const noexcept
Comparison operator.
Receives MIDI events from a producer.
Definition: MidiConsumer.h:9
virtual status_t Archive(BMessage *into, bool deep=true) const
Archives this layout into archive. If deep is true, also archives the items in this layout,...
#define B_MOUSE_BUTTON(n)
Compute mouse button mask for button n.
Definition: View.h:19
bool operator!=(const BStringList &other) const
Undocumented public method.
Definition: StringList.h:97
void AllowChar(uint32 character)
Removes the character from the disallowed characters list.
int32 Go()
Displays the alert window.
virtual void GetColumnRowConstraints(orientation orientation, int32 index, ColumnRowConstraints *constraints)=0
Fill in the ColumnRowConstraints for a certain column or row in the BTwoDimensionalLayout.
The BeOS lib directory.
Definition: FindDirectory.h:110
The BKeyStore lets you query, retrieve and store keys in the system's key store.
Definition: KeyStore.h:12
status_t SetTo(const entry_ref *ref, uint32 openMode)
Re-initializes the BFile to the file referred to by the supplied entry_ref and according to the speci...
void SetProgress(float progress)
Sets progress information.
virtual ~BTranslatorRoster()
Deletes this BTranslatorRoster.
message_delivery
BMessageFilter filter criteria on how a message was delivered.
Definition: MessageFilter.h:30
status_t beep()
Invoke the standard system beep to alert users.
BRect ItemFrame(int32 index)
Return the frame of the item at the specified index.
int Port() const
Returns the URL port number.
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers understood by the window.
Provides the ability to read and write the data of a file.
Definition: File.h:17
status_t(* write_pages)(fs_volume *volume, fs_vnode *vnode, void *cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes)
Deprecated.
Definition: fs_interface.h:130
const uchar B_POLY_MODE_ON
Identifier of poly mode on message.
Definition: Midi2Defs.h:72
void AddShortcut(uint32 key, uint32 modifiers, BMessage *message)
Creates a keyboard shortcut that sends a message to the window.
BSplitLayoutBuilder & GetSplitView(BSplitView **view)
Get a reference to the underlying BSplitView.
virtual status_t Archive(BMessage *data, bool deep=true) const
Archives the draggers's relationship to the target view.
virtual status_t GetAllTranslators(translator_id **_list, int32 *_count)
Collects the IDs of all translators in the roster in an array.
status_t LockKeyring(const char *keyring)
Not implemented.
uint32 perform_code
Defined to support 'hidden' commands or extensions to classes.
Definition: SupportDefs.h:56
void SetMaxBytes(int32 max)
Sets the maximum number of bytes that the BTextView can contain.
BSize & operator=(const BSize &other)
Initializes a BSize object from another BSize by overloading the = operator.
Definition: Size.h:151
bool HasNodeRef(const char *name, int32 n=0) const
Deprecated.
void GetFontHeight(font_height *height) const
Fill out the font_height struct with the view font.
status_t RemoveHeader(const char *key)
Removes all headers with the key key.
virtual void TargetedByScrollView(BScrollView *view)
Hook method called when the list view is attached to a BScrollView.
status_t InitCheck() const
Undocumented public method.
status_t(* write_stat)(fs_volume *volume, fs_vnode *vnode, const struct stat *stat, uint32 statMask)
Update the stats for a vnode.
Definition: fs_interface.h:169
static BArchivable * Instantiate(BMessage *data)
Creates a new BDragger object from the BMessage constructor.
virtual void AttachedToWindow()
Hook method called when the list view is added to the view hierarchy.
Definition: GraphicsDefs.h:306
virtual bool HasMultiColumnItems()
Tests whether or not this BTwoDimensionalLayout contains any BLayoutItem's spanning more than one col...
CardBuilder AddCards(float weight=1.0f)
Definition: LayoutBuilder.h:1328
BGroupLayoutBuilder & AddGroup(orientation orientation, float spacing=B_USE_DEFAULT_SPACING, float weight=1.0f)
Add a subgroup to this layout, and return a reference to a builder that works on that subgroup.
BBorrow() noexcept
Create a new smart pointer with no value.
Definition: ExclusiveBorrow.h:201
size_t Size()
Gets the size of the buffer in bytes.
void Cancel(int32 identifier)
Cancel a running request.
bool RemoveChild(BView *child)
Removes child from the view hierarchy.
float Height() const
Returns the height of the rectangle.
Definition: Rect.h:235
status_t AddBool(const char *name, bool value)
Convenience method to add a bool to the label name.
virtual ~BError() noexcept
Standard destructor.
bool Lock()
Add a lock request and block on it until we get it.
Accept both delivery methods.
Definition: MessageFilter.h:31
Provides the BNode class and node_ref struct.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
Undocumented class.
Definition: StackOrHeapArray.h:12
Simple class to access the string resources in a file.
Definition: ResourceStrings.h:22
BObjectList & operator=(const BObjectList &list)
Creates a new BObjectList as a copy of another list by overloading the = operator.
Definition: ObjectList.h:457
BMessage * ModificationMessage() const
Returns the control's modification message.
bool HasMessenger(const char *name, int32 n=0) const
Deprecated.
int setlogmask_team(int priorityMask)
sets the logging priority mask
bool HasPassword() const
Check wether the URL has a password.
void SetTo(const BString &string)
Set the current timestamp by parsing string.
virtual BSize MaxSize()
Return the maximum size of the view.
static BMidiRoster * MidiRoster()
Returns a pointer to the only instance of BMidiRoster.
virtual ~BFile()
Destroys the BFile object and frees all allocated resources.
virtual void MakeFocus(bool focus=true)
Undocumented public method.
bool IsLayoutValid() const
Returns whether or not the layout is valid.
Represents a HTTP response body.
Definition: HttpResult.h:25
BPicture class definition.
void UrlEncode(bool strict=false)
Undocumented public method.
void FullListDoForEach(bool(*func)(BListItem *item))
Calls the specified function on each item in the outline list.
BLooper * LooperAt(int32 index) const
Returns the BLooper object at the specified index in the application's looper list.
Flag to not resize the window to fit the screen when using BWindow::MoveOnScreen()
Definition: Window.h:88
status_t SetLimits(int32 minimum, int32 maximum)
Undocumented public method.
status_t OpenWithPreferredApplication(bool onProblemAskUser=true) const
Undocumented public method.
BPoint Origin() const
Returns the origin point in the view's coordinate system.
virtual void MessageReceived(BMessage *message)
Undocumented public method.
virtual ~BPicture()
Destroys the BPicture object and deletes all associated data.
void Exclude(BRect rect)
Modifies the region excluding the area of the given rect.
virtual BSize BasePreferredSize()
Method to be implemented in derived classes return the preferred size constraint for this BAbstractLa...
status_t GetIconForType(const char *type, BBitmap *icon, icon_size which) const
Fetches the large or mini icon used by an application of this type for files of the given type.
Container view for a collection of views organized in a horizontal or vertical row.
Definition: GroupView.h:13
Subscribe to watching for changes to the contents of a directory.
Definition: NodeMonitor.h:22
int ICompare(const BString &string) const
Lexicographically compare this BString to another string case-insensitively.
virtual status_t IterateLineTo(int32 lineCount, BPoint *linePoints)
Called by Iterate() to act on lineCount lines comprised of the points specified by linePoints.
virtual void LayoutChanged()
Hook function that is called when the layout if this view, or one of its children,...
status_t SetVersionInfo(const version_info *info, version_kind kind)
Sets the version info of the associated file.
A BNode represents a chunk of data in the filesystem.
Definition: Node.h:33
virtual void Update(BView *owner, const BFont *font)
Hook method that's called when the owner changes.
BMailComponent * WhatIsThis()
Employs simple heuristics such as the MIME type to present you with an instance of a useful subclass.
void SetTracking(bool state)
Modify the control's tracking state.
~entry_ref()
Destroys the object and frees the storage allocated for the leaf name, if necessary.
bool operator<(const node_ref &other) const
Tests whether this node_ref is less than the supplied one.
status_t SetTo(const char *mimeType)
Initializes this object to the supplied MIME type.
status_t RewindAttrs()
Resets the object's attribute pointer to the first attribute in the list.
bool IsStylable() const
Returns whether or not the object accepts multiple font styles.
void Highlight(int32 startOffset, int32 endOffset)
Highlight the text enclosed within the given offsets.
const uchar B_RESET_ALL_CONTROLLERS
Identifier of reset all controllers message.
Definition: Midi2Defs.h:66
deskbar_location Location(bool *_isExpanded=NULL) const
Undocumented public method.
status_t ScrollWithMouseWheelDelta(BScrollBar *, float)
Handle the scroll wheel changing over scrollbars.
bool IsUsingResources() const
Returns whether the object (also) stores the metadata in the resources of the associated file.
void Unlock()
Unlock the queue after a Lock() request.
float TextHeight(int32 startLine, int32 endLine) const
Returns the height of the text enclosed within the given lines.
BLayout * GetLayout() const
Get the layout of the view.
virtual ~BRegion()
Destroys the BRegion freeing any memory allocated by it.
status_t SetVolume(const BVolume *volume)
Assigns volume to the BQuery object.
const uint32 B_TRANSPARENT_MAGIC_RGBA32_BIG
Transparent color.
void SortItems(int(*compareFunc)(const void *, const void *))
Sort the items with the use of a supplied comparison function.
void DelayedInvalidate(bigtime_t delay)
Sends a message to App Server to redraw the entire view after a certain, minimum, delay....
Undocumented class.
Definition: Alignment.h:10
virtual bool AcceptsDrop(const BMessage *message)
Returns whether or not the BTextView can accept the dropped message data.
ThisBuilder & GetSplitView(BSplitView **_view)
Get a pointer to the SplitBView this builder is attached to.
Definition: LayoutBuilder.h:1203
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determine the proper handler for a scripting message.
Represents a typeface including its family, style and size.
Definition: Font.h:175
status_t SetString(const char *name, const char *string)
Set the string with at the label name to string.
void GetBoundingBoxesForStrings(const char *stringArray[], int32 numStrings, font_metric_mode mode, escapement_delta deltas[], BRect boundingBoxArray[]) const
Writes an array of BRect objects to boundingBoxArray representing the bounding rectangles of each str...
void MoveTo(BPoint where)
Move the view to the location specified by where in the parent view's coordinate system.
The system non-packaged directory containing development related files.
Definition: FindDirectory.h:55
float Divider() const
Returns the current divider position.
const char * Text() const
Returns the text currently set on the string view.
bool HasDouble(const char *name, int32 n=0) const
Deprecated.
void SprayTempoChange(int32 beatsPerMinute, bigtime_t time=0) const
Sends a Tempo Change event to the connected consumers.
void SetExplicitMinSize(BSize size)
Set this view's min size, to be used by MinSize().
void SetIdentifier(const char *identifier)
Set the identifier of the key.
virtual status_t Flush()
Writes pending data to underlying storage.
status_t(* free_dir_cookie)(fs_volume *volume, fs_vnode *vnode, void *cookie)
Frees the given directory cookie.
Definition: fs_interface.h:196
The user non-packaged bin directory.
Definition: FindDirectory.h:79
Definition: GraphicsDefs.h:316
bool operator==(BUrl &other) const
Undocumented public method.
bool IsDirectory() const
Returns whether or not the node is a directory.
status_t DetachBitmap(BBitmap **_bitmap)
Sets _bitmap to point to the internal bitmap object.
virtual void MakeFocus(bool focus=true)
Highlight or unhighlight the selection when the text view acquires or loses its focus state.
void SetTextRect(BRect rect)
Sets the object's text frame to the passed in rect.
void * get_stack_frame(void)
Internal function.
virtual void AttachedToLayout()
Hook method inherited from BLayoutItem, classes derived from BLayout must include the BLayout version...
virtual status_t Archive(BMessage *into, bool deep=true) const
Archives this layout into archive. If deep is true, also archives the items in this layout,...
Represents a long type.
Definition: TypeConstants.h:28
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 what, const char *property)
Determine the proper handler for a scripting message.
fs_volume * volume_for_vnode(fs_vnode *vnode)
Returns the volume object for a given vnode.
virtual ssize_t Read(void *buffer, size_t size)
Reads data from the object into a buffer.
status_t Delete()
Removes the MIME type from the MIME database.
static status_t ShowAllDraggers()
Causes all BDragger objects to draw their handles.
int32 CountProperties() const
Returns The number of properties specified as an int32.
bool HasFragment() const
Check wether the URL has a fragment.
The HTTP header block has been received, and the status and fields can be accessed through the result...
Definition: HttpSession.h:57
virtual void DetachedFromWindow()
Hook method called when the object is detached from a window.
The left top corner is fixed while the right and bottom edges move with the cursor.
Definition: View.h:56
status_t SetInt64(const char *name, int64 value)
Set the data with at the label name to value.
ThisBuilder & GetLayout(BCardLayout **_layout)
Get the layout this builder represents.
Definition: LayoutBuilder.h:1487
ThisBuilder & AddStrut(float size)
Add a BSpaceLayoutItem created by BSpaceLayoutItem::CreateHorizontalStrut() or BSpaceLayoutItem::Crea...
Definition: LayoutBuilder.h:699
status_t(* device_removed)(void *cookie)
Called by the stack in case a device you are using is removed.
Definition: USB3.h:36
status_t StartWatchingAll(BMessenger target)
Subscribe this handler to watch a target for all events.
void StrokeRoundRect(BRect rect, float xRadius, float yRadius, ::pattern pattern=B_SOLID_HIGH)
Stroke the rounded rectangle with horizontal radius xRadius and vertical radius yRadius.
BView * ChildAt(int32 index) const
Gets the BView at a certain index in the bitmap's list of views.
bool IsEditable() const
Returns whether or not the text is editable.
BLayout subclass providing convenience methods for derived implementations.
Definition: AbstractLayout.h:12
status_t(* read_attr_dir)(fs_volume *volume, fs_vnode *vnode, void *cookie, struct dirent *buffer, size_t bufferSize, uint32 *_num)
Read the next one or more attribute directory entries.
Definition: fs_interface.h:210
Provides an interface for accessing and manipulating file resources.
Definition: Resources.h:22
virtual void WindowActivated(bool state)
Hook method called when the attached window is activated or deactivated.
direct_buffer_state
Definition: DirectWindow.h:16
void DisallowChar(uint32 character)
Adds the character to the disallowed characters list.
BLooper * Looper() const
Return the looper this filter is associated with.
bool Includes(const unicode_block &block) const
Determines if block is a subset of the unicode_block object.
Definition: Font.h:355
status_t ReplaceInt64(const char *name, int64 value)
Replace an integer at the label name.
status_t GetPreferredApp(char *signature, app_verb verb=B_OPEN) const
Fetches the signature of the preferred application from the MIME database.
BSize Size() const
Returns the size of the window.
static bool IsAlpha(uint32 c)
Determine if c is alphabetic.
static bool FindCommand(uint32 what, int32 index, property_info *info)
Find the command inside of propertyInfo matching what and index.
void SpraySystemExclusive(void *data, size_t length, bigtime_t time=0) const
Sends a System Exclusive event to all connected consumers.
Keyboard events mask parameter.
Definition: View.h:39
status_t GetNextKeyring(uint32 &cookie, BString &keyring)
Iterate through the keyrings.
int32 CountLocks() const
Return the number of recursive locks that are currently held.
status_t SetAlignment(const char *name, const BAlignment &value)
Set the data with at the label name to value.
bool Supports(BMimeType *type) const
Returns whether the application supports the supplied MIME type explicitly.
status_t Bind(const BNetworkAddress &local, bool reuseAddr, int type)
binds the socket to the given address
const uchar B_FOOT_CONTROLLER
Identifier of foot controller message.
Definition: Midi2Defs.h:38
BGridLayoutBuilder & GetGridLayout(BGridLayout **_layout)
Get a reference to the underlying BGridLayout.
virtual ~BView()
Destructor method.
Represents 32-bit time_t data on 32-bit or 64-bit time_t data on 64-bit.
Definition: TypeConstants.h:57
The system boot directory.
Definition: FindDirectory.h:20
Represents a node_ref structure.
Definition: TypeConstants.h:49
status_t InitCheck() const
Gets the initialization status of the object.
void SetCollator(const BCollator &newCollator)
Set the collator for this locale.
virtual void AllDetached()
Similar to AttachedToWindow() but this method is triggered after all child views have already been de...
virtual status_t WaitForReadable(bigtime_t timeout=B_INFINITE_TIMEOUT) const
wait for incoming data
A consumer endpoint that is created by your own application.
Definition: MidiConsumer.h:40
status_t(* read_index_stat)(fs_volume *volume, const char *name, struct stat *stat)
Read the stat of the index with a name.
Definition: fs_interface.h:98
virtual status_t GetSupportedSuites(BMessage *message)
Reports the suites of messages and specifiers that derived classes understand.
virtual BHandler * ResolveSpecifier(BMessage *message, int32 index, BMessage *specifier, int32 form, const char *property)
Determine the proper handler for a scripting message.
virtual ~BNodeInfo()
Frees the object and associated resources.
BEntry & operator=(const BEntry &item)
Reinitializes the BEntry to be a copy of item.
virtual bool HasHeightForWidth()
Overridden hook method from BAbstractLayout.
Definition: ColorControl.h:17
int16 code
The three digit status code.
Definition: HttpResult.h:96
Files that already have a BEOS:TYPE attribute won't be updated.
Definition: Mime.h:23
virtual void DispatchMessage(BMessage *message, BHandler *handler)
Dispatch a message to a handler. Override if there are messages that you want to catch before they ar...
status_t find_directory(directory_which which, dev_t volume, bool createIt, char *pathString, int32 length)
C interface to find_directory.
virtual void MouseMoved(BPoint where, uint32 code, const BMessage *dragMessage)
Hook method called when the mouse is moved.
status_t SetAutoRaise(bool autoRaise)
Undocumented public method.
BHandler * Target(BLooper **_looper=NULL) const
Invoke BMessenger::Target() on the internal messenger.
static status_t ConvertToCMAP8(BBitmap *source, BBitmap *result)
Converts a true-color icon to CMAP8 colorspace.
bool IncludesBlock(uint32 start, uint32 end) const
Gets whether the font includes the specified Unicode block.
The system directory where activated packages live.
Definition: FindDirectory.h:33
void SetWorkspaces(uint32)
Sets the set of workspaces where the window can be displayed.
dev_t Device() const
Returns the device ID of the volume the object refers to.
status_t InitCheck() const
Check validity of the BCountry object.
virtual status_t GetSupportedSuites(BMessage *data)
Reports the suites of messages and specifiers that derived classes understand.
virtual int32 CountOptions() const =0
Undocumented public method.
void BeginViewTransaction()
Stall updates to App Server allowing you to batch drawing commands to limit flickering.
float SplitterSize() const
Get the size of the splitter(s) in this view.
input_device_notification
Constants for the be:opcode field of a B_INPUT_DEVICES_CHANGED message.
Definition: Input.h:28
BLayoutBuilder::Base subclass for building BSplitViews.
Definition: LayoutBuilder.h:31
void ConvertToParent(BPoint *point) const
Convert point to the parent's coordinate system in place.
status_t AddNodeRef(const char *name, const node_ref *ref)
Convenience method to add a node_ref with the label name.
const char * SSLCertificate
The SSL certificate that causes the issue.
virtual void MessageReceived(BMessage *message)
Handle message that has been received by the associated looper.
virtual void Show()
Shows the window on screen, places it frontmost on the screen, adds the window to Deskbar's window li...
virtual void SetVisible(bool visible)
Set the local visibility of this item.