本文整理汇总了C++中IOBOOL函数的典型用法代码示例。如果您正苦于以下问题:C++ IOBOOL函数的具体用法?C++ IOBOOL怎么用?C++ IOBOOL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IOBOOL函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: IO_METHOD
IO_METHOD(IoObject, protoOwnsSlots)
{
/*doc Object ownsSlots
A debug method.
*/
return IOBOOL(self, IoObject_ownsSlots(self));
}
开发者ID:AlexGensek,项目名称:io,代码行数:7,代码来源:IoObject.c
示例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);
}
开发者ID:ADTSH,项目名称:io,代码行数:7,代码来源:IoRegex.c
示例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);
}
开发者ID:ADTSH,项目名称:io,代码行数:35,代码来源:IoBox.c
示例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);
}
开发者ID:ADTSH,项目名称:io,代码行数:7,代码来源:IoRegexMatches.c
示例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);
}
开发者ID:ADTSH,项目名称:io,代码行数:8,代码来源:IoClutterUnits.c
示例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);
}
开发者ID:ADTSH,项目名称:io,代码行数:8,代码来源:IoClutterActorBox.c
示例7: IOBOOL
IoObject *IoObject_protoOwnsSlots(IoObject *self, IoObject *locals, IoMessage *m)
{
/*doc Object ownsSlots
A debug method.
*/
return IOBOOL(self, IoObject_ownsSlots(self));
}
开发者ID:qxjit,项目名称:io,代码行数:7,代码来源:IoObject.c
示例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);
}
开发者ID:ADTSH,项目名称:io,代码行数:8,代码来源:IoLoudmouth.c
示例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);
}
开发者ID:jamesrburgess,项目名称:io,代码行数:7,代码来源:IoMySQL.c
示例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);
}
开发者ID:JoeyButler,项目名称:io,代码行数:8,代码来源:IoSQLite3.c
示例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));
}
开发者ID:cdcarter,项目名称:io,代码行数:8,代码来源:IoFile_stat.c
示例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));
}
开发者ID:Alessandroo,项目名称:io,代码行数:8,代码来源:IoImage.c
示例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)));
}
开发者ID:Habaut,项目名称:GameBindings,代码行数:8,代码来源:IoDynLib.c
示例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);
}
开发者ID:doublec,项目名称:io,代码行数:8,代码来源:IoSeq_immutable.c
示例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);
}
开发者ID:Akiyah,项目名称:io,代码行数:8,代码来源:IoAudioDevice.c
示例16: IO_METHOD
IO_METHOD(IoDate, isPast)
{
/*doc Date isPast
Returns true if the receiver is a date in the past.
*/
return IOBOOL(self, Date_secondsSinceNow(DATA(self)) > 0);
}
开发者ID:bomma,项目名称:io,代码行数:8,代码来源:IoDate.c
示例17: LA8
IoObject *IoImage_isLA8(IoImage *self, IoObject *locals, IoMessage *m)
{
/*doc Image isLA8
Returns true if the receiver is in LA8 (8bit Luminance-Alpha) format, false otherwise.
*/
return IOBOOL(self, Image_componentCount(DATA(self)->image) == 2);
}
开发者ID:Alessandroo,项目名称:io,代码行数:8,代码来源:IoImage.c
示例18: L8
IoObject *IoImage_isL8(IoImage *self, IoObject *locals, IoMessage *m)
{
/*doc Image isL8
Returns true if the receiver is in L8 (8bit Luminance) format, false otherwise.
*/
return IOBOOL(self, Image_isL8(DATA(self)->image));
}
开发者ID:Alessandroo,项目名称:io,代码行数:8,代码来源:IoImage.c
示例19: IO_METHOD
IO_METHOD(IoCoroutine, isCurrent)
{
/*doc Coroutine isCurrent
Returns true if the receiver is currently running coroutine.
*/
IoObject *v = IOBOOL(self, self == IoState_currentCoroutine(IOSTATE));
return v;
}
开发者ID:jdp,项目名称:io,代码行数:8,代码来源:IoCoroutine.c
示例20: IOBOOL
IoObject *IoCurses_hasColors(IoCurses *self, IoObject *locals, IoMessage *m)
{
/*doc Curses hasColors
Returns true if the terminal supports color, false otherwise.
*/
return IOBOOL(self, has_colors());
}
开发者ID:Akiyah,项目名称:io,代码行数:8,代码来源:IoCurses.c
注:本文中的IOBOOL函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论