本文整理汇总了C++中IOBOOL函数的典型用法代码示例。如果您正苦于以下问题:C++ IOBOOL函数的具体用法?C++ IOBOOL怎么用?C++ IOBOOL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IOBOOL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IO_METHOD
IO_METHOD(IoObject, protoOwnsSlots)
{
/*doc Object ownsSlots
A debug method.
*/
return IOBOOL(self, IoObject_ownsSlots(self));
}
示例2: IOBOOL
IoObject *IoRegex_isExtended(IoRegex *self, IoObject *locals, IoMessage *m)
{
/*doc Regex isExtended
Returns true if the receiver is in extended mode, false if not.
*/
return IOBOOL(self, DATA(self)->options & PCRE_EXTENDED);
}
示例3: IoMessage_locals_pointArgAt_
IoObject *IoBox_containsPoint(IoBox *self, IoObject *locals, IoMessage *m)
{
/*doc Box containsPoint(aPoint)
Returns true if aPoint is within the receiver's bounds, false otherwise.
*/
int result;
IoVector *otherPoint = IoMessage_locals_pointArgAt_(m, locals, 0);
UArray *bo = IoSeq_rawUArray(IoBox_rawOrigin(self));
UArray *bs = IoSeq_rawUArray(IoBox_rawSize(self));
UArray *p = IoSeq_rawUArray(otherPoint);
// do a malloc since the vectors might be large
UArray *b1 = UArray_clone(bo);
UArray *b2 = UArray_clone(bs);
// make bo2 the box endpoint
UArray_add_(b2, b1);
// ensure bo1 is on the left bottom and bo2 is on the top right
UArray_Min(b1, b2);
UArray_Max(b2, bo);
result = UArray_greaterThanOrEqualTo_(p, b1) && UArray_greaterThanOrEqualTo_(b2, p);
UArray_free(b1);
UArray_free(b2);
return IOBOOL(self, result);
}
示例4: IOBOOL
IoObject *IoRegexMatches_allowsEmptyMatches(IoRegexMatches *self, IoObject *locals, IoMessage *m)
{
/*doc RegexMatches allowsEmptyMatches
Returns true if the receiver allows empty matches, false if not.
*/
return IOBOOL(self, DATA(self)->options & PCRE_NOTEMPTY);
}
示例5: IO_METHOD
//doc ClutterUnits ==(otherUnit)
IO_METHOD(IoClutterUnits, equals) {
IoClutterUnits *other = IoMessage_locals_clutterUnitsArgAt_(m, locals, 0);
int self_in_pixels = clutter_units_to_pixels(&IOCUNITS(self)),
other_in_pixels = clutter_units_to_pixels(&IOCUNITS(other));
return IOBOOL(self, self_in_pixels == other_in_pixels);
}
示例6: IO_METHOD
//doc ClutterActorBox contains(x1, y1)
IO_METHOD(IoClutterActorBox, contains) {
float x = IoMessage_locals_floatArgAt_(m, locals, 0),
y = IoMessage_locals_floatArgAt_(m, locals, 1);
int contains = clutter_actor_box_contains(IOCABOX(self), x, y);
return IOBOOL(self, contains);
}
示例7: IOBOOL
IoObject *IoObject_protoOwnsSlots(IoObject *self, IoObject *locals, IoMessage *m)
{
/*doc Object ownsSlots
A debug method.
*/
return IOBOOL(self, IoObject_ownsSlots(self));
}
示例8: IoMessage_locals_cStringArgAt_
//doc Loudmouth sendRaw(body) Sends raw text over XMPP stream. Returns <code>true</code> if no errors occur.
IoObject *IoLoudmouth_sendRaw(IoLoudmouth *self, IoObject *locals, IoMessage *m) {
char *seq = IoMessage_locals_cStringArgAt_(m, locals, 0);
int success = lm_connection_send_raw(LMCONN(self), seq, NULL);
free(seq);
return IOBOOL(self, success);
}
示例9: IoMySQL_connected
IoObject* IoMySQL_connected(IoObject* self, IoObject* locals, IoMessage* m)
{
/*doc MySQL connected
Returns true if connected to the database, false otherwise.
*/
return IOBOOL(self, DATA(self)->connected);
}
示例10: IOBOOL
IoObject *IoSQLite3_isOpen(IoSQLite3 *self, IoObject *locals, IoMessage *m)
{
/*doc SQLite3 isOpen
Returns true if the database is open, false otherwise.
*/
return IOBOOL(self, DATA(self)->db != NULL);
}
示例11: IOBOOL
IoObject *IoFile_isSocket(IoFile *self, IoObject *locals, IoMessage *m)
{
/*doc File isSocket
Returns true if the receiver's file descriptor is a Socket, false otherwise.
*/
return IOBOOL(self, S_ISSOCK(IoFile_statPointer(self, locals, m)->st_mode));
}
示例12: IOBOOL
IoObject *IoImage_isRGBA8(IoImage *self, IoObject *locals, IoMessage *m)
{
/*doc Image isRGBA8
Returns true if the receiver is in RGBA8 format, false otherwise.
*/
return IOBOOL(self, Image_isRGBA8(DATA(self)->image));
}
示例13: IOBOOL
IoDynLib *IoDynLib_isOpen(IoDynLib *self, IoObject *locals, IoMessage *m)
{
/*doc DynLib isOpen
Returns true if the library is open, or false otherwise.
*/
return IOBOOL(self, DynLib_isOpen(DATA(self)));
}
示例14: IO_METHOD
IO_METHOD(IoSeq, isEmpty)
{
/*doc Sequence isEmpty
Returns true if the size of the receiver is 0, false otherwise.
*/
return IOBOOL(self, UArray_size(DATA(self)) == 0);
}
示例15: IOBOOL
IoObject *IoAudioDevice_writeBufferIsEmpty(IoAudioDevice *self, IoObject *locals, IoMessage *m)
{
/*doc AudioDevice writeBufferIsEmpty
Returns the true if the audio buffer is empty, false otherwise.
*/
return IOBOOL(self, DATA(self)->audioDevice->writeBufferIsEmpty);
}